UNPKG

chop-logic-core

Version:

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

12 lines (11 loc) 527 B
import type { PropFormula } from "../../../models"; /** * Applies the disjunction introduction rule. * * Given two formulas A and B, it returns two disjunctions: (A ∨ B) and (B ∨ A) * * @param formulas An array of propositional formulas. * @returns {[PropFormula, PropFormula]} A tuple containing the two inferred formulas. * @throws {Error} if the formulas do not satisfy disjunction introduction conditions. */ export declare function disjunctionIntroduction(formulas: PropFormula[]): [PropFormula, PropFormula];