diff --git a/examples/cursor/why3session.xml b/examples/cursor/why3session.xml index 15113b01be9ab9de4594f2ee0e58106fd14e371c..582bbcaea64daf2b311509ea9f64f55d8e99622b 100644 --- a/examples/cursor/why3session.xml +++ b/examples/cursor/why3session.xml @@ -101,7 +101,7 @@ - + @@ -137,12 +137,12 @@ - + - + diff --git a/examples/cursor/why3shapes.gz b/examples/cursor/why3shapes.gz index f6e2cbc298bc202bef02159c41a1dffef3044a19..315b94fb2003432928ca47ebad2e053450af03ae 100644 Binary files a/examples/cursor/why3shapes.gz and b/examples/cursor/why3shapes.gz differ diff --git a/examples/dijkstra/why3session.xml b/examples/dijkstra/why3session.xml index 303ae2839cd017ff319c90910693a06b4664aa3a..6ab3b537f6774efca43c766fa1f10a43dd01e836 100644 --- a/examples/dijkstra/why3session.xml +++ b/examples/dijkstra/why3session.xml @@ -9,7 +9,7 @@ - + @@ -134,7 +134,7 @@ - + diff --git a/examples/dijkstra/why3shapes.gz b/examples/dijkstra/why3shapes.gz index 4037c37db3eb1a247966799f4f1d721104ea5376..88a4678b4bf039ee1a053918f8276a5ad4d4cf80 100644 Binary files a/examples/dijkstra/why3shapes.gz and b/examples/dijkstra/why3shapes.gz differ diff --git a/examples/double_wp/logic/why3session.xml b/examples/double_wp/logic/why3session.xml index 924a51b94022f5f1a2c4714c050176484550babc..9fd18c38ca1462a66548d53ca3bc5a9a759fd214 100644 --- a/examples/double_wp/logic/why3session.xml +++ b/examples/double_wp/logic/why3session.xml @@ -7,7 +7,7 @@ - + @@ -72,7 +72,7 @@ - + diff --git a/examples/double_wp/logic/why3shapes.gz b/examples/double_wp/logic/why3shapes.gz index a3348d05ea69ed3c986def7aefd4568d6d5ba571..a5eb0e836c3353e5db19dc8ca75196ad31349dd3 100644 Binary files a/examples/double_wp/logic/why3shapes.gz and b/examples/double_wp/logic/why3shapes.gz differ diff --git a/examples/double_wp/vm/why3session.xml b/examples/double_wp/vm/why3session.xml index cd2ee5fde2931b94c2876c415b8969f5dc69c003..d2e9ee79fccc2076cd2334c97fd10573f8e58c2e 100644 --- a/examples/double_wp/vm/why3session.xml +++ b/examples/double_wp/vm/why3session.xml @@ -3,19 +3,20 @@ "http://why3.lri.fr/why3session.dtd"> + - + - + - + diff --git a/examples/double_wp/vm/why3shapes.gz b/examples/double_wp/vm/why3shapes.gz index 44458e7506ea62b8a49699c49d0cced8fd2e4494..faca0b49f4caf5d75d3e95dce067a65ad9249109 100644 Binary files a/examples/double_wp/vm/why3shapes.gz and b/examples/double_wp/vm/why3shapes.gz differ diff --git a/examples/fibonacci.mlw b/examples/fibonacci.mlw index 93749e8c32b3acb256c4044cf4e8d58f531045a2..bdfb39d0f6f6d8aa3927d1945f96d7f9b916ec10 100644 --- a/examples/fibonacci.mlw +++ b/examples/fibonacci.mlw @@ -271,13 +271,10 @@ theory Mat22 "2x2 integer matrices" a21 = x.a21 * y.a11 + x.a22 * y.a21; a22 = x.a21 * y.a12 + x.a22 * y.a22; } - (* holds, but not useful *) - (* clone algebra.Assoc with type t = t, function op = mult, lemma Assoc *) - clone export int.Exponentiation with type t = t, function one = id, function (*) = mult, - goal Assoc, goal Comm, goal Unit_def_l, goal Unit_def_r + goal Assoc, goal Unit_def_l, goal Unit_def_r end diff --git a/examples/ieee_float.mlw b/examples/tests-provers/ieee_float.mlw similarity index 100% rename from examples/ieee_float.mlw rename to examples/tests-provers/ieee_float.mlw diff --git a/examples/ieee_float/why3session.xml b/examples/tests-provers/ieee_float/why3session.xml similarity index 100% rename from examples/ieee_float/why3session.xml rename to examples/tests-provers/ieee_float/why3session.xml diff --git a/examples/tests-provers/ieee_float/why3shapes.gz b/examples/tests-provers/ieee_float/why3shapes.gz new file mode 100644 index 0000000000000000000000000000000000000000..39412e954b3663097aee7e466ff63cb10de9e290 Binary files /dev/null and b/examples/tests-provers/ieee_float/why3shapes.gz differ diff --git a/theories/int.why b/theories/int.why index 97874584ce332774edccde96e4c04978ff26a3f6..199a1798a6f24f056a39438cc1609c5070f5b594 100644 --- a/theories/int.why +++ b/theories/int.why @@ -245,7 +245,7 @@ theory Exponentiation constant one : t function (*) t t : t - clone export algebra.CommutativeMonoid + clone export algebra.Monoid with type t = t, constant unit = one, function op = (*) (* TODO: implement with let rec once let cloning is done *) @@ -293,7 +293,7 @@ theory Power clone export Exponentiation with type t = int, constant one = one, function (*) = (*), function power = power, - goal Assoc, goal Comm, goal Unit_def_l, goal Unit_def_r + goal Assoc, goal Unit_def_l, goal Unit_def_r lemma Power_non_neg: forall x y. x >= 0 /\ y >= 0 -> power x y >= 0 diff --git a/theories/real.why b/theories/real.why index ed1dd45a65167bb9dfc3903aa40d014a812ab3a8..e8b9d6923610262c8b909618f56edd9eac8db8f5 100644 --- a/theories/real.why +++ b/theories/real.why @@ -255,7 +255,7 @@ theory PowerInt clone export int.Exponentiation with type t = real, constant one = Real.one, function (*) = Real.(*), - goal Assoc, goal Comm, goal Unit_def_l, goal Unit_def_r + goal Assoc, goal Unit_def_l, goal Unit_def_r lemma Pow_ge_one: forall x:real, n:int. 0 <= n /\ 1.0 <=. x -> 1.0 <=. power x n