-
-
Save Lysxia/900b38b7d141ccfd56ffe988e27f6605 to your computer and use it in GitHub Desktop.
Trivial example of rewrite with non-transitive relation
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 Coq Require Import Setoid Morphisms. | |
Inductive Trivial (n : nat) : Prop := T. | |
Definition neq : nat -> nat -> Prop := | |
fun n m => n <> m. | |
Lemma neq_0_1 : neq 0 1. | |
Proof. | |
discriminate. | |
Qed. | |
Instance Proper_Trivial | |
: Proper (neq ==> iff) Trivial. | |
Proof. | |
firstorder. | |
Qed. | |
Theorem Trivial_1 : Trivial 1. | |
Proof. | |
rewrite <- neq_0_1. | |
constructor. | |
Qed. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment