Commit Graph
9 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
JKF bb43eaa670 Rename Set≤Set to Set<Set 2026-10-30 14:48:25 +01:00
JKF 479d734cd6 Remove ⊢-Setω≤ 2026-10-30 14:41:19 +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 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 d10ef901a2 Typing and Values: close gaps found in review
Values:
- val-Setω requires Value l (as val-Setn does), so a reducible Setω term
  is no longer a value.
- Rename val-l to val-lzero.
- Add val-⊔: _⊔_ does not reduce, so a join of values is a value.

Typing:
- ⊢-λ requires the domain to be a type (Γ ⊢ t₁ ⦂ Setω l; small types
  reach Setω lzero via ⊢-Set≤Setω).
- ∃ mirrors ∀: ⊢-∃, ⊢-∃ω, ⊢-∃-dep.
- ⊢-≡ requires t ⦂ Set l and lives in Set l; the motive of ⊢-subst is in
  Set (ren wk l).
- ⊢-Setn and ⊢-Setω require their level to have type Level.

Downstream proofs still need cases for the new rules; see TODO.md.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016LG5WunTkTJFuvdzgET3Af
2026-10-21 15:41:18 +02:00
Julius FischerandClaude Opus 5.5 eb1085ea44 Typing: universe hierarchy with cumulativity and level-dependent ∀
- ⊢-∀ now determines its result level: Set (l₁ ⊔ l₂), where the codomain
  level is a weakened outer level and so cannot mention the bound variable.
- ⊢-∀ω: the same for domain and codomain in Setω.
- ⊢-∀-dep: codomain level may depend on the bound variable
  (e.g. ∀ (l : Level) → Set l), result in Setω.
- Cumulativity via lifting rules: Set l ≤ Setω lzero and
  Setω l ≤ Setω (lsuc l).

The downstream proofs (ConversionProperties, SubstitutionPreservesTyping,
Inversion, SubjectReduction) do not yet cover the new rules; see TODO.md.

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
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