Class ParaconsistentLogic
java.lang.Object
org.episteme.core.mathematics.logic.multivalued.ParaconsistentLogic
- All Implemented Interfaces:
Logic<ParaconsistentLogic.TruthValue>
Paraconsistent logic.
Paraconsistent logic tolerates contradictions without trivializing (principle of explosion does NOT hold). Uses 4 truth values: True, False, Both, Neither.
- Since:
- 1.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionLogical AND (Conjunction).Returns the truth value representing "False" (contradiction).static ParaconsistentLogicLogical Implication (a -> b).booleanChecks if a value represents a contradiction.booleanChecks if a value is undetermined.Logical NOT (Negation).Logical OR (Disjunction).toString()Returns the truth value representing "True" (tautology).Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Logic
equivalent
-
Method Details
-
getInstance
-
trueValue
Description copied from interface:LogicReturns the truth value representing "True" (tautology).- Specified by:
trueValuein interfaceLogic<ParaconsistentLogic.TruthValue>- Returns:
- the true value
-
falseValue
Description copied from interface:LogicReturns the truth value representing "False" (contradiction).- Specified by:
falseValuein interfaceLogic<ParaconsistentLogic.TruthValue>- Returns:
- the false value
-
and
public ParaconsistentLogic.TruthValue and(ParaconsistentLogic.TruthValue a, ParaconsistentLogic.TruthValue b) Description copied from interface:LogicLogical AND (Conjunction).- Specified by:
andin interfaceLogic<ParaconsistentLogic.TruthValue>- Parameters:
a- first operandb- second operand- Returns:
- a AND b
-
or
public ParaconsistentLogic.TruthValue or(ParaconsistentLogic.TruthValue a, ParaconsistentLogic.TruthValue b) Description copied from interface:LogicLogical OR (Disjunction).- Specified by:
orin interfaceLogic<ParaconsistentLogic.TruthValue>- Parameters:
a- first operandb- second operand- Returns:
- a OR b
-
not
Description copied from interface:LogicLogical NOT (Negation).- Specified by:
notin interfaceLogic<ParaconsistentLogic.TruthValue>- Parameters:
a- operand- Returns:
- NOT a
-
implies
public ParaconsistentLogic.TruthValue implies(ParaconsistentLogic.TruthValue a, ParaconsistentLogic.TruthValue b) Description copied from interface:LogicLogical Implication (a -> b).- Specified by:
impliesin interfaceLogic<ParaconsistentLogic.TruthValue>- Parameters:
a- antecedentb- consequent- Returns:
- a IMPLIES b
-
isContradiction
Checks if a value represents a contradiction.- Parameters:
value- the truth value- Returns:
- true if BOTH
-
isUndetermined
Checks if a value is undetermined.- Parameters:
value- the truth value- Returns:
- true if NEITHER
-
toString
-