Class GodelLogic
java.lang.Object
org.episteme.core.mathematics.logic.multivalued.GodelLogic
Gödel infinite-valued logic (also called Gödel-Dummett logic).
In Gödel logic, truth values are real numbers in [0,1]. Operations are defined as: - Negation: ¬a = 1 if a = 0, else 0 - Implication: a → b = 1 if a ≤ b, else b - Conjunction: a ∧ b = min(a, b) - Disjunction: a ∨ b = max(a, b)
- Since:
- 1.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
-
Method Summary
Modifier and TypeMethodDescriptionLogical AND (Conjunction).booleanapproximatelyEqual(Double a, Double b) Checks if two values are equal within epsilon.Returns the truth value representing "False" (contradiction).static GodelLogicReturns the singleton instance.Logical Implication (a -> b).Logical NOT (Negation).Logical OR (Disjunction).toString()Returns the truth value representing "True" (tautology).Validates that a value is in [0,1].Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Logic
equivalent
-
Method Details
-
getInstance
-
trueValue
-
falseValue
Description copied from interface:LogicReturns the truth value representing "False" (contradiction).- Specified by:
falseValuein interfaceLogic<Double>- Returns:
- the false value
-
and
-
or
-
not
-
implies
-
validate
Validates that a value is in [0,1].- Parameters:
value- the value to validate- Returns:
- the validated value
- Throws:
IllegalArgumentException- if value is not in [0,1]
-
approximatelyEqual
-
toString
-