Skip to content

Commit

Permalink
Adapt to coq/coq#19310
Browse files Browse the repository at this point in the history
  • Loading branch information
proux01 committed Jul 28, 2024
1 parent a130580 commit bfbd4ee
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/TacticsUtil.v.cppo
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@ From Ltac2 Require Import Ltac2.
From Ltac2 Require Import Message.
From Ltac2 Require Import Constr.

#if COQ_VERSION >= (8, 21, 0)
Ltac2 ltac1_congruence () := Ltac1.run (Ltac1.ref [ident:(Stdlib); ident:(Init); ident:(Prelude); ident:(congruence)]).
#else
Ltac2 ltac1_congruence () := Ltac1.run (Ltac1.ref [ident:(Coq); ident:(Init); ident:(Prelude); ident:(congruence)]).
#endif
Ltac2 Notation "congruence" := ltac1_congruence ().

(* From https://github.com/tchajed/coq-ltac2-experiments/blob/master/src/Ltac2Lib.v *)
Expand Down

0 comments on commit bfbd4ee

Please sign in to comment.