| 1 |
From Coq Require Import RelationClasses. |
| 2 |
Notation iffT A B := (((A -> B) * (B -> A)))%type. |
| 3 |
Notation iffTp := (fun A B => inhabited (iffT A B)). |
| 4 |
|
| 5 |
Global Instance iffTp_Reflexive : Reflexive iffTp | 1. |
| 6 |
Proof. repeat constructor; intro; assumption. Defined. |
| 7 |
Global Instance iffTp_Symmetric : Symmetric iffTp | 1. |
| 8 |
Proof. repeat (intros [?] || intro); constructor; tauto. Defined. |
| 9 |
Global Instance iffTp_Transitive : Transitive iffTp | 1. |
| 10 |
Proof. repeat (intros [?] || intro); constructor; tauto. Defined. |