| Who Cites it sum? |
|
it_sum | Def it_sum(l) == if null(l) then 0 else head(l)+it_sum(tl(l)) fi (recursive) |
| | Thm* l: List. it_sum(l)  |
|
tl | Def tl(l) == Case of l; nil nil ; h.t t |
| | Thm* A:Type, l:A List. tl(l) A List |
|
head | Def head(l) == hd(l) |
| | Thm* 'a:Type, l:'a List. mt(l)  head(l) 'a |
|
null | Def null(as) == Case of as; nil true ; a.as' false |
| | Thm* T:Type, as:T List. null(as)  |
| | Thm* null(nil)  |
|
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 |
|
hd | Def hd(l) == Case of l; nil "?" ; h.t h |
| | Thm* A:Type, l:A List. ||l|| 1  hd(l) A |