Kind/book/List.app.kind2
Victor Taelin ab98950f50 wip
2024-02-22 21:31:53 -03:00

12 lines
232 B
Plaintext

List.app
: ∀(A: *)
∀(B: *)
∀(f: ∀(x: A) B)
∀(x: (List A))
(List B)
= λA λB λf λx
let P = λx(List B)
let cons = λh λt (List.cons B (f h) (List.app A B f t))
let nil = (List.nil B)
(~x P cons nil)