Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adapt to https://github.com/coq/coq/pull/19530 #1102

Merged
merged 1 commit into from
Dec 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pcuic/theories/Bidirectional/BDStrengthening.v
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ From MetaCoq.PCUIC Require Import PCUICAst PCUICAstUtils PCUICGlobalEnv
From MetaCoq.PCUIC Require Import BDTyping BDToPCUIC BDFromPCUIC.

Require Import ssreflect ssrbool.
Require Import Coq.Program.Equality.
From Coq.Program Require Import Equality.

Ltac case_inequalities :=
match goal with
Expand Down
2 changes: 1 addition & 1 deletion pcuic/theories/Syntax/PCUICDepth.v
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
(* Distributed under the terms of the MIT license. *)
From Coq Require Import ssreflect Program Lia BinPos Arith.Compare_dec Bool.
From Coq Require Import ssreflect Program Lia BinPos Compare_dec Bool.
From MetaCoq.Utils Require Import utils LibHypsNaming.
From MetaCoq.PCUIC Require Import PCUICAst PCUICAstUtils PCUICCases PCUICSize PCUICInduction.
From Coq Require Import List.
Expand Down
2 changes: 1 addition & 1 deletion pcuic/theories/Syntax/PCUICInduction.v
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
(* Distributed under the terms of the MIT license. *)
From Coq Require Import ssreflect Program Lia BinPos Arith.Compare_dec Bool.
From Coq Require Import ssreflect Program Lia BinPos Compare_dec Bool.
From MetaCoq.Utils Require Import utils LibHypsNaming.
From MetaCoq.PCUIC Require Import PCUICAst PCUICAstUtils PCUICCases PCUICSize.
From Coq Require Import List.
Expand Down
2 changes: 1 addition & 1 deletion quotation/theories/ToPCUIC/Stdlib/Numbers.v
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ From Coq.Numbers Require Import BinNums DecimalFacts HexadecimalFacts
Cyclic.Int63.PrimInt63 Cyclic.Int63.Uint63
Cyclic.Abstract.CyclicAxioms
Cyclic.Abstract.DoubleType
Cyclic.Abstract.CarryType
Cyclic.Int63.CarryType
.

From Coq Require Import ZArith.
Expand Down
2 changes: 1 addition & 1 deletion quotation/theories/ToTemplate/Stdlib/Numbers.v
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ From Coq.Numbers Require Import BinNums DecimalFacts HexadecimalFacts
Cyclic.Int63.PrimInt63 Cyclic.Int63.Uint63
Cyclic.Abstract.CyclicAxioms
Cyclic.Abstract.DoubleType
Cyclic.Abstract.CarryType
Cyclic.Int63.CarryType
.
From Coq Require Import ZArith.
From MetaCoq.Quotation.ToTemplate Require Import Stdlib.Init.
Expand Down
2 changes: 2 additions & 0 deletions safechecker-plugin/_PluginProject.in
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ src/uGraph0.ml
src/uGraph0.mli
src/wGraph.ml
src/wGraph.mli
src/wf0.ml
src/wf0.mli

# From PCUIC
src/pCUICPrimitive.mli
Expand Down
5 changes: 5 additions & 0 deletions safechecker-plugin/clean_extraction.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ then
done
cd ..

# confusion between Init.Wf and Program.Wf
mv src/wf.ml src/wf0.ml
mv src/wf.mli src/wf0.mli
sed -i.bak src/pCUICSafeChecker.ml -e 's/open Wf/open Wf0/'

# Remove extracted modules already linked in the template_coq plugin.
echo "Removing:" $files
rm -f $files
Expand Down
1 change: 1 addition & 0 deletions safechecker-plugin/src/metacoq_safechecker_plugin.mlpack
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ WGraph
UGraph0
Reflect
MCProd
Wf0

Classes0
Logic1
Expand Down
2 changes: 1 addition & 1 deletion safechecker-plugin/theories/Extraction.v
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ Next Obligation. eapply fake_abstract_guard_impl_properties. Qed.
Definition infer_and_print_template_program_with_guard {cf} {nor} :=
@SafeTemplateChecker.infer_and_print_template_program cf nor fake_abstract_guard_impl.

Separate Extraction MakeOrderTac PCUICSafeChecker.typecheck_program
Separate Extraction Wf.Fix_sub MakeOrderTac PCUICSafeChecker.typecheck_program
infer_and_print_template_program_with_guard
(* The following directives ensure separate extraction does not produce name clashes *)
Stdlib.Strings.String UnivSubst PCUICPretty.
2 changes: 1 addition & 1 deletion safechecker/theories/PCUICSafeChecker.v
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ Definition gcs_equal x y : Prop :=


(** It otherwise tries [auto with *], very bad idea. *)
Ltac Stdlib.Program.Tactics.program_solve_wf ::=
Ltac Corelib.Program.Tactics.program_solve_wf ::=
match goal with
| |- @Wf.well_founded _ _ => auto with subterm wf
| |- ?T => match type of T with
Expand Down
4 changes: 2 additions & 2 deletions safechecker/theories/PCUICTypeChecker.v
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ From MetaCoq.SafeChecker Require Import PCUICEqualityDec PCUICSafeReduce PCUICEr

From Equations Require Import Equations.
Require Import ssreflect ssrbool.
Require Import Stdlib.Program.Program.
From Stdlib Require Import Program.

Local Set Keyed Unification.
Set Equations Transparent.
Expand Down Expand Up @@ -125,7 +125,7 @@ Proof.
Qed.

(** It otherwise tries [auto with *], very bad idea. *)
Ltac Stdlib.Program.Tactics.program_solve_wf ::=
Ltac Corelib.Program.Tactics.program_solve_wf ::=
match goal with
| |- @Wf.well_founded _ _ => auto with subterm wf
| |- ?T => match type of T with
Expand Down
7 changes: 0 additions & 7 deletions template-coq/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -74,14 +74,7 @@ cleanplugin: Makefile.plugin
make -f Makefile.plugin clean

PLUGIN_PROJECT_BLACKLIST := \
carryType \
coreTactics \
depElim \
floatClass \
init \
mCUint63 \
noConfusion \
wf \
#

space := $(subst ,, )
Expand Down
42 changes: 18 additions & 24 deletions template-coq/_PluginProject.in
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,6 @@ gen-src/binNums.ml
gen-src/binNums.mli
gen-src/binPos.ml
gen-src/binPos.mli
gen-src/binPosDef.ml
gen-src/binPosDef.mli
gen-src/decidableClass.mli
gen-src/decidableClass.ml
gen-src/bool.ml
gen-src/bool.mli
gen-src/byte.ml
Expand Down Expand Up @@ -64,6 +60,8 @@ gen-src/coreTactics.ml
gen-src/coreTactics.mli
gen-src/datatypes.ml
gen-src/datatypes.mli
gen-src/decidableClass.ml
gen-src/decidableClass.mli
gen-src/decidableType.ml
gen-src/decidableType.mli
gen-src/decimal.ml
Expand Down Expand Up @@ -101,20 +99,22 @@ gen-src/floatOps.ml
gen-src/floatOps.mli
gen-src/hexadecimal.ml
gen-src/hexadecimal.mli
# gen-src/hexadecimalString.ml
# gen-src/hexadecimalString.mli
gen-src/induction0.ml
gen-src/induction0.mli
gen-src/init.ml
gen-src/init.mli
gen-src/int0.ml
gen-src/int0.mli
gen-src/intDef.ml
gen-src/intDef.mli
gen-src/kernames.ml
gen-src/kernames.mli
gen-src/liftSubst.ml
gen-src/liftSubst.mli
gen-src/list0.ml
gen-src/list0.mli
gen-src/listDef.ml
gen-src/listDef.mli
gen-src/logic0.ml
gen-src/logic0.mli
gen-src/logic1.ml
Expand All @@ -141,10 +141,6 @@ gen-src/mCRelations.ml
gen-src/mCRelations.mli
gen-src/mCString.ml
gen-src/mCString.mli
gen-src/sint63.mli
gen-src/sint63.ml
gen-src/show.mli
gen-src/show.ml
# gen-src/mCUint63.ml
# gen-src/mCUint63.mli
gen-src/mCUtils.ml
Expand All @@ -165,6 +161,8 @@ gen-src/monad_utils.ml
gen-src/monad_utils.mli
gen-src/nat0.ml
gen-src/nat0.mli
gen-src/natDef.ml
gen-src/natDef.mli
gen-src/noConfusion.ml
gen-src/noConfusion.mli
gen-src/number.ml
Expand All @@ -187,6 +185,8 @@ gen-src/peanoNat.ml
gen-src/peanoNat.mli
gen-src/plugin_core.ml
gen-src/plugin_core.mli
gen-src/posDef.ml
gen-src/posDef.mli
gen-src/pretty.ml
gen-src/pretty.mli
gen-src/primFloat.ml
Expand All @@ -195,10 +195,10 @@ gen-src/primInt63.ml
gen-src/primInt63.mli
gen-src/primString.ml
gen-src/primString.mli
gen-src/primitive.ml
gen-src/primitive.mli
gen-src/primStringAxioms.ml
gen-src/primStringAxioms.mli
gen-src/primitive.ml
gen-src/primitive.mli
gen-src/quoter.ml
gen-src/reflect.ml
gen-src/reflect.mli
Expand All @@ -209,16 +209,18 @@ gen-src/relation.ml
gen-src/relation.mli
gen-src/run_extractable.ml
gen-src/run_extractable.mli
gen-src/show.ml
gen-src/show.mli
gen-src/signature.ml
gen-src/signature.mli
gen-src/sint63Axioms.ml
gen-src/sint63Axioms.mli
gen-src/specFloat.ml
gen-src/specFloat.mli
gen-src/specif.ml
gen-src/specif.mli
gen-src/string0.ml
gen-src/string0.mli
gen-src/sumbool.ml
gen-src/sumbool.mli
gen-src/templateEnvMap.ml
gen-src/templateEnvMap.mli
gen-src/templateProgram.ml
Expand All @@ -230,20 +232,12 @@ gen-src/transform.ml
gen-src/transform.mli
gen-src/typing0.ml
gen-src/typing0.mli
gen-src/uint0.ml
gen-src/uint0.mli
gen-src/uint63Axioms.ml
gen-src/uint63Axioms.mli
gen-src/universes0.ml
gen-src/universes0.mli
gen-src/wf.ml
gen-src/wf.mli
gen-src/zArith_dec.ml
gen-src/zArith_dec.mli
gen-src/zbool.ml
gen-src/zbool.mli
gen-src/zeven.ml
gen-src/zeven.mli
gen-src/zpower.ml
gen-src/zpower.mli

gen-src/metacoq_template_plugin.mlpack

Expand Down
6 changes: 6 additions & 0 deletions template-coq/gen-src/metacoq_template_plugin.mlpack
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,21 @@ Hexadecimal
Numeral0
Nat0
Caml_nat
ListDef
List0
PeanoNat
Specif
Basics
BinPosDef
BinNums
BinPos
PosDef
BinNat
NatDef
BinInt
IntDef
PrimInt63
Uint63Axioms
Uint0
Int63
Byte
Expand Down Expand Up @@ -77,6 +82,7 @@ FloatOps
PrimString
PrimStringAxioms
MCString
Sint63Axioms
Sint63
Show
MCUtils
Expand Down
Loading
Loading