Class EqualityRule

java.lang.Object
org.episteme.core.mathematics.logic.proof.EqualityRule
All Implemented Interfaces:
InferenceRule

public class EqualityRule extends Object implements InferenceRule
A simple inference rule for equality substitution. If a = b and P(a), then P(b).
Since:
1.0
Author:
Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
  • Constructor Details

    • EqualityRule

      public EqualityRule()
  • Method Details

    • isValid

      public boolean isValid(List<Formula> premises, Formula conclusion)
      Description copied from interface: InferenceRule
      Checks if the conclusion can be validly inferred from the premises using this rule.
      Specified by:
      isValid in interface InferenceRule
      Parameters:
      premises - the list of premise formulas
      conclusion - the asserted conclusion
      Returns:
      true if the inference is valid