| Some definitions of interest. |
|
hexists | Def exists == p:'a  .  x:'a. (p(x)) |
| | Thm* 'a:S. exists (('a  hbool)  hbool) |
|
his_list_rep | Def is_list_rep
Def == r:(  'a) .  f:  'a
Def == r:(  'a) .    n:
Def == r:(  'a) .    (r
Def == r:(  'a) .    = < m: . if m< n then f(m) else @ x:'a. true fi ,n>) |
| | Thm* 'a:S. is_list_rep (hprod((hnum  'a); hnum)  hbool) |
|
htype_definition | Def type_definition == P:'a  . rep:'b 'a.  type_definition('a;'b;P;rep) |
| | Thm* 'a,'b:S. type_definition (('a  hbool)  ('b  'a)  hbool) |
|
type_definition | Def type_definition('a;'b;P;rep)
Def == ( x',x'':'b. rep(x') = rep(x'') 'a  x' = x'')
Def == & ( x:'a. (P(x))  ( x':'b. x = rep(x'))) |
| | Thm* 'a,'b:Type, P:('a  ), rep:('b 'a). type_definition('a;'b;P;rep) Prop |
|
assert | Def b == if b True else False fi |
| | Thm* b: . b Prop |
|
hfun | Def 'a  'b == 'a 'b |
| | Thm* 'a,'b:S. ('a  'b) S |
|
hlist | Def hlist('a) == 'a List |
| | Thm* 'a:S. hlist('a) S |
|
hnum | Def hnum ==  |
| | Thm* hnum S |
|
hprod | Def hprod('a; 'b) == 'a 'b |
| | Thm* 'a,'b:S. hprod('a; 'b) S |
|
label | Def t ...$L == t |
|
stype | Def S == {T:Type| x:T. True } |
| | Thm* S Type{2} |
|
tlambda | Def ( x:T. b(x))(x) == b(x) |