Skip to content

Commit

Permalink
notation
Browse files Browse the repository at this point in the history
  • Loading branch information
forked-from-1kasper committed Dec 30, 2023
1 parent 198bef5 commit 2edeebc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions GroundZero/Meta/Notation.lean
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ def revertDefaultProp : Delab := do {
| stx => return stx
}

macro "variables " vs:(ppSpace bracketedBinder)* : command => `(variable $vs*)

syntax "Π " many1(ppSpace (binderIdent <|> bracketedBinder)) ", " term : term
macro_rules | `(Π $xs*, $y) => `(∀ $xs*, $y)

Expand Down
4 changes: 2 additions & 2 deletions GroundZero/Structures.lean
Original file line number Diff line number Diff line change
Expand Up @@ -149,12 +149,12 @@ hott definition isNType : hlevel → Type u → Type u
| −2 => contr
| hlevel.succ n => λ A, Π (x y : A), isNType n (x = y)

notation "is-" n "-type" => isNType n
notation "is-" n:max "-type" => isNType n

hott definition nType (n : hlevel) : Type (u + 1) :=
Σ (A : Type u), is-n-type A

notation n "-Type" => nType n
notation n:max "-Type" => nType n
macro n:term "-Type" l:level : term => `(nType.{$l} $n)

hott lemma hlevel.cumulative {A : Type u} : Π (n : hlevel), is-n-type A → is-(hlevel.succ n)-type A
Expand Down

0 comments on commit 2edeebc

Please sign in to comment.