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/19310 #662

Merged
merged 1 commit into from
Jul 18, 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
1 change: 1 addition & 0 deletions apps/coercion/tests/coercion.t/test.v
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
From elpi.apps Require Import coercion.
#[warning="-deprecated-from-Coq"]
From Coq Require Import Bool.

Elpi Accumulate coercion.db lp:{{
Expand Down
1 change: 1 addition & 0 deletions apps/coercion/tests/coercion_open.t/test.v
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
From elpi.apps Require Import coercion.
#[warning="-deprecated-from-Coq"]
From Coq Require Import Arith ssreflect.

Ltac my_solver := trivial with arith.
Expand Down
3 changes: 2 additions & 1 deletion apps/tc/elpi/tc_aux.elpi
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,8 @@ namespace tc {
if (tc.is-option-active tc.oTC-clauseNameShortName)
(Path = "")
(coq.gref->path Gr [Hd | Tl],
std.fold Tl Hd (x\acc\r\ r is acc ^ "." ^ x) Path',
if (Hd = "Coq") (Hd' = "Stdlib") (Hd' = Hd),
std.string.concat "." [Hd'|Tl] Path',
proux01 marked this conversation as resolved.
Show resolved Hide resolved
Path is Path' ^ ".tc-"),
% CAVEAT : Non-ascii caractars can't be part of a pred
% name, we replace ö with o
Expand Down
6 changes: 3 additions & 3 deletions apps/tc/tests/bigTest.v
Original file line number Diff line number Diff line change
Expand Up @@ -882,7 +882,7 @@ instances *)
Section prod_setoid.
Context `{Equiv A, Equiv B}.
Elpi Accumulate TC.Solver lp:{{
shorten tc-Coq.Classes.RelationClasses.{tc-Equivalence}.
shorten tc-Stdlib.Classes.RelationClasses.{tc-Equivalence}.
:after "lastHook"
tc-Equivalence A RA R :-
RA = {{@equiv _ (@prod_equiv _ _ _ _)}},
Expand Down Expand Up @@ -910,7 +910,7 @@ Section prod_setoid.
std.map L1 remove_equiv_prod_equiv L2.
remove_equiv_prod_equiv A A.

shorten tc-Coq.Classes.Morphisms.{tc-Proper}.
shorten tc-Stdlib.Classes.Morphisms.{tc-Proper}.

:after "lastHook"
tc-Proper A B C R :-
Expand Down Expand Up @@ -1043,7 +1043,7 @@ Elpi Accumulate TC.Solver lp:{{
std.map L1 remove_equiv_sum_equiv L2.
remove_equiv_sum_equiv A A.

shorten tc-Coq.Classes.Morphisms.{tc-Proper}.
shorten tc-Stdlib.Classes.Morphisms.{tc-Proper}.
:after "lastHook"
tc-Proper A B C R :-
B = {{ @respectful _ _ _ _ }},
Expand Down
Loading