UNPKG

chop-logic-core

Version:

Core classes, methods and functions for calculating logical formulas and constructing proofs within the Chop Logic project.

13 lines (12 loc) 478 B
import type { PropFormula } from "../../../models"; /** * Applies the rule of Implication Elimination. * * Given an implication (A => B) and its antecedent A, * it derives the consequent B. * * @param formulas An array of propositional formulas. * @returns {[PropFormula]} A tuple containing the inferred formula. * @throws {Error} if implication elimination is not applicable. */ export declare function implicationElimination(formulas: PropFormula[]): [PropFormula];