Skip to content

Commit

Permalink
adapt to MC#1319
Browse files Browse the repository at this point in the history
  • Loading branch information
Tragicus committed Jan 16, 2025
1 parent 12e9b64 commit 16aba2a
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 10 deletions.
24 changes: 14 additions & 10 deletions theories/common.elpi
Original file line number Diff line number Diff line change
Expand Up @@ -91,40 +91,44 @@ register-instance Scope DbName Proj Pat Pred :- std.do! [

pred canonical-init i:scope, i:id.
canonical-init Scope DbName :- std.do! [
(coq.locate-all "GRing.PzSemiRing.sort" [loc-gref SemiRing| _ ]; SemiRing = {{:gref GRing.SemiRing.sort }}),
(coq.locate-all "GRing.ComPzSemiRing.sort" [loc-gref ComSemiRing| _ ]; ComSemiRing = {{:gref GRing.ComSemiRing.sort }}),
(coq.locate-all "GRing.PzRing.sort" [loc-gref Ring| _ ]; Ring = {{:gref GRing.Ring.sort }}),
(coq.locate-all "GRing.ComPzRing.sort" [loc-gref ComRing| _ ]; ComRing = {{:gref GRing.ComRing.sort }}),
register-instance Scope DbName
{{:gref GRing.Nmodule.sort }} {{:gref nat }} canonical-nat-nmodule,
register-instance Scope DbName
{{:gref GRing.SemiRing.sort }} {{:gref nat }} canonical-nat-semiring,
SemiRing {{:gref nat }} canonical-nat-semiring,
register-instance Scope DbName
{{:gref GRing.ComSemiRing.sort }} {{:gref nat }} canonical-nat-comsemiring,
ComSemiRing {{:gref nat }} canonical-nat-comsemiring,
register-instance Scope DbName
{{:gref GRing.Nmodule.sort }} {{:gref N }} canonical-N-nmodule,
register-instance Scope DbName
{{:gref GRing.SemiRing.sort }} {{:gref N }} canonical-N-semiring,
SemiRing {{:gref N }} canonical-N-semiring,
register-instance Scope DbName
{{:gref GRing.ComSemiRing.sort }} {{:gref N }} canonical-N-comsemiring,
ComSemiRing {{:gref N }} canonical-N-comsemiring,
register-instance Scope DbName
{{:gref GRing.Nmodule.sort }} {{:gref int }} canonical-int-nmodule,
register-instance Scope DbName
{{:gref GRing.Zmodule.sort }} {{:gref int }} canonical-int-zmodule,
register-instance Scope DbName
{{:gref GRing.SemiRing.sort }} {{:gref int }} canonical-int-semiring,
SemiRing {{:gref int }} canonical-int-semiring,
register-instance Scope DbName
{{:gref GRing.Ring.sort }} {{:gref int }} canonical-int-ring,
Ring {{:gref int }} canonical-int-ring,
register-instance Scope DbName
{{:gref GRing.ComRing.sort }} {{:gref int }} canonical-int-comring,
ComRing {{:gref int }} canonical-int-comring,
register-instance Scope DbName
{{:gref GRing.UnitRing.sort }} {{:gref int }} canonical-int-unitring,
register-instance Scope DbName
{{:gref GRing.Nmodule.sort }} {{:gref Z }} canonical-Z-nmodule,
register-instance Scope DbName
{{:gref GRing.Zmodule.sort }} {{:gref Z }} canonical-Z-zmodule,
register-instance Scope DbName
{{:gref GRing.SemiRing.sort }} {{:gref Z }} canonical-Z-semiring,
SemiRing {{:gref Z }} canonical-Z-semiring,
register-instance Scope DbName
{{:gref GRing.Ring.sort }} {{:gref Z }} canonical-Z-ring,
Ring {{:gref Z }} canonical-Z-ring,
register-instance Scope DbName
{{:gref GRing.ComRing.sort }} {{:gref Z }} canonical-Z-comring,
ComRing {{:gref Z }} canonical-Z-comring,
register-instance Scope DbName
{{:gref GRing.UnitRing.sort }} {{:gref Z }} canonical-Z-unitring ].

Expand Down
4 changes: 4 additions & 0 deletions theories/common.v
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ Unset Printing Implicit Defensive.

Local Open Scope ring_scope.

Notation semiRingType := (ltac:(exact pzSemiRingType || exact semiRingType)).

Check warning on line 15 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 failure on line 15 in theories/common.v

View workflow job for this annotation

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

The reference pzSemiRingType was not found in the current environment.

Check failure on line 15 in theories/common.v

View workflow job for this annotation

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

The reference pzSemiRingType was not found in the current environment.

Check failure on line 15 in theories/common.v

View workflow job for this annotation

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

The reference pzSemiRingType was not found in the current environment.

Check warning on line 15 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 15 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 failure on line 15 in theories/common.v

View workflow job for this annotation

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

The reference pzSemiRingType was not found in the current environment.

Check failure on line 15 in theories/common.v

View workflow job for this annotation

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

The reference pzSemiRingType was not found in the current environment.

Check warning on line 15 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 failure on line 15 in theories/common.v

View workflow job for this annotation

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

The reference pzSemiRingType was not found in the current environment.

Check failure on line 15 in theories/common.v

View workflow job for this annotation

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

The reference pzSemiRingType was not found in the current environment.

Check warning on line 15 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 15 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 failure on line 15 in theories/common.v

View workflow job for this annotation

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

The reference pzSemiRingType was not found in the current environment.

Check warning on line 15 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 failure on line 15 in theories/common.v

View workflow job for this annotation

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

The reference pzSemiRingType was not found in the current environment.

Check warning on line 15 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 failure on line 15 in theories/common.v

View workflow job for this annotation

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

The reference pzSemiRingType was not found in the current environment.

Check warning on line 15 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.

Check failure on line 15 in theories/common.v

View workflow job for this annotation

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

The reference pzSemiRingType was not found in the current environment.

Check failure on line 15 in theories/common.v

View workflow job for this annotation

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

The reference pzSemiRingType was not found in the current environment.
Notation ringType := (ltac:(exact pzRingType || exact ringType)).

Check warning on line 16 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 16 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 16 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 16 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 16 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 16 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
Notation comRingType := (ltac:(exact comPzRingType || exact comRingType)).

Check warning on line 17 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 17 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 17 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 17 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 17 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 17 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

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

Check failure on line 19 in theories/common.v

View workflow job for this annotation

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

Stack overflow.

Check failure on line 19 in theories/common.v

View workflow job for this annotation

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

Stack overflow.

Check failure on line 19 in theories/common.v

View workflow job for this annotation

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

Stack overflow.

Check failure on line 19 in theories/common.v

View workflow job for this annotation

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

Stack overflow.

Check failure on line 19 in theories/common.v

View workflow job for this annotation

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

Stack overflow.

Check failure on line 19 in theories/common.v

View workflow job for this annotation

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

Stack overflow.

(* Some basic facts about `Decimal.uint` and `Hexadecimal.uint` *)
Expand Down

0 comments on commit 16aba2a

Please sign in to comment.