Tweak the style of the Semilattice instance

This commit is contained in:
Danila Fedorin 2023-07-30 21:50:28 -07:00
parent 1b7a3f02eb
commit 77e2572157

View File

@ -223,6 +223,10 @@ module IsSemilatticeInstances where
(sB : IsSemilattice B _≈₂_ _⊔₂_) where
open import Map A B ≡-dec-A
open IsSemilattice sB renaming
( ≈-refl to ≈₂-refl; ≈-sym to ≈₂-sym
; ⊔-assoc to ⊔₂-assoc; ⊔-comm to ⊔₂-comm; ⊔-idemp to ⊔₂-idemp
)
private
infix 4 _≈_
@ -239,9 +243,9 @@ module IsSemilatticeInstances where
MapIsUnionSemilattice : IsSemilattice Map _≈_ _⊔_
MapIsUnionSemilattice = record
{ ≈-equiv = MapEquiv.LiftEquivalence
; ⊔-assoc = union-assoc _≈₂_ (IsSemilattice.≈-refl sB) (IsSemilattice.≈-sym sB) _⊔₂_ (IsSemilattice.⊔-assoc sB)
; ⊔-comm = union-comm _≈₂_ (IsSemilattice.≈-refl sB) (IsSemilattice.≈-sym sB) _⊔₂_ (IsSemilattice.⊔-comm sB)
; ⊔-idemp = union-idemp _≈₂_ (IsSemilattice.≈-refl sB) (IsSemilattice.≈-sym sB) _⊔₂_ (IsSemilattice.⊔-idemp sB)
; ⊔-assoc = union-assoc _≈₂_ -refl -sym _⊔₂_ -assoc
; ⊔-comm = union-comm _≈₂_ -refl -sym _⊔₂_ -comm
; ⊔-idemp = union-idemp _≈₂_ -refl -sym _⊔₂_ -idemp
}
module IsLatticeInstances where