Skip to content
Snippets Groups Projects
Commit b53816ac authored by David Swasey's avatar David Swasey Committed by Ralf Jung
Browse files

Rewrite both ways.

parent 1bd4afc4
No related branches found
No related tags found
No related merge requests found
......@@ -8,8 +8,15 @@ Class preoType T {eqT : Setoid T} :=
{pord : relation T;
preoPO :> PreOrder pord;
preoC : Proper (equiv ==> equiv ==> impl) pord}.
Instance preoType_compat T `{pT : preoType T} : Proper (equiv ==> equiv ==> impl) pord := preoC.
(** Rewriting under pord. *)
Instance preoType_compat T `{pT : preoType T} : Proper (equiv ==> equiv ==> iff) pord.
Proof.
split; first by exact: preoC.
symmetry in H, H0.
exact: preoC.
Qed.
Arguments pord {_ _ _} !_ !_.
Notation "'mkPOType' R" := (Build_preoType _ _ R _) (at level 10).
Notation "s ⊑ t" := (pord s t) (at level 70, no associativity) : predom_scope.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment