Last active
April 4, 2020 01:23
-
-
Save vlj/caebeb393abf76342a409d871ed39a86 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From mathcomp Require Import ssreflect ssrnat eqtype ssrbool ssrnum ssralg. | |
Require Import Ring. | |
Open Scope ring_scope. | |
Import GRing.Theory. | |
Variable R: numFieldType. | |
Definition rt : | |
@ring_theory R 0%:R 1%:R +%R *%R (fun a b => a - b) -%R eq. | |
Proof. | |
apply mk_rt. | |
apply add0r. | |
apply addrC. | |
apply addrA. | |
apply mul1r. | |
apply mulrC. | |
apply mulrA. | |
apply mulrDl. | |
by []. | |
apply subrr. | |
Qed. | |
Add Ring Ringgg : rt. | |
Lemma tmp2: | |
forall x y z:R, x + y = y + x. | |
Proof. | |
move => x y z. | |
Unset Printing Notations. | |
Fail ring_simplify. | |
Qed. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment