Created
October 25, 2016 23:15
-
-
Save wilcoxjay/e913b5f8533831ad963da0383f401a89 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 PArith Omega. | |
Lemma unique_succ : forall a : positive, exists! b : nat, S b = Pos.to_nat a. | |
Proof. | |
induction a. | |
- destruct IHa as [b [Hb Hbunique]]. | |
rewrite Pos2Nat.inj_xI. | |
eexists. | |
split; eauto. | |
intros. omega. | |
- destruct IHa as [b [Hb Hbunique]]. | |
rewrite Pos2Nat.inj_xO. | |
rewrite <- Hb. | |
simpl. | |
eexists. | |
split; eauto. | |
intros. omega. | |
- exists 0. split; auto. | |
compute. intros. omega. | |
Qed. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment