annotate paper/src/cbc-agda.agda @ 4:bf1f62556b81

add while_test_init_imple
author soto
date Thu, 11 Feb 2021 17:03:31 +0900
parents 959f4b34d6f4
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3
959f4b34d6f4 add final thesis
soto
parents:
diff changeset
1 plus : {l : Level} {t : Set l} → (x y : ℕ) → (next : ℕ -> t) -> t
959f4b34d6f4 add final thesis
soto
parents:
diff changeset
2 plus x zero next = next x
959f4b34d6f4 add final thesis
soto
parents:
diff changeset
3 plus x (suc y) next = plus (suc x) y next
959f4b34d6f4 add final thesis
soto
parents:
diff changeset
4
959f4b34d6f4 add final thesis
soto
parents:
diff changeset
5 -- plus 10 20
959f4b34d6f4 add final thesis
soto
parents:
diff changeset
6 -- λ next → next 30