class BoolFromBoolRing[A] extends GenBoolFromBoolRng[A] with Bool[A]
Every Boolean ring gives rise to a Boolean algebra:
- 0 and 1 are preserved;
- ring multiplication (
times
) corresponds toand
; - ring addition (
plus
) corresponds toxor
; a or b
is then defined asa xor b xor (a and b)
;- complement (
¬a
) is defined asa xor 1
.
- Source
- Bool.scala
- Alphabetic
- By Inheritance
- BoolFromBoolRing
- Bool
- Heyting
- BoundedDistributiveLattice
- BoundedLattice
- BoundedMeetSemilattice
- GenBoolFromBoolRng
- GenBool
- BoundedJoinSemilattice
- DistributiveLattice
- Lattice
- MeetSemilattice
- JoinSemilattice
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
and(a: A, b: A): A
- Definition Classes
- GenBoolFromBoolRng → GenBool
-
def
asBoolRing: BoolRing[A]
Every Boolean algebra is a BoolRing, with multiplication defined as
and
and addition defined asxor
.Every Boolean algebra is a BoolRing, with multiplication defined as
and
and addition defined asxor
. Bool does not extend BoolRing because, e.g. we might want a Bool[Int] and CommutativeRing[Int] to refer to different structures, by default.Note that the ring returned by this method is not an extension of the
Rig
returned fromBoundedDistributiveLattice.asCommutativeRig
.- Definition Classes
- BoolFromBoolRing → Bool → GenBoolFromBoolRng → GenBool
-
def
asCommutativeRig: CommutativeRig[A]
Return a CommutativeRig using join and meet.
Return a CommutativeRig using join and meet. Note this must obey the commutative rig laws since meet(a, one) = a, and meet and join are associative, commutative and distributive.
- Definition Classes
- BoundedDistributiveLattice
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
-
def
complement(a: A): A
- Definition Classes
- BoolFromBoolRing → Heyting
-
def
dual: Bool[A]
This is the lattice with meet and join swapped
This is the lattice with meet and join swapped
- Definition Classes
- Bool → BoundedDistributiveLattice → BoundedLattice → Lattice
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def imp(a: A, b: A): A
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
isOne(a: A)(implicit ev: Eq[A]): Boolean
- Definition Classes
- BoundedMeetSemilattice
-
def
isZero(a: A)(implicit ev: Eq[A]): Boolean
- Definition Classes
- BoundedJoinSemilattice
-
def
join(a: A, b: A): A
- Definition Classes
- BoolFromBoolRing → Heyting → GenBool → JoinSemilattice
-
def
joinPartialOrder(implicit ev: Eq[A]): PartialOrder[A]
- Definition Classes
- JoinSemilattice
-
def
joinSemilattice: BoundedSemilattice[A]
- Definition Classes
- BoundedJoinSemilattice → JoinSemilattice
-
def
meet(a: A, b: A): A
- Definition Classes
- BoolFromBoolRing → Heyting → GenBool → MeetSemilattice
-
def
meetPartialOrder(implicit ev: Eq[A]): PartialOrder[A]
- Definition Classes
- MeetSemilattice
-
def
meetSemilattice: BoundedSemilattice[A]
- Definition Classes
- BoundedMeetSemilattice → MeetSemilattice
-
def
nand(a: A, b: A): A
- Definition Classes
- Heyting
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
nor(a: A, b: A): A
- Definition Classes
- Heyting
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
nxor(a: A, b: A): A
- Definition Classes
- Heyting
-
def
one: A
- Definition Classes
- BoolFromBoolRing → BoundedMeetSemilattice
-
def
or(a: A, b: A): A
- Definition Classes
- GenBoolFromBoolRng → GenBool
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
without(a: A, b: A): A
The operation of relative complement, symbolically often denoted
a\b
(the symbol for set-theoretic difference, which is the meaning of relative complement in the lattice of sets).The operation of relative complement, symbolically often denoted
a\b
(the symbol for set-theoretic difference, which is the meaning of relative complement in the lattice of sets).- Definition Classes
- BoolFromBoolRing → Bool → GenBoolFromBoolRng → GenBool
-
def
xor(a: A, b: A): A
Logical exclusive or, set-theoretic symmetric difference.
-
def
zero: A
- Definition Classes
- GenBoolFromBoolRng → BoundedJoinSemilattice