Kind/book/Kind.Book.to_hvm.prelude.kind2
2024-02-22 17:01:05 -03:00

12 lines
429 B
Plaintext

Kind.Book.to_hvm.prelude : String = `
(U60.match 0 z s) = z
(U60.match n z s) = (s (- n 1))
(Str String.nil) = λP λcons λnil nil
(Str (String.cons x xs)) = λP λcons λnil (cons x (Str xs))
(Str.view str) = (str 0 λhλt(String.cons h (Str.view t)) String.nil)
(Strs.view strs) = (List.view λx(Str.view x) strs)
(List.view elem list) = (list 0 λhλt(List.cons (elem h) (List.view elem t)) List.nil)
`