Last active
June 21, 2020 20:39
-
-
Save pi8027/75e49ec71eda3fbe4ff7644270ae03d2 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
Require Import all_ssreflect. | |
Section cat. | |
Variable (A : Type). | |
Lemma catIr : right_injective (@cat A). | |
Proof. by elim => //= ? ? IH ? ? [] /IH. Qed. | |
Lemma catIl : left_injective (@cat A). | |
Proof. | |
by move=> ? ? ? /(f_equal rev); rewrite !rev_cat => /catIr /(inv_inj revK). | |
(* elim/last_ind => [? ?|? ? IH ? ?]; rewrite ?cats0 // -!rcons_cat. *) | |
(* by move/(@rcons_injl A)/IH. *) | |
Qed. | |
End cat. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment