BoundedLattice

trait BoundedLattice[@specialized(Int, Long, Float, Double) A] extends Lattice[A] with BoundedMeetSemilattice[A] with BoundedJoinSemilattice[A]

A bounded lattice is a lattice that additionally has one element that is the bottom (zero, also written as ⊥), and one element that is the top (one, also written as ⊤).

A bounded lattice is a lattice that additionally has one element that is the bottom (zero, also written as ⊥), and one element that is the top (one, also written as ⊤).

This means that for any a in A:

join(zero, a) = a = meet(one, a)

Or written using traditional notation:

(0 ∨ a) = a = (1 ∧ a)

Companion
object
trait Lattice[A]
trait Serializable
class Any

Value members

Concrete methods

override def dual: BoundedLattice[A]
Definition Classes

Inherited methods

def isOne(a: A)(ev: Eq[A]): Boolean
def isZero(a: A)(ev: Eq[A]): Boolean
def join(lhs: A, rhs: A): A
Inherited from
JoinSemilattice
def joinPartialOrder(ev: Eq[A]): PartialOrder[A]
Inherited from
JoinSemilattice
override def joinSemilattice: BoundedSemilattice[A]
def meet(lhs: A, rhs: A): A
Inherited from
MeetSemilattice
def meetPartialOrder(ev: Eq[A]): PartialOrder[A]
Inherited from
MeetSemilattice
override def meetSemilattice: BoundedSemilattice[A]
def one: A
def zero: A