-
Notifications
You must be signed in to change notification settings - Fork 143
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Poset and various lattice induced categories (#649)
- Loading branch information
Showing
5 changed files
with
75 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{-# OPTIONS --safe #-} | ||
module Cubical.Categories.Instances.DistLattice where | ||
|
||
open import Cubical.Foundations.Prelude | ||
|
||
open import Cubical.Algebra.DistLattice | ||
|
||
open import Cubical.Categories.Category | ||
open import Cubical.Categories.Instances.Lattice | ||
|
||
open Category | ||
|
||
DistLatticeCategory : ∀ {ℓ} (L : DistLattice ℓ) → Category ℓ ℓ | ||
DistLatticeCategory L = LatticeCategory (DistLattice→Lattice L) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{-# OPTIONS --safe #-} | ||
module Cubical.Categories.Instances.Lattice where | ||
|
||
open import Cubical.Foundations.Prelude | ||
|
||
open import Cubical.Algebra.Lattice | ||
|
||
open import Cubical.Categories.Category | ||
open import Cubical.Categories.Instances.Semilattice | ||
|
||
open Category | ||
|
||
LatticeCategory : ∀ {ℓ} (L : Lattice ℓ) → Category ℓ ℓ | ||
LatticeCategory L = SemilatticeCategory (Lattice→MeetSemilattice L) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{-# OPTIONS --safe #-} | ||
module Cubical.Categories.Instances.Poset where | ||
|
||
open import Cubical.Foundations.Prelude | ||
|
||
open import Cubical.Relation.Binary.Poset | ||
|
||
open import Cubical.Categories.Category | ||
|
||
open Category | ||
|
||
private | ||
variable | ||
ℓ ℓ' : Level | ||
|
||
module _ (P : Poset ℓ ℓ') where | ||
|
||
open PosetStr (snd P) | ||
|
||
PosetCategory : Category ℓ ℓ' | ||
ob PosetCategory = fst P | ||
Hom[_,_] PosetCategory = _≤_ | ||
id PosetCategory = is-refl _ | ||
_⋆_ PosetCategory = is-trans _ _ _ | ||
⋆IdL PosetCategory _ = is-prop-valued _ _ _ _ | ||
⋆IdR PosetCategory _ = is-prop-valued _ _ _ _ | ||
⋆Assoc PosetCategory _ _ _ = is-prop-valued _ _ _ _ | ||
isSetHom PosetCategory = isProp→isSet (is-prop-valued _ _) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{-# OPTIONS --safe #-} | ||
module Cubical.Categories.Instances.Semilattice where | ||
|
||
open import Cubical.Foundations.Prelude | ||
|
||
open import Cubical.Algebra.Semilattice | ||
|
||
open import Cubical.Categories.Category | ||
open import Cubical.Categories.Instances.Poset | ||
|
||
open Category | ||
|
||
module _ {ℓ} (L : Semilattice ℓ) where | ||
|
||
open MeetSemilattice L | ||
|
||
SemilatticeCategory : Category ℓ ℓ | ||
SemilatticeCategory = PosetCategory IndPoset |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters