proposit-core
    Preparing search index...

    Interface TPremiseEvaluation

    Premise-level evaluation: single-assignment evaluation and evaluability validation.

    interface TPremiseEvaluation {
        evaluate(
            assignment: TCoreResolvedAssignment,
            options?: { requireExactCoverage?: boolean; strictUnknownKeys?: boolean },
        ): TCorePremiseEvaluationResult;
        validateEvaluability(): TCoreValidationResult;
    }

    Implemented by

    Index

    Methods

    • Evaluates the premise under an expression assignment.

      Variable values are looked up using the four-valued Belnap connectives (null = unknown, CONTESTED = forced both true and false). Missing variables default to null. For inference premises (implies/iff), an inferenceDiagnostic is always computed.

      The parameter is the wider TCoreResolvedAssignment because argument evaluation feeds its own constraint-closure output back through here; a reader's TCoreExpressionAssignment is assignable to it and stays three-valued.

      Operator decisions do not affect premise evaluation. A rejected expression evaluates from its children like any other — a rejection is a decision about a step, and its effect (striking the whole premise from the evaluated set) belongs to argument-level evaluation.

      Parameters

      • assignment: TCoreResolvedAssignment

        The variable assignment and the reader's operator decisions.

      • Optionaloptions: { requireExactCoverage?: boolean; strictUnknownKeys?: boolean }

        Optional evaluation options.

        • OptionalrequireExactCoverage?: boolean

          If true, the assignment must cover exactly the referenced variables.

        • OptionalstrictUnknownKeys?: boolean

          If true, unknown variable keys in the assignment cause an error.

      Returns TCorePremiseEvaluationResult

      The premise evaluation result.