Created
July 6, 2024 09:33
-
-
Save larsr/58aafd1d9a68db6c9752bb148fc22922 to your computer and use it in GitHub Desktop.
proof of plus associativity in a single gallina term
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
Definition plus_assoc : forall a b, a + b = b + a := | |
nat_ind (fun n => forall b, n + b = b + n) | |
(nat_ind (fun n => n = n + 0) eq_refl (fun n => eq_S _ _)) | |
(fun n H b => eq_trans (eq_S _ _ (H b)) | |
(nat_ind (fun b => S (b + n) = b + S n) | |
eq_refl | |
(fun _ => eq_S _ _) b) : S (n + b) = b + S n). |
Author
larsr
commented
Jul 8, 2024
•
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment