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

opposite rings #1940

Merged
merged 13 commits into from
May 2, 2024
12 changes: 12 additions & 0 deletions test/Algebra/Rings/Ring.v
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,15 @@ Local Open Scope path_scope.
(** Test that opposite rings are definitionally involutive. *)
Definition test1 (R : Ring) : R = (rng_op (rng_op R)) :> Ring := 1.
Definition test2 (R : CRing) : R = (rng_op (rng_op R)) :> CRing := 1.
Alizter marked this conversation as resolved.
Show resolved Hide resolved

Axiom fake_comm : forall (R : CRing) (x y : R), x * y = y * x.
Definition augment (R : CRing) : CRing.
Proof.
snrapply Build_CRing.
- exact R.
- exact (fake_comm R).
Defined.

Fail Definition test3 (R : CRing) : R = augment R :> CRing := 1.
(* !? *)
Definition test4 (R : CRing) : R = (rng_op (rng_op (augment R))) :> CRing := 1.
Alizter marked this conversation as resolved.
Show resolved Hide resolved
Loading