-
Notifications
You must be signed in to change notification settings - Fork 141
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'agda:master' into RationalOrder
- Loading branch information
Showing
37 changed files
with
2,951 additions
and
136 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
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
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
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,55 @@ | ||
{-# OPTIONS --safe --lossy-unification #-} | ||
module Cubical.Algebra.DistLattice.Properties where | ||
|
||
open import Cubical.Foundations.Prelude | ||
open import Cubical.Foundations.Function | ||
open import Cubical.Foundations.Equiv | ||
open import Cubical.Foundations.Equiv.HalfAdjoint | ||
open import Cubical.Foundations.HLevels | ||
open import Cubical.Foundations.Isomorphism | ||
open import Cubical.Foundations.Univalence | ||
open import Cubical.Foundations.Transport | ||
open import Cubical.Foundations.SIP | ||
|
||
open import Cubical.Data.Sigma | ||
|
||
open import Cubical.Structures.Axioms | ||
open import Cubical.Structures.Auto | ||
open import Cubical.Structures.Macro | ||
open import Cubical.Algebra.Semigroup | ||
open import Cubical.Algebra.Monoid | ||
open import Cubical.Algebra.CommMonoid | ||
open import Cubical.Algebra.Semilattice | ||
open import Cubical.Algebra.Lattice | ||
open import Cubical.Algebra.DistLattice.Base | ||
|
||
open import Cubical.Relation.Binary.Order.Poset | ||
|
||
private | ||
variable | ||
ℓ ℓ' ℓ'' : Level | ||
|
||
module _ where | ||
open LatticeHoms | ||
|
||
compDistLatticeHom : (L : DistLattice ℓ) (M : DistLattice ℓ') (N : DistLattice ℓ'') | ||
→ DistLatticeHom L M → DistLatticeHom M N → DistLatticeHom L N | ||
compDistLatticeHom L M N = compLatticeHom {L = DistLattice→Lattice L} {DistLattice→Lattice M} {DistLattice→Lattice N} | ||
|
||
_∘dl_ : {L : DistLattice ℓ} {M : DistLattice ℓ'} {N : DistLattice ℓ''} | ||
→ DistLatticeHom M N → DistLatticeHom L M → DistLatticeHom L N | ||
g ∘dl f = compDistLatticeHom _ _ _ f g | ||
|
||
compIdDistLatticeHom : {L M : DistLattice ℓ} (f : DistLatticeHom L M) | ||
→ compDistLatticeHom _ _ _ (idDistLatticeHom L) f ≡ f | ||
compIdDistLatticeHom = compIdLatticeHom | ||
|
||
idCompDistLatticeHom : {L M : DistLattice ℓ} (f : DistLatticeHom L M) | ||
→ compDistLatticeHom _ _ _ f (idDistLatticeHom M) ≡ f | ||
idCompDistLatticeHom = idCompLatticeHom | ||
|
||
compAssocDistLatticeHom : {L M N U : DistLattice ℓ} | ||
(f : DistLatticeHom L M) (g : DistLatticeHom M N) (h : DistLatticeHom N U) | ||
→ compDistLatticeHom _ _ _ (compDistLatticeHom _ _ _ f g) h | ||
≡ compDistLatticeHom _ _ _ f (compDistLatticeHom _ _ _ g h) | ||
compAssocDistLatticeHom = compAssocLatticeHom |
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
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
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
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,23 @@ | ||
{-# OPTIONS --safe #-} | ||
module Cubical.Categories.Instances.DistLattices where | ||
|
||
open import Cubical.Foundations.Prelude | ||
open import Cubical.Foundations.Function | ||
|
||
open import Cubical.Algebra.Lattice | ||
open import Cubical.Algebra.DistLattice | ||
|
||
open import Cubical.Categories.Category | ||
|
||
open Category | ||
|
||
|
||
DistLatticesCategory : ∀ {ℓ} → Category (ℓ-suc ℓ) ℓ | ||
ob DistLatticesCategory = DistLattice _ | ||
Hom[_,_] DistLatticesCategory = DistLatticeHom | ||
id DistLatticesCategory {L} = idDistLatticeHom L | ||
_⋆_ DistLatticesCategory {L} {M} {N} = compDistLatticeHom L M N | ||
⋆IdL DistLatticesCategory {L} {M} = compIdDistLatticeHom {L = L} {M} | ||
⋆IdR DistLatticesCategory {L} {M} = idCompDistLatticeHom {L = L} {M} | ||
⋆Assoc DistLatticesCategory {L} {M} {N} {O} = compAssocDistLatticeHom {L = L} {M} {N} {O} | ||
isSetHom DistLatticesCategory = isSetLatticeHom _ _ |
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,22 @@ | ||
{-# OPTIONS --safe #-} | ||
module Cubical.Categories.Instances.Lattices where | ||
|
||
open import Cubical.Foundations.Prelude | ||
open import Cubical.Foundations.Function | ||
|
||
open import Cubical.Algebra.Lattice | ||
|
||
open import Cubical.Categories.Category | ||
|
||
open Category | ||
open LatticeHoms | ||
|
||
LatticesCategory : ∀ {ℓ} → Category (ℓ-suc ℓ) ℓ | ||
ob LatticesCategory = Lattice _ | ||
Hom[_,_] LatticesCategory = LatticeHom | ||
id LatticesCategory {L} = idLatticeHom L | ||
_⋆_ LatticesCategory = compLatticeHom | ||
⋆IdL LatticesCategory = compIdLatticeHom | ||
⋆IdR LatticesCategory = idCompLatticeHom | ||
⋆Assoc LatticesCategory = compAssocLatticeHom | ||
isSetHom LatticesCategory = isSetLatticeHom _ _ |
Oops, something went wrong.