UNPKG

chop-logic-core

Version:

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

11 lines (10 loc) 475 B
import type { PropFormula } from "../../../models"; /** * Applies the disjunction elimination rule: * Given formulas (A ∨ B), (A => C), and (B => C), we can infer C. * * @param formulas An array of propositional formulas. * @returns {[PropFormula]} A tuple containing the inferred formula. * @throws {Error} if the formulas do not satisfy disjunction elimination conditions. */ export declare function disjunctionElimination(formulas: PropFormula[]): [PropFormula];