| Some definitions of interest. |
|
iff | Def P  Q == (P  Q) & (P  Q) |
| | Thm* A,B:Prop. (A  B) Prop |
|
pairwise | Def ( x,y L.P(x;y)) == i: ||L||, j: i. P(L[j];L[i]) |
| | Thm* T:Type{i}, L:T List, P:(T T Prop{i'}). ( x,y L.P(x,y)) Prop{i'} |
|
int_seg | Def {i..j } == {k: | i k < j } |
| | Thm* m,n: . {m..n } Type |
|
l_all | Def ( x L.P(x)) == x:T. (x L)  P(x) |
| | Thm* T:Type, L:T List, P:(T Prop). ( x L.P(x)) Prop |
|
length | Def ||as|| == Case of as; nil 0 ; a.as' ||as'||+1 (recursive) |
| | Thm* A:Type, l:A List. ||l||  |
| | Thm* ||nil||  |
|
select | Def l[i] == hd(nth_tl(i;l)) |
| | Thm* A:Type, l:A List, n: . 0 n  n<||l||  l[n] A |