-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBasic.lean
More file actions
30 lines (16 loc) · 745 Bytes
/
Basic.lean
File metadata and controls
30 lines (16 loc) · 745 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import Lott.Elab.Bool
import TabularTypes.«F⊗⊕ω».Syntax.Term
namespace TabularTypes.«F⊗⊕ω»
judgement_syntax a " ≠ " a' : TypeVarNe (id a, a')
judgement TypeVarNe := Ne (α := TypeVarId)
judgement_syntax x " ≠ " x' : TermVarNe (id x, x')
judgement TermVarNe := Ne (α := TermVarId)
judgement_syntax b : BoolId
judgement BoolId := id (α := Bool)
judgement_syntax n " ≠ " n' : NatNe
judgement NatNe := Ne (α := Nat)
judgement_syntax n " ∈ " "[" n_start ":" n_stop "]" : NatInRange
judgement NatInRange := fun (n start stop : Nat) => n ∈ [start:stop]
judgement_syntax n " ∈ " "[" ":" n_stop "]" : NatInZeroRange
judgement NatInZeroRange := fun (n stop : Nat) => n ∈ [:stop]
end TabularTypes.«F⊗⊕ω»