Created
September 27, 2022 07:01
-
-
Save yoshihiro503/956e8882549be1985990fb6f4235b9c9 to your computer and use it in GitHub Desktop.
This file contains 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 div. | |
Lemma test_000: forall a b c : nat, a + b + c = b + c + a. | |
Proof. | |
move=> a b c. | |
rewrite (_: b + c = c + b). | |
- by apply addnCAC. | |
- by apply addnC. | |
Qed. | |
Lemma test_001: forall m : nat, 2 ^ m.+1 = 2 * 2 ^ m. | |
Proof. | |
move=> m. by rewrite expnS. | |
Qed. | |
Lemma test_002: forall a b c : nat, a * b ^ c = b ^ c * a. | |
Proof. | |
move=> a b c. by apply /mulnC. | |
Qed. | |
Lemma test_003: forall a b c : nat, a * b ^ c %/ a = b ^ c * a %/ a. | |
Proof. | |
move=> a b c. by rewrite mulnC. | |
Qed. | |
Lemma test_004: forall a b c : nat, a + b ^ c = b ^ c + a. | |
Proof. | |
move=> a b c. by rewrite addnC. | |
Qed. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment