Registers a propositional variable for use across all premises.
The variable entity to register.
The registered variable (with checksum) and changeset.
Registers a premise-bound propositional variable whose truth value is derived from another premise's evaluation.
The premise-bound variable entity to register.
The registered variable (with checksum) and changeset.
Idempotent lookup-or-create for a claim-bound variable. If a
claim-bound variable for claimId already exists in this argument,
it is returned as-is. Otherwise a new variable is created with a
fresh UUID, the current version of the claim from the ClaimLibrary,
and an auto-generated symbol.
This method is used internally by derivation premise initialization but is also available to callers that need to pin a claim as a propositional variable without creating a full premise.
The ID of the claim to bind a variable to.
The existing or newly created TClaimBoundVariable.
Returns the variable with the given ID, or undefined if not found.
The variable ID to look up.
The variable entity, or undefined.
Returns the variable with the given symbol, or undefined if not
found.
The symbol string to look up.
The variable entity, or undefined.
Returns all premise-bound variables whose boundPremiseId matches the
given premise ID. This is a linear scan over all variables.
The premise ID to filter by.
An array of variables bound to the given premise.
Returns true if a variable with the given ID exists.
The variable ID to check.
Whether the variable exists.
Removes a variable and cascade-deletes all expressions referencing it across every premise (including subtrees and operator collapse).
The ID of the variable to remove.
The removed variable, or undefined if not found.
Updates fields on an existing variable. Since all premises share the same VariableManager, the update is immediately visible everywhere.
The ID of the variable to update.
Fields to update. For claim-bound variables: symbol,
claimId, claimVersion. For premise-bound variables: symbol,
boundPremiseId, boundArgumentId, boundArgumentVersion.
claimId and claimVersion must be provided together on claim-bound variables.
The updated variable, or undefined if not found.
Variable CRUD and lookup across the argument.