Last active
April 4, 2020 01:23
-
-
Save vlj/caebeb393abf76342a409d871ed39a86 to your computer and use it in GitHub Desktop.
Revisions
-
vlj renamed this gist
Mar 31, 2020 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
vlj created this gist
Mar 31, 2020 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,34 @@ 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.