Skip to content

Commit 4a415d5

Browse files
committed
update makePseudolatticeFromPoset and instances built using it
1 parent 0f6037e commit 4a415d5

File tree

3 files changed

+14
-14
lines changed

3 files changed

+14
-14
lines changed

Cubical/Relation/Binary/Order/Pseudolattice/Base.agda

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,11 @@ module _
6565
(P : Poset ℓ ℓ') (_∧_ _∨_ : ⟨ P ⟩ ⟨ P ⟩ ⟨ P ⟩) where
6666
open PosetStr (str P) renaming (_≤_ to infix 8 _≤_)
6767
module _
68-
(π₁ : {a b x} x ≤ a ∧ b x ≤ a)
69-
(π₂ : {a b x} x ≤ a ∧ b x ≤ b)
68+
(π₁ : {a b} a ∧ b ≤ a)
69+
(π₂ : {a b} a ∧ b ≤ b)
7070
: {a b x} x ≤ a x ≤ b x ≤ a ∧ b)
71-
(ι₁ : {a b x} a ∨ b ≤ x a ≤ x)
72-
(ι₂ : {a b x} a ∨ b ≤ x b ≤ x)
71+
(ι₁ : {a b} a ≤ a ∨ b)
72+
(ι₂ : {a b} b ≤ a ∨ b)
7373
: {a b x} a ≤ x b ≤ x a ∨ b ≤ x) where
7474

7575
makePseudolatticeFromPoset : Pseudolattice ℓ ℓ'
@@ -82,11 +82,11 @@ module _
8282
isPL .IsPseudolattice.isPseudolattice .fst a b .snd x = propBiimpl→Equiv
8383
(is-prop-valued _ _)
8484
(isProp× (is-prop-valued _ _) (is-prop-valued _ _))
85-
(λ x≤a∧b π₁ x≤a∧b , π₂ x≤a∧b)
85+
(λ x≤a∧b is-trans _ _ _ x≤a∧b π₁ , is-trans _ _ _ x≤a∧b π₂)
8686
(uncurry ϕ)
8787
isPL .IsPseudolattice.isPseudolattice .snd a b .fst = a ∨ b
8888
isPL .IsPseudolattice.isPseudolattice .snd a b .snd x = propBiimpl→Equiv
8989
(is-prop-valued _ _)
9090
(isProp× (is-prop-valued _ _) (is-prop-valued _ _))
91-
(λ a∨b≤x ι₁ a∨b≤x , ι₂ a∨b≤x)
91+
(λ a∨b≤x is-trans _ _ _ ι₁ a∨b≤x , is-trans _ _ _ ι₂ a∨b≤x)
9292
(uncurry ψ)

Cubical/Relation/Binary/Order/Pseudolattice/Instances/Int.agda

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ open PseudolatticeStr
1212

1313
ℤ≤Pseudolattice : Pseudolattice ℓ-zero ℓ-zero
1414
ℤ≤Pseudolattice = makePseudolatticeFromPoset ℤ≤Poset min max
15-
(λ x≤min isTrans≤ x≤min min≤)
16-
(λ {a b} x≤min isTrans≤ x≤min (subst (_≤ℤ b) (minComm b a) min≤))
15+
min
16+
(λ {a b} subst (_≤ℤ b) (minComm b a) min≤)
1717
(λ {a b} x≤a x≤b subst (_≤ℤ min a b) (minIdem _) (≤MonotoneMin x≤a x≤b))
18-
(λ max≤x isTrans≤ ≤max max≤x)
19-
(λ {a b} max≤x isTrans≤ (subst (b ≤ℤ_) (maxComm b a) ≤max) max≤x)
18+
max
19+
(λ {a b} subst (b ≤ℤ_) (maxComm b a) ≤max)
2020
(λ {a b} a≤x b≤x subst (max a b ≤ℤ_) (maxIdem _) (≤MonotoneMax a≤x b≤x))

Cubical/Relation/Binary/Order/Pseudolattice/Instances/Nat.agda

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ private
2929

3030
ℕ≤Pseudolattice : Pseudolattice ℓ-zero ℓ-zero
3131
ℕ≤Pseudolattice = makePseudolatticeFromPoset ℕ≤Poset min max
32-
(λ x≤min ≤-trans x≤min min-≤-left)
33-
(λ {a b} x≤min ≤-trans x≤min (min-≤-right {a} {b}))
32+
min-≤-left
33+
(λ {a b} min-≤-right {a} {b})
3434
minGLB
35-
(λ max≤x ≤-trans left-≤-max max≤x)
36-
(λ {a b} max≤x ≤-trans (right-≤-max {b} {a}) max≤x)
35+
left-≤-max
36+
(λ {a b} right-≤-max {b} {a})
3737
maxLUB

0 commit comments

Comments
 (0)