Created
June 23, 2014 17:43
-
-
Save nomeata/e8d7190a9ae52f524c69 to your computer and use it in GitHub Desktop.
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
Theorem insert_perm: forall k l, Permutation (k :: l) (insert k l). | |
Proof. | |
intros. induction l. | |
- reflexivity. | |
- simpl. destruct (ble_nat k a). | |
+ reflexivity. | |
+ transitivity (a :: k :: l). | |
* apply perm_swap. | |
* constructor; assumption. | |
Qed. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment