Commit 4c401f16 authored by MARCHE Claude's avatar MARCHE Claude
Browse files

fix generation of Coq headers for realizations

parent 868901e2
......@@ -929,7 +929,7 @@ ifeq (@enable_coq_fp_libs@,yes)
cp $(addsuffix .vo, $(COQLIBS_FP)) $(LIBDIR)/why3/coq/floating_point/
endif
update-coq: update-coq-int update-coq-bool update-coq-real update-coq-number update-coq-set update-coq-map update-coq-list update-coq-option update-coq-fp headers-coq
update-coq: remove-coq-headers update-coq-int update-coq-bool update-coq-real update-coq-number update-coq-set update-coq-map update-coq-list update-coq-option update-coq-fp headers-coq
update-coq-int: bin/why3realize.@OCAMLBEST@ drivers/coq-realizations.aux theories/int.why
for f in $(COQLIBS_INT_ALL_FILES); do WHY3CONFIG="" bin/why3realize.@OCAMLBEST@ -L theories -D drivers/coq-realize.drv -T int.$$f -o lib/coq/int/; done
......@@ -1841,6 +1841,9 @@ headers-coq:
headache -c misc/headache_config.txt -h misc/header.txt \
lib/coq/*/*.v
remove-coq-headers:
headache -r -c misc/headache_config.txt lib/coq/*/*.v
#########
# myself
#########
......
......@@ -14,11 +14,6 @@
Require Import BuiltIn.
Require BuiltIn.
(* This file is generated by Why3's Coq-realize driver *)
(* Beware! Only edit allowed sections below *)
Require Import BuiltIn.
Require BuiltIn.
(* Why3 goal *)
Lemma andb_def : forall (x:bool) (y:bool),
((Init.Datatypes.andb x y) = match x with
......
......@@ -21,18 +21,6 @@ Require real.FromInt.
Require floating_point.Rounding.
Require floating_point.DoubleFormat.
(* This file is generated by Why3's Coq-realize driver *)
(* Beware! Only edit allowed sections below *)
Require Import BuiltIn.
Require Reals.Rbasic_fun.
Require BuiltIn.
Require int.Int.
Require real.Real.
Require real.Abs.
Require real.FromInt.
Require floating_point.Rounding.
Require floating_point.DoubleFormat.
Require Import floating_point.GenFloat.
(* Why3 goal *)
......
......@@ -14,11 +14,6 @@
Require Import BuiltIn.
Require BuiltIn.
(* This file is generated by Why3's Coq-realize driver *)
(* Beware! Only edit allowed sections below *)
Require Import BuiltIn.
Require BuiltIn.
Require Import floating_point.GenFloat.
(* Why3 goal *)
......
......@@ -14,11 +14,6 @@
Require Import BuiltIn.
Require BuiltIn.
(* This file is generated by Why3's Coq-realize driver *)
(* Beware! Only edit allowed sections below *)
Require Import BuiltIn.
Require BuiltIn.
(* Why3 assumption *)
Inductive mode :=
| NearestTiesToEven : mode
......
......@@ -21,18 +21,6 @@ Require real.FromInt.
Require floating_point.Rounding.
Require floating_point.SingleFormat.
(* This file is generated by Why3's Coq-realize driver *)
(* Beware! Only edit allowed sections below *)
Require Import BuiltIn.
Require Reals.Rbasic_fun.
Require BuiltIn.
Require int.Int.
Require real.Real.
Require real.Abs.
Require real.FromInt.
Require floating_point.Rounding.
Require floating_point.SingleFormat.
Require Import floating_point.GenFloat.
(* Why3 goal *)
......
......@@ -14,11 +14,6 @@
Require Import BuiltIn.
Require BuiltIn.
(* This file is generated by Why3's Coq-realize driver *)
(* Beware! Only edit allowed sections below *)
Require Import BuiltIn.
Require BuiltIn.
Require Import floating_point.GenFloat.
(* Why3 goal *)
......
......@@ -15,12 +15,6 @@ Require Import BuiltIn.
Require BuiltIn.
Require int.Int.
(* This file is generated by Why3's Coq-realize driver *)
(* Beware! Only edit allowed sections below *)
Require Import BuiltIn.
Require BuiltIn.
Require int.Int.
(* Why3 comment *)
(* abs is replaced with (ZArith.BinInt.Z.abs x) by the coq driver *)
......
......@@ -16,13 +16,6 @@ Require BuiltIn.
Require int.Int.
Require int.Abs.
(* This file is generated by Why3's Coq-realize driver *)
(* Beware! Only edit allowed sections below *)
Require Import BuiltIn.
Require BuiltIn.
Require int.Int.
Require int.Abs.
Require Import Zquot.
(* Why3 comment *)
......
......@@ -15,12 +15,6 @@ Require Import BuiltIn.
Require BuiltIn.
Require int.Int.
(* This file is generated by Why3's Coq-realize driver *)
(* Beware! Only edit allowed sections below *)
Require Import BuiltIn.
Require BuiltIn.
Require int.Int.
Require Import int.EuclideanDivision.
(* Why3 goal *)
......
......@@ -16,13 +16,6 @@ Require BuiltIn.
Require int.Int.
Require int.Abs.
(* This file is generated by Why3's Coq-realize driver *)
(* Beware! Only edit allowed sections below *)
Require Import BuiltIn.
Require BuiltIn.
Require int.Int.
Require int.Abs.
(* Why3 goal *)
Definition div: Z -> Z -> Z.
intros x y.
......
......@@ -15,12 +15,6 @@ Require Import BuiltIn.
Require BuiltIn.
Require int.Int.
(* This file is generated by Why3's Coq-realize driver *)
(* Beware! Only edit allowed sections below *)
Require Import BuiltIn.
Require BuiltIn.
Require int.Int.
Section Exponentiation.
(* Why3 goal *)
......
......@@ -14,11 +14,6 @@
Require Import BuiltIn.
Require BuiltIn.
(* This file is generated by Why3's Coq-realize driver *)
(* Beware! Only edit allowed sections below *)
Require Import BuiltIn.
Require BuiltIn.
(* Why3 comment *)
(* infix_ls is replaced with (x < x1)%Z by the coq driver *)
......
......@@ -15,12 +15,6 @@ Require Import BuiltIn.
Require BuiltIn.
Require int.Int.
(* This file is generated by Why3's Coq-realize driver *)
(* Beware! Only edit allowed sections below *)
Require Import BuiltIn.
Require BuiltIn.
Require int.Int.
(* Why3 comment *)
(* min is replaced with (ZArith.BinInt.Z.min x x1) by the coq driver *)
......
......@@ -15,12 +15,6 @@ Require Import BuiltIn.
Require BuiltIn.
Require int.Int.
(* This file is generated by Why3's Coq-realize driver *)
(* Beware! Only edit allowed sections below *)
Require Import BuiltIn.
Require BuiltIn.
Require int.Int.
Require Import Exponentiation.
(* Why3 goal *)
......
......@@ -18,15 +18,6 @@ Require list.List.
Require list.Length.
Require list.Mem.
(* This file is generated by Why3's Coq-realize driver *)
(* Beware! Only edit allowed sections below *)
Require Import BuiltIn.
Require BuiltIn.
Require int.Int.
Require list.List.
Require list.Length.
Require list.Mem.
(* Why3 goal *)
Lemma infix_plpl_def : forall {a:Type} {a_WT:WhyType a}, forall (l1:(list a))
(l2:(list a)),
......
......@@ -15,12 +15,6 @@ Require Import BuiltIn.
Require BuiltIn.
Require list.List.
(* This file is generated by Why3's Coq-realize driver *)
(* Beware! Only edit allowed sections below *)
Require Import BuiltIn.
Require BuiltIn.
Require list.List.
(* Why3 comment *)
(* combine is replaced with (Lists.List.combine x x1) by the coq driver *)
......
......@@ -19,16 +19,6 @@ Require list.Length.
Require list.Mem.
Require list.Append.
(* This file is generated by Why3's Coq-realize driver *)
(* Beware! Only edit allowed sections below *)
Require Import BuiltIn.
Require BuiltIn.
Require int.Int.
Require list.List.
Require list.Length.
Require list.Mem.
Require list.Append.
(* Why3 assumption *)
Inductive distinct {a:Type} {a_WT:WhyType a}: (list a) -> Prop :=
| distinct_zero : (distinct Init.Datatypes.nil)
......
......@@ -16,13 +16,6 @@ Require BuiltIn.
Require list.List.
Require option.Option.
(* This file is generated by Why3's Coq-realize driver *)
(* Beware! Only edit allowed sections below *)
Require Import BuiltIn.
Require BuiltIn.
Require list.List.
Require option.Option.
(* Why3 assumption *)
Definition hd {a:Type} {a_WT:WhyType a} (l:(list a)): (option a) :=
match l with
......
......@@ -15,12 +15,6 @@ Require Import BuiltIn.
Require BuiltIn.
Require list.List.
(* This file is generated by Why3's Coq-realize driver *)
(* Beware! Only edit allowed sections below *)
Require Import BuiltIn.
Require BuiltIn.
Require list.List.
(* Why3 goal *)
Definition hd: forall {a:Type} {a_WT:WhyType a}, (list a) -> a.
intros a a_WT [|h _].
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment