Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

De-symmetrising Relation.Binary.Bundles.Preorder._∼_ #2099

Merged
merged 18 commits into from
Oct 4, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
little acorns
jamesmckinna committed Sep 16, 2023

Verified

This commit was signed with the committer’s verified signature.
snyk-bot Snyk bot
commit 75d0c9b4d1ddb8beba69ac1378e14256bc745281
10 changes: 7 additions & 3 deletions src/Relation/Binary/Properties/Preorder.agda
Original file line number Diff line number Diff line change
@@ -18,10 +18,14 @@ import Relation.Binary.Construct.Flip.EqAndOrd as EqAndOrd

open Preorder P

private
infix 4 _∼ᵒ_
_∼ᵒ_ = flip _∼_

------------------------------------------------------------------------
-- The inverse relation is also a preorder.
-- The converse relation is also a preorder.

converse-isPreorder : IsPreorder _≈_ (flip _∼_)
converse-isPreorder : IsPreorder _≈_ _∼ᵒ_
converse-isPreorder = EqAndOrd.isPreorder isPreorder

converse-preorder : Preorder p₁ p₂ p₃
@@ -32,7 +36,7 @@ converse-preorder = EqAndOrd.preorder P

InducedEquivalence : Setoid _ _
InducedEquivalence = record
{ _≈_ = λ x y x ∼ y × y ∼ x
{ _≈_ = λ x y x ∼ y × x ∼ᵒ y
; isEquivalence = record
{ refl = (refl , refl)
; sym = swap