trait Logic[A] extends BoundedDistributiveLattice[A]

Logic models a logic generally. It is a bounded distributive lattice with an extra negation operator.

The negation operator obeys the weak De Morgan laws:

  • ¬(x∨y) = ¬x∧¬y
  • ¬(x∧y) = ¬¬(¬x∨¬y)

For intuitionistic logic see Heyting For fuzzy logic see DeMorgan

Self Type
Logic[A]
Source
Logic.scala
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Logic
  2. BoundedDistributiveLattice
  3. DistributiveLattice
  4. BoundedLattice
  5. BoundedJoinSemilattice
  6. BoundedMeetSemilattice
  7. Lattice
  8. MeetSemilattice
  9. JoinSemilattice
  10. Serializable
  11. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Abstract Value Members

  1. abstract def and(a: A, b: A): A
  2. abstract def getClass(): Class[_ <: AnyRef]
    Definition Classes
    Any
  3. abstract def join(lhs: A, rhs: A): A
    Definition Classes
    JoinSemilattice
  4. abstract def meet(lhs: A, rhs: A): A
    Definition Classes
    MeetSemilattice
  5. abstract def not(a: A): A
  6. abstract def one: A
    Definition Classes
    BoundedMeetSemilattice
  7. abstract def or(a: A, b: A): A
  8. abstract def zero: A
    Definition Classes
    BoundedJoinSemilattice

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    Any
  2. final def ##: Int
    Definition Classes
    Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def dual: BoundedDistributiveLattice[A]

    This is the lattice with meet and join swapped

    This is the lattice with meet and join swapped

    Definition Classes
    BoundedDistributiveLatticeBoundedLatticeLattice
  6. def equals(arg0: Any): Boolean
    Definition Classes
    Any
  7. def hashCode(): Int
    Definition Classes
    Any
  8. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  9. def isOne(a: A)(implicit ev: Eq[A]): Boolean
    Definition Classes
    BoundedMeetSemilattice
  10. def isZero(a: A)(implicit ev: Eq[A]): Boolean
    Definition Classes
    BoundedJoinSemilattice
  11. def joinPartialOrder(implicit ev: Eq[A]): PartialOrder[A]
    Definition Classes
    JoinSemilattice
  12. def joinSemilattice: BoundedSemilattice[A]
  13. def meetPartialOrder(implicit ev: Eq[A]): PartialOrder[A]
    Definition Classes
    MeetSemilattice
  14. def meetSemilattice: BoundedSemilattice[A]
  15. def nand(a: A, b: A): A
  16. def nor(a: A, b: A): A
  17. def nxor(a: A, b: A): A
  18. def toString(): String
    Definition Classes
    Any
  19. def xor(a: A, b: A): A

Inherited from BoundedDistributiveLattice[A]

Inherited from DistributiveLattice[A]

Inherited from BoundedLattice[A]

Inherited from BoundedJoinSemilattice[A]

Inherited from BoundedMeetSemilattice[A]

Inherited from Lattice[A]

Inherited from MeetSemilattice[A]

Inherited from JoinSemilattice[A]

Inherited from Serializable

Inherited from Any

Ungrouped