11module Cubical.Relation.Binary.Order.Pseudolattice.Base where
22
33open import Cubical.Foundations.Prelude
4+ open import Cubical.Foundations.Function
5+ open import Cubical.Foundations.Equiv
6+ open import Cubical.Foundations.HLevels
47open import Cubical.Foundations.SIP
58
9+ open import Cubical.Reflection.RecordEquiv
10+
611open import Cubical.Relation.Binary.Base
7- open import Cubical.Relation.Binary.Order.Poset renaming (isPseudolattice to pseudolattice)
8- open import Cubical.Relation.Binary.Order.StrictOrder
12+ open import Cubical.Relation.Binary.Order.Poset renaming (
13+ isPseudolattice to pseudolattice ;
14+ isPropIsPseudolattice to is-prop-is-pseudolattice)
915
1016open BinaryRelation
1117
@@ -31,6 +37,9 @@ record IsPseudolattice {L : Type ℓ} (_≤_ : L → L → Type ℓ') : Type (
3137 infixl 7 _∧l_
3238 infixl 6 _∨l_
3339
40+
41+ unquoteDecl IsPseudolatticeIsoΣ = declareRecordIsoΣ IsPseudolatticeIsoΣ (quote IsPseudolattice)
42+
3443record PseudolatticeStr (ℓ' : Level) (L : Type ℓ) : Type (ℓ-suc (ℓ-max ℓ ℓ')) where
3544 constructor pseudolatticestr
3645
@@ -42,6 +51,9 @@ record PseudolatticeStr (ℓ' : Level) (L : Type ℓ) : Type (ℓ-suc (ℓ-max
4251
4352 open IsPseudolattice is-pseudolattice public
4453
54+
55+ unquoteDecl PseudolatticeStrIsoΣ = declareRecordIsoΣ PseudolatticeStrIsoΣ (quote PseudolatticeStr)
56+
4557Pseudolattice : ∀ ℓ ℓ' → Type (ℓ-suc (ℓ-max ℓ ℓ'))
4658Pseudolattice ℓ ℓ' = TypeWithStr ℓ (PseudolatticeStr ℓ')
4759
@@ -59,3 +71,9 @@ makeIsPseudolattice {_≤_ = _≤_} is-setL is-prop-valued is-refl is-trans is-a
5971 PS : IsPseudolattice _≤_
6072 PS .IsPseudolattice.isPoset = isposet is-setL is-prop-valued is-refl is-trans is-antisym
6173 PS .IsPseudolattice.isPseudolattice = is-meet-semipseudolattice , is-join-semipseudolattice
74+
75+ isPropIsPseudolattice : {L : Type ℓ} (_≤_ : L → L → Type ℓ') → isProp (IsPseudolattice _≤_)
76+ isPropIsPseudolattice {L = L} _≤_ = isOfHLevelRetractFromIso 1
77+ IsPseudolatticeIsoΣ $ isPropΣ
78+ (isPropIsPoset _≤_) λ isPoset →
79+ is-prop-is-pseudolattice (poset L _≤_ isPoset)
0 commit comments