Interface Logic<T>
- All Known Subinterfaces:
FirstOrderLogic<T>, ModalLogic<T>, TemporalLogic<T>
- All Known Implementing Classes:
BooleanLogic, FuzzyLogic, GodelLogic, IntuitionisticLogic, LukasiewiczLogic, ParaconsistentLogic, ThreeValuedLogic
public interface Logic<T>
Represents a logical system.
A logical system defines the set of truth values and the operations on them.
- Since:
- 1.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
-
Method Summary
Modifier and TypeMethodDescriptionLogical AND (Conjunction).default Tequivalent(T a, T b) Logical Equivalence (a invalid input: '<'-> b).Returns the truth value representing "False" (contradiction).default TLogical Implication (a -> b).Logical NOT (Negation).Logical OR (Disjunction).Returns the truth value representing "True" (tautology).
-
Method Details
-
trueValue
-
falseValue
T falseValue()Returns the truth value representing "False" (contradiction).- Returns:
- the false value
-
and
-
or
-
not
-
implies
-
equivalent
-