Commit Graph
7 Commits
Author SHA1 Message Date
JKFandClaude Opus 5.5 a658081632 Add unit type Unit with tt
`Unit : Set and `tt : `Unit, both values and inert under renaming,
substitution, reduction and level equality. Cases added throughout
confluence, conversion, the level normaliser, substitution lemmas,
subject reduction and progress (new head hUnit for canonical forms).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-06 16:49:14 +01:00
JKF 87a1bb1a4e git status 2026-10-30 16:49:02 +01:00
Julius FischerandClaude Opus 5.5 897f74321b Use Fin from the standard library
Replace univTypes.Util.Fin with Data.Fin (same constructors zero/suc) and
drop the unused Data.Fin import renamed to 𝔽.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016LG5WunTkTJFuvdzgET3Af
2026-10-22 14:34:37 +02:00
Julius FischerandClaude Opus 5.5 be8044e312 Rename the sorts to tm and lv
"term" clashed with a helper in SubstitutionPreservesTyping and is a
likely name elsewhere too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016LG5WunTkTJFuvdzgET3Af
2026-10-22 11:25:43 +02:00
Julius FischerandClaude Opus 5.5 c1e10c1420 Separate syntax for level expressions
Terms are now indexed by a sort: Term = Tm term, Lvl = Tm level. Level
expressions (`lzero, `lsuc, _`⊔_) live in Lvl and meet terms only through
the coercions `lvl : Lvl → Term and `latom : Term → Lvl, with the new
reduction `latom (`lvl l) ↪ l. Level equality _~_ is unchanged on levels
and a pure congruence on terms, so it can no longer hide or create redexes.

Conversion _≈_ is now a common reduct under reduction modulo level
equality (_↪~*_). Typing gains the level well-formedness judgement _⊢ₗ_.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016LG5WunTkTJFuvdzgET3Af
2026-10-22 11:14:30 +02:00
Julius FischerandClaude Opus 5.5 18ec877ca7 Declare fixities for all term operators
Loosest to tightest, all above the judgements (4) and context
extension (5):
  6  `λ_ ∀[x⦂_]_ ∃[x⦂_]_  (infixr; binder bodies extend to the right)
  7  _`,_                 (infixr)
  8  _`≡_
  9  `Setn_ `Setω_        (`Setn l₁ `⊔ l₂ = `Setn (l₁ `⊔ l₂))
  10 _`⊔_                 (infixl)
  11 _·_                  (infixl)
  12 _[_]                 (infixl)
  13 `_

Previously `_ bound looser than the undeclared operators, so e.g.
` x `⊔ ` y did not parse.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016LG5WunTkTJFuvdzgET3Af
2026-10-21 15:53:52 +02:00
Julius FischerandClaude Opus 5.5 40f9ccaec1 Split Specification into topic modules
Move the contents of Specification.agda unchanged into
Specification/{Axioms,Syntax,Substitution,Values,Reduction,Conversion,Typing}.agda,
with fixity declarations next to their definitions. Specification.agda
now re-exports all parts, so existing imports keep working. The unused
helper cong₃ moves to Util/Equality.agda.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016LG5WunTkTJFuvdzgET3Af
2026-10-21 15:20:23 +02:00