Skip to content

Commit 0f6037e

Browse files
committed
fix typo, add better make from Posets to Pseudolattices
1 parent 89246b9 commit 0f6037e

File tree

2 files changed

+34
-1
lines changed

2 files changed

+34
-1
lines changed

Cubical/Algebra/OrderedCommRing/Base.agda

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module Cubical.Algebra.OrderedCommRing.Base where
22
{-
3-
Definition of an commutative ordered ring.
3+
Definition of an ordered commutative ring.
44
-}
55

66
open import Cubical.Foundations.Prelude

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

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
module Cubical.Relation.Binary.Order.Pseudolattice.Base where
22

33
open import Cubical.Foundations.Prelude
4+
open import Cubical.Foundations.Function
5+
open import Cubical.Foundations.Equiv
6+
open import Cubical.Foundations.HLevels
47
open import Cubical.Foundations.SIP
58

69
open import Cubical.Relation.Binary.Base
@@ -57,3 +60,33 @@ makeIsPseudolattice {_≤_ = _≤_} is-setL is-prop-valued is-refl is-trans is-a
5760
PS : IsPseudolattice _≤_
5861
PS .IsPseudolattice.isPoset = isposet is-setL is-prop-valued is-refl is-trans is-antisym
5962
PS .IsPseudolattice.isPseudolattice = is-meet-semipseudolattice , is-join-semipseudolattice
63+
64+
module _
65+
(P : Poset ℓ ℓ') (_∧_ _∨_ : ⟨ P ⟩ ⟨ P ⟩ ⟨ P ⟩) where
66+
open PosetStr (str P) renaming (_≤_ to infix 8 _≤_)
67+
module _
68+
(π₁ : {a b x} x ≤ a ∧ b x ≤ a)
69+
(π₂ : {a b x} x ≤ a ∧ b x ≤ b)
70+
: {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)
73+
: {a b x} a ≤ x b ≤ x a ∨ b ≤ x) where
74+
75+
makePseudolatticeFromPoset : Pseudolattice ℓ ℓ'
76+
makePseudolatticeFromPoset .fst = ⟨ P ⟩
77+
makePseudolatticeFromPoset .snd .PseudolatticeStr._≤_ = (str P) .PosetStr._≤_
78+
makePseudolatticeFromPoset .snd .PseudolatticeStr.is-pseudolattice = isPL where
79+
isPL : IsPseudolattice _≤_
80+
isPL .IsPseudolattice.isPoset = isPoset
81+
isPL .IsPseudolattice.isPseudolattice .fst a b .fst = a ∧ b
82+
isPL .IsPseudolattice.isPseudolattice .fst a b .snd x = propBiimpl→Equiv
83+
(is-prop-valued _ _)
84+
(isProp× (is-prop-valued _ _) (is-prop-valued _ _))
85+
(λ x≤a∧b π₁ x≤a∧b , π₂ x≤a∧b)
86+
(uncurry ϕ)
87+
isPL .IsPseudolattice.isPseudolattice .snd a b .fst = a ∨ b
88+
isPL .IsPseudolattice.isPseudolattice .snd a b .snd x = propBiimpl→Equiv
89+
(is-prop-valued _ _)
90+
(isProp× (is-prop-valued _ _) (is-prop-valued _ _))
91+
(λ a∨b≤x ι₁ a∨b≤x , ι₂ a∨b≤x)
92+
(uncurry ψ)

0 commit comments

Comments
 (0)