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) • 413 B
TypeScript
import type { PropFormula } from "../../../models";
/**
* Applies negation elimination rule:
* If ~(~A), then we can infer ~A.
*
* @param formulas An array of propositional formulas.
* @returns {[PropFormula]} A tuple containing the inferred formula.
* @throws {Error} if negation introduction rule is not applicable.
*/
export declare function negationElimination(formulas: PropFormula[]): [PropFormula];