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 w.r.t. coq/coq#18895. #110

Merged
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 src/Common/MSetExtensions.v
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ Module MSetExtensionsOn (E: DecidableType) (Import M: WSetsOn E).
Create HintDb sets discriminated.
Create HintDb setsb discriminated.
Global Hint Immediate union_subset_1 union_subset_2 inter_subset_1 inter_subset_2 equal_refl : sets.
Global Hint Resolve (BasicFacts.inter_s_m : forall x y _ x' y' _, _) : sets.
Global Hint Extern 2 => simple apply (BasicFacts.inter_s_m : forall x y _ x' y' _, _) : sets.

Ltac simplify_sets_step :=
idtac;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Section fold_correctness.
(prerelated : Ensemble String -> T -> Prop)
{aicdata : AbstractInterpretationCorrectness prerelated}.
Context (G : pregrammar' Char).
Local Hint Immediate (compile_item_data_of_abstract_interpretation G) : typeclass_instances.
Local Hint Extern 1 (opt.compile_item_data _ _) => simple apply (compile_item_data_of_abstract_interpretation G) : typeclass_instances.
Context (compiled_productions : list (opt.productions state))
(Hcompiled_productions : List.map opt.compile_productions (List.map snd (pregrammar_productions G)) = compiled_productions).

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ Section fold_correctness.
}.

Context {aicdata : AbstractInterpretationCorrectness}.
Local Hint Immediate (compile_item_data_of_abstract_interpretation G) : typeclass_instances.
Local Hint Extern 1 (opt.compile_item_data _ _) => simple apply (compile_item_data_of_abstract_interpretation G) : typeclass_instances.
Context (compiled_productions : list (opt.productions state))
(Hcompiled_productions : List.map opt.compile_productions (List.map snd (pregrammar_productions G)) = compiled_productions).

Expand Down
2 changes: 1 addition & 1 deletion src/Parsers/GenericRecognizerMin.v
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ Section recursive_descent_parser.
try unfold x'; try unfold y'
end.

Local Hint Resolve (fun n m => proj1 (Nat.eqb_eq n m)) : generic_parser_correctness.
Local Hint Extern 1 (eq _ _) => simple apply (fun n m => proj1 (Nat.eqb_eq n m)) : generic_parser_correctness.

Local Ltac eq_t' :=
first [ progress subst_le_proof
Expand Down
2 changes: 1 addition & 1 deletion src/Parsers/Refinement/PossibleTerminalsSets.v
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ Local Declare Reduction opt_possible :=
Section defs.
Context (G : pregrammar' Ascii.ascii)
{pdata : possible_data G}.
Local Hint Immediate (compile_item_data_of_abstract_interpretation G) : typeclass_instances.
Local Hint Extern 1 (opt.compile_item_data _ _) => simple apply (compile_item_data_of_abstract_interpretation G) : typeclass_instances.

Definition characters_set_to_ascii_list (s : PositiveSet.t)
: list Ascii.ascii
Expand Down
4 changes: 3 additions & 1 deletion src/Parsers/Reflective/LogicalRelations.v
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,9 @@ Hint Rewrite <- @interp_Term_syntactify_list @interp_Term_syntactify_nat @List.m
#[global]
Hint Rewrite @nth'_nth List.map_nth List.map_map List.map_length List.map_id @combine_map_r @combine_map_l @first_index_default_map Bool.orb_true_r Bool.orb_true_l Bool.andb_true_l Bool.andb_true_r Bool.orb_false_r Bool.orb_false_l Bool.andb_false_l Bool.andb_false_r BoolFacts.andbr_andb BoolFacts.orbr_orb @bool_rect_nodep_const @BoolFacts.uneta_bool_rect_nodep : partial_unfold_hints.
#[global]
Hint Resolve map_ext_in fold_left_app (@constantOf_correct cbool) @first_index_default_first_index_partial : partial_unfold_hints.
Hint Resolve map_ext_in fold_left_app @first_index_default_first_index_partial : partial_unfold_hints.
#[global]
Hint Extern 1 (eq (interp_Term _) _) => eapply (@constantOf_correct cbool) : partial_unfold_hints.

Local Ltac meaning_tac_helper' :=
idtac;
Expand Down
Loading