Add bundles to 'AboveBelow'

Signed-off-by: Danila Fedorin <danila.fedorin@gmail.com>
This commit is contained in:
Danila Fedorin 2024-02-11 21:00:28 -08:00
parent 08f3f49640
commit 27f40bd42e

View File

@ -279,6 +279,14 @@ module Plain where
; absorb-⊓-⊔ = absorb-⊓-⊔ ; absorb-⊓-⊔ = absorb-⊓-⊔
} }
lattice : Lattice AboveBelow
lattice = record
{ _≈_ = _≈_
; _⊔_ = _⊔_
; _⊓_ = _⊓_
; isLattice = isLattice
}
open IsLattice isLattice using (_≼_; _≺_) open IsLattice isLattice using (_≼_; _≺_)
⊥≺[x] : (x : A) [ x ] ⊥≺[x] : (x : A) [ x ]
@ -329,3 +337,12 @@ module Plain where
{ isLattice = isLattice { isLattice = isLattice
; fixedHeight = ((( , ) , longestChain) , isLongest) ; fixedHeight = ((( , ) , longestChain) , isLongest)
} }
finiteHeightLattice : FiniteHeightLattice AboveBelow
finiteHeightLattice = record
{ height = 2
; _≈_ = _≈_
; _⊔_ = _⊔_
; _⊓_ = _⊓_
; isFiniteHeightLattice = isFiniteHeightLattice
}