Built with Alectryon, running Coq+SerAPI v8.10.0+0.7.0. Coq sources are in this panel; goals and messages will appear in the other. Bubbles () indicate interactive fragments: hover for details, tap to reveal contents. Use Ctrl+↑ Ctrl+↓ to navigate, Ctrl+🖱️ to focus.
(************************************************************************)
(* * The Coq Proof Assistant / The Coq Development Team *)
(* v * INRIA, CNRS and contributors - Copyright 1999-2018 *)
(* <O___,, * (see CREDITS file for the list of authors) *)
(* \VV/ **************************************************************)
(* // * This file is distributed under the terms of the *)
(* * GNU Lesser General Public License Version 2.1 *)
(* * (see LICENSE file for the text of the license) *)
(************************************************************************)
Morphism instances for relations.
Require Import Relation_Definitions. Require Import Coq.Classes.Morphisms. Require Import Coq.Program.Program. Generalizable Variables A l.
Morphisms for relations
forall A : Type, Proper (relation_equivalence ==> relation_equivalence ==> relation_equivalence) relation_conjunctionfirstorder. Qed.forall A : Type, Proper (relation_equivalence ==> relation_equivalence ==> relation_equivalence) relation_conjunctionforall A : Type, Proper (relation_equivalence ==> relation_equivalence ==> relation_equivalence) relation_disjunctionfirstorder. Qed. (* Predicate equivalence is exactly the same as the pointwise lifting of [iff]. *)forall A : Type, Proper (relation_equivalence ==> relation_equivalence ==> relation_equivalence) relation_disjunctionl:TlistProper (predicate_equivalence ==> pointwise_lifting iff l) idl:TlistProper (predicate_equivalence ==> pointwise_lifting iff l) idl:Tlistforall x y : predicate l, predicate_equivalence x y -> pointwise_lifting iff l (id x) (id y)auto. Qed.l:Tlistforall x y : predicate l, pointwise_lifting iff l x y -> pointwise_lifting iff l (id x) (id y)l:TlistProper (predicate_implication ==> pointwise_lifting impl l) idl:TlistProper (predicate_implication ==> pointwise_lifting impl l) idl:Tlistforall x y : predicate l, predicate_implication x y -> pointwise_lifting impl l (id x) (id y)auto. Qed.l:Tlistforall x y : predicate l, pointwise_lifting impl l x y -> pointwise_lifting impl l (id x) (id y)
The instantiation at relation allows rewriting applications of relations
R x y to R' x y when R and R' are in relation_equivalence.
forall A : Type, Proper (relation_equivalence ==> pointwise_relation A (pointwise_relation A iff)) idforall A : Type, Proper (relation_equivalence ==> pointwise_relation A (pointwise_relation A iff)) idapply (predicate_equivalence_pointwise (Tcons A (Tcons A Tnil))). Qed.A:TypeProper (relation_equivalence ==> pointwise_relation A (pointwise_relation A iff)) idforall A : Type, Proper (subrelation ==> pointwise_relation A (pointwise_relation A impl)) idforall A : Type, Proper (subrelation ==> pointwise_relation A (pointwise_relation A impl)) idapply (predicate_implication_pointwise (Tcons A (Tcons A Tnil))). Qed.A:TypeProper (subrelation ==> pointwise_relation A (pointwise_relation A impl)) idA:TypeR:relation Arelation_equivalence (pointwise_relation A (flip R)) (flip (pointwise_relation A R))A:TypeR:relation Arelation_equivalence (pointwise_relation A (flip R)) (flip (pointwise_relation A R))split; firstorder. Qed.A:TypeR:relation Arelation_equivalence (pointwise_relation A (flip R)) (flip (pointwise_relation A R))