package logic
Ordering
- Alphabetic
Visibility
- Public
- All
Type Members
-
final
case class
Atom
(label: String) extends Literal with Product with Serializable
A variable with name
label. -
final
case class
Clause
(body: Formula, head: Set[Atom]) extends Product with Serializable
When the
bodyFormula succeeds, atoms inheadare true. -
final
case class
Clauses
(clauses: List[Clause]) extends Product with Serializable
Disjunction (or) of the list of clauses.
-
sealed abstract
class
Formula
extends AnyRef
A formula consists of variables, negation, and conjunction (and).
A formula consists of variables, negation, and conjunction (and). (Disjunction is not currently included- it is modeled at the level of a sequence of clauses. This is less convenient when defining clauses, but is not less powerful.)
-
sealed abstract
class
Literal
extends Formula
A literal is an Atom or its negation|Negated.
-
final
case class
Negated
(atom: Atom) extends Literal with Product with Serializable
A negated atom, in the sense of negation as failure, not logical negation.
A negated atom, in the sense of negation as failure, not logical negation. That is, it is true if
atomis not known/defined.