Skip to content

Commit

Permalink
revisited the inductive sum
Browse files Browse the repository at this point in the history
  • Loading branch information
songyahui committed May 7, 2024
1 parent 41c90ad commit e1588ea
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/demo/2_Inductive_Sum.ml
Original file line number Diff line number Diff line change
Expand Up @@ -25,19 +25,18 @@ let handler n
continue k 1



(*
let test1 ()
(*@ ex i; Norm(i-> 10 /\ res=5, res) @*)
(*@ ex i; Norm(i-> 15 /\ res=5, res) @*)
= handler 5



let test2 ()
(*@ ex i; Norm(i-> 45 /\ res=10, res) @*)
(*@ ex i; Norm(i-> 55 /\ res=10, res) @*)
= handler 10



let test3 ()
(*@ ex i; Norm(i-> 4950 /\ res=100, res) @*)
(*@ ex i; Norm(i-> 5050 /\ res=100, res) @*)
= handler 100
*)

0 comments on commit e1588ea

Please sign in to comment.