proposit-core
    Preparing search index...

    Interface TArgumentRoleState<TArg, TPremise, TExpr, TVar>

    Conclusion and supporting premise role management.

    interface TArgumentRoleState<
        TArg extends TCoreArgument = TCoreArgument,
        TPremise extends TCorePremise = TCorePremise,
        TExpr extends TCorePropositionalExpression = TCorePropositionalExpression,
        TVar extends TCorePropositionalVariable = TCorePropositionalVariable,
    > {
        clearConclusionPremise(): TCoreMutationResult<
            { conclusionPremiseId?: string },
            TExpr,
            TVar,
            TPremise,
            TArg,
        >;
        getConclusionPremise(): | PremiseEngine<TArg, TPremise, TExpr, TVar>
        | undefined;
        getRoleState(): { conclusionPremiseId?: string };
        listSupportingPremises(): PremiseEngine<TArg, TPremise, TExpr, TVar>[];
        setConclusionPremise(
            premiseId: string,
        ): TCoreMutationResult<
            { conclusionPremiseId?: string },
            TExpr,
            TVar,
            TPremise,
            TArg,
        >;
    }

    Type Parameters

    Implemented by

    Index

    Methods

    • Clears the conclusion designation.

      Invariant guard (1.0.2): A non-empty argument always has a conclusion designated (E-7). On an argument with one or more premises this method is a no-op — it returns the current (unchanged) role state with an empty changeset rather than leaving the engine in an E-7-violating state. The only path to legitimately end up with no conclusion designated is to remove every premise first. On a zero-premise argument the call still clears (vacuously satisfies the invariant).

      Returns TCoreMutationResult<
          { conclusionPremiseId?: string },
          TExpr,
          TVar,
          TPremise,
          TArg,
      >

      The current role state and changeset. If premises exist, the changeset is empty (no-op); if zero premises, the role state is cleared and the changeset reflects the role change.