| Who Cites hel? |
|
hel | Def el == n: . l:'a List. if n= 0 then hd(l) else el(n-1,tl(l)) fi
Def (recursive) |
| | Thm* 'a:S. el (hnum  hlist('a)  'a) |
|
tl | Def tl(l) == Case of l; nil nil ; h.t t |
| | Thm* A:Type, l:A List. tl(l) A List |
|
hhd | Def hd == l:'a List. if null(l) then arb('a) else head(l) fi |
| | Thm* 'a:S. hd (hlist('a)  'a) |
|
eq_int | Def i= j == if i=j true ; false fi |
| | Thm* i,j: . (i= j)  |
|
bif | Def bif(b; bx.x(bx); by.y(by)) == if b x(*) else y( x.x) fi |
| | Thm* A:Type, b: , x:(b A), y:(( b) A). bif(b; bx.x(bx); by.y(by)) A |
|
tlambda | Def ( x:T. b(x))(x) == b(x) |
|
nat | Def == {i: | 0 i } |
| | Thm* Type |
| | Thm* S |
|
head | Def head(l) == hd(l) |
| | Thm* 'a:Type, l:'a List. mt(l)  head(l) 'a |
|
arb | Def arb(T) == InjCase(lem(T); x. x, "uu") |
| | Thm* T:S. arb(T) T |
|
null | Def null(as) == Case of as; nil true ; a.as' false |
| | Thm* T:Type, as:T List. null(as)  |
| | Thm* null(nil)  |
|
le | Def A B == B<A |
| | Thm* i,j: . (i j) Prop |
|
hd | Def hd(l) == Case of l; nil "?" ; h.t h |
| | Thm* A:Type, l:A List. ||l|| 1  hd(l) A |
|
not | Def A == A  False |
| | Thm* A:Prop. ( A) Prop |