Skip to content

Commit

Permalink
revert to tac_in_term with elpi
Browse files Browse the repository at this point in the history
  • Loading branch information
Tragicus committed Jan 17, 2025
1 parent 3d7ed71 commit 99ae12e
Showing 1 changed file with 22 additions and 11 deletions.
33 changes: 22 additions & 11 deletions theories/common.v
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,29 @@ Unset Printing Implicit Defensive.

Local Open Scope ring_scope.

Elpi Command AddRingNotations.
Elpi Query lp:{{
(coq.locate-all "pzSemiRingType" [loc-gref SemiRingType|_];
SemiRingType = {{:gref semiRingType }}),
coq.notation.add-abbreviation "semiRingType" 0 (global SemiRingType) tt _.
(coq.locate-all "pzRingType" [loc-gref RingType|_];
RingType = {{:gref ringType }}),
coq.notation.add-abbreviation "ringType" 0 (global RingType) tt _.
(coq.locate-all "comPzRingType" [loc-gref ComRingType|_];
ComRingType = {{:gref comRingType }}),
coq.notation.add-abbreviation "comRingType" 0 (global ComRingType) tt _.
Elpi Tactic semiRingType_tac.
Elpi Accumulate lp:{{

Check warning on line 16 in theories/common.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp-dev:coq-8.19)

Notation semiRingType is deprecated since mathcomp 2.4.0.

Check warning on line 16 in theories/common.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp-dev:coq-8.20)

Notation semiRingType is deprecated since mathcomp 2.4.0.

Check warning on line 16 in theories/common.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp-dev:coq-dev)

Notation semiRingType is deprecated since mathcomp 2.4.0.
solve G Gs :-
(coq.locate-all "pzSemiRingType" [loc-gref C|_]; C = {{:gref semiRingType }}),
refine (global C) G Gs.
}}.
Notation semiRingType := (ltac:(elpi semiRingType_tac)).

Check warning on line 21 in theories/common.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp:2.1.0-coq-8.17)

This notation contains Ltac expressions: it will not be used for

Check warning on line 21 in theories/common.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp:2.0.0-coq-8.17)

This notation contains Ltac expressions: it will not be used for

Check warning on line 21 in theories/common.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp:2.0.0-coq-8.16)

This notation contains Ltac expressions: it will not be used for

Check warning on line 21 in theories/common.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp:2.1.0-coq-8.16)

This notation contains Ltac expressions: it will not be used for

Check warning on line 21 in theories/common.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp:2.2.0-coq-8.17)

This notation contains Ltac expressions: it will not be used for

Check warning on line 21 in theories/common.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp:2.1.0-coq-8.18)

This notation contains Ltac expressions: it will not be used for

Check warning on line 21 in theories/common.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp:2.0.0-coq-8.18)

This notation contains Ltac expressions: it will not be used for

Check warning on line 21 in theories/common.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp:2.2.0-coq-8.16)

This notation contains Ltac expressions: it will not be used for

Check warning on line 21 in theories/common.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp:2.2.0-coq-8.20)

This notation contains Ltac expressions:

Check warning on line 21 in theories/common.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp:2.3.0-coq-8.20)

This notation contains Ltac expressions:

Check warning on line 21 in theories/common.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp:2.2.0-coq-8.18)

This notation contains Ltac expressions: it will not be used for

Check warning on line 21 in theories/common.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp:2.2.0-coq-8.19)

This notation contains Ltac expressions: it will not be used for

Check warning on line 21 in theories/common.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp:2.3.0-coq-8.19)

This notation contains Ltac expressions: it will not be used for

Check warning on line 21 in theories/common.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp-dev:coq-8.19)

This notation contains Ltac expressions: it will not be used for

Check warning on line 21 in theories/common.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp-dev:coq-8.20)

This notation contains Ltac expressions:

Check warning on line 21 in theories/common.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp:2.3.0-coq-8.18)

This notation contains Ltac expressions: it will not be used for

Check warning on line 21 in theories/common.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp-dev:coq-dev)

This notation contains Ltac expressions:

Check warning on line 21 in theories/common.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp-dev:coq-8.18)

This notation contains Ltac expressions: it will not be used for

Elpi Tactic ringType_tac.
Elpi Accumulate lp:{{

Check warning on line 24 in theories/common.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp-dev:coq-8.19)

Notation ringType is deprecated since mathcomp 2.4.0.

Check warning on line 24 in theories/common.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp-dev:coq-8.20)

Notation ringType is deprecated since mathcomp 2.4.0.

Check warning on line 24 in theories/common.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp-dev:coq-dev)

Notation ringType is deprecated since mathcomp 2.4.0.
solve G Gs :-
(coq.locate-all "pzRingType" [loc-gref C|_]; C = {{:gref ringType }}),
refine (global C) G Gs.
}}.
Notation ringType := (ltac:(elpi ringType_tac)).

Check warning on line 29 in theories/common.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp:2.1.0-coq-8.17)

This notation contains Ltac expressions: it will not be used for

Check warning on line 29 in theories/common.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp:2.0.0-coq-8.17)

This notation contains Ltac expressions: it will not be used for

Check warning on line 29 in theories/common.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp:2.0.0-coq-8.16)

This notation contains Ltac expressions: it will not be used for

Check warning on line 29 in theories/common.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp:2.1.0-coq-8.16)

This notation contains Ltac expressions: it will not be used for

Check warning on line 29 in theories/common.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp:2.2.0-coq-8.17)

This notation contains Ltac expressions: it will not be used for

Check warning on line 29 in theories/common.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp:2.1.0-coq-8.18)

This notation contains Ltac expressions: it will not be used for

Check warning on line 29 in theories/common.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp:2.0.0-coq-8.18)

This notation contains Ltac expressions: it will not be used for

Check warning on line 29 in theories/common.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp:2.2.0-coq-8.16)

This notation contains Ltac expressions: it will not be used for

Check warning on line 29 in theories/common.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp:2.2.0-coq-8.20)

This notation contains Ltac expressions:

Check warning on line 29 in theories/common.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp:2.3.0-coq-8.20)

This notation contains Ltac expressions:

Check warning on line 29 in theories/common.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp:2.2.0-coq-8.18)

This notation contains Ltac expressions: it will not be used for

Check warning on line 29 in theories/common.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp:2.2.0-coq-8.19)

This notation contains Ltac expressions: it will not be used for

Check warning on line 29 in theories/common.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp:2.3.0-coq-8.19)

This notation contains Ltac expressions: it will not be used for

Check warning on line 29 in theories/common.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp-dev:coq-8.19)

This notation contains Ltac expressions: it will not be used for

Check warning on line 29 in theories/common.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp-dev:coq-8.20)

This notation contains Ltac expressions:

Check warning on line 29 in theories/common.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp:2.3.0-coq-8.18)

This notation contains Ltac expressions: it will not be used for

Check warning on line 29 in theories/common.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp-dev:coq-dev)

This notation contains Ltac expressions:

Check warning on line 29 in theories/common.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp-dev:coq-8.18)

This notation contains Ltac expressions: it will not be used for

Elpi Tactic comRingType_tac.
Elpi Accumulate lp:{{

Check warning on line 32 in theories/common.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp-dev:coq-8.19)

Notation comRingType is deprecated since mathcomp 2.4.0.

Check warning on line 32 in theories/common.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp-dev:coq-8.20)

Notation comRingType is deprecated since mathcomp 2.4.0.

Check warning on line 32 in theories/common.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp-dev:coq-dev)

Notation comRingType is deprecated since mathcomp 2.4.0.
solve G Gs :-
(coq.locate-all "comPzRingType" [loc-gref C|_]; C = {{:gref comRingType }}),
refine (global C) G Gs.
}}.
Notation comRingType := (ltac:(elpi comRingType_tac)).

Check warning on line 37 in theories/common.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp:2.1.0-coq-8.17)

This notation contains Ltac expressions: it will not be used for

Check warning on line 37 in theories/common.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp:2.0.0-coq-8.17)

This notation contains Ltac expressions: it will not be used for

Check warning on line 37 in theories/common.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp:2.0.0-coq-8.16)

This notation contains Ltac expressions: it will not be used for

Check warning on line 37 in theories/common.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp:2.1.0-coq-8.16)

This notation contains Ltac expressions: it will not be used for

Check warning on line 37 in theories/common.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp:2.2.0-coq-8.17)

This notation contains Ltac expressions: it will not be used for

Check warning on line 37 in theories/common.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp:2.1.0-coq-8.18)

This notation contains Ltac expressions: it will not be used for

Check warning on line 37 in theories/common.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp:2.0.0-coq-8.18)

This notation contains Ltac expressions: it will not be used for

Check warning on line 37 in theories/common.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp:2.2.0-coq-8.16)

This notation contains Ltac expressions: it will not be used for

Check warning on line 37 in theories/common.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp:2.2.0-coq-8.20)

This notation contains Ltac expressions:

Check warning on line 37 in theories/common.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp:2.3.0-coq-8.20)

This notation contains Ltac expressions:

Check warning on line 37 in theories/common.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp:2.2.0-coq-8.18)

This notation contains Ltac expressions: it will not be used for

Check warning on line 37 in theories/common.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp:2.2.0-coq-8.19)

This notation contains Ltac expressions: it will not be used for

Check warning on line 37 in theories/common.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp:2.3.0-coq-8.19)

This notation contains Ltac expressions: it will not be used for

Check warning on line 37 in theories/common.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp-dev:coq-8.19)

This notation contains Ltac expressions: it will not be used for

Check warning on line 37 in theories/common.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp-dev:coq-8.20)

This notation contains Ltac expressions:

Check warning on line 37 in theories/common.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp:2.3.0-coq-8.18)

This notation contains Ltac expressions: it will not be used for

Check warning on line 37 in theories/common.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp-dev:coq-dev)

This notation contains Ltac expressions:

Check warning on line 37 in theories/common.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp-dev:coq-8.18)

This notation contains Ltac expressions: it will not be used for

Implicit Types (V : nmodType) (R : semiRingType) (F : fieldType).

Expand Down

0 comments on commit 99ae12e

Please sign in to comment.