Mentions légales du service

Skip to content
Snippets Groups Projects
Commit aa8a0f33 authored by Jean-Christophe Filliâtre's avatar Jean-Christophe Filliâtre
Browse files

new library list.Sum

parent 8ec3700e
No related branches found
No related tags found
No related merge requests found
......@@ -486,6 +486,18 @@ theory Prefix
end
theory Sum
use export List
use import int.Int
function sum (l: list int) : int = match l with
| Nil -> 0
| Cons x r -> x + sum r
end
end
(** {2 Induction on lists} *)
theory Induction
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment