Package com.logic.api

Interface IFOLFormula

All Superinterfaces:
IFormula

public interface IFOLFormula extends IFormula
The IFOLFormula interface defines a first-order logic formula. This interface provides methods for iterating over different components of a first-order logic formula, such as functions, predicates, bounded variables, unbounded variables, and terms. It also includes methods for checking whether a variable belongs to a specific category and whether the formula is a sentence. Implementations of IFOLFormula represent logical expressions composed of:
  • Functions (e.g., f(x), g(a, b))
  • Predicates (e.g., P(x), Parent(x, y))
  • Bounded variables (variables within quantifier scopes, e.g., ∀x, ∃y)
  • Unbounded (free) variables
  • Terms (sub-expressions within a formula)
  • Sentences (formulas with no free variables)

This interface allows structured manipulation of logical formulas, supporting operations such as variable classification, expression iteration, and sentence validation.

Since:
08-03-2025
See Also: