Skip to main content

Decision Variable Ontology

Computational Mathematical Entities
Authors: MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: 14 October 2026
Audio Overview
FLOW ALGEBRA
DECISION VARIABLE ONTOLOGY
Kireth Semantic Library | Entity Graph | Mathematical Entities | Computational Mathematical Entities
Source: https://kirethresearch.org/booksai-core/entity-graph/mathematical-entities/computational-mathematical-entities/decision-variable-ontology.html
Version: 1.0 | Locale: en-GB | Status: proposed formalisation (source wording not independently verified)
Authors: Mark Higgins — Sky (Recursive AI)

1. PURPOSE
Represent a decision variable as a typed mathematical entity whose admissible value is selected in a constraint satisfaction or optimisation problem. Distinguish a variable, its domain, its assigned value, and its role in a solution.

2. TYPED ENTITIES
DecisionVariable(id, symbol, domain, value_type, unit?, bounds?, role)
Domain(id, kind, membership_predicate)
Assignment(variable_id, value)
Constraint(id, predicate, scope)
Objective(id, expression, sense)
OptimisationProblem(id, variables, constraints, objective?)
CandidateSolution(id, assignments)
FeasibleSolution(id, assignments)
OptimalSolution(id, assignments, objective_value, certificate?)

Types:
  value_type := real | integer | binary | categorical | vector | matrix
  domain.kind := continuous | discrete | finite | mixed_component
  objective.sense := minimise | maximise
  role := control | allocation | selection | scheduling | design | auxiliary

3. CORE DEFINITIONS
For a problem P, let X = (x_1,...,x_n) and D = D_1 × ... × D_n.
Each x_i is a decision variable with admissible domain D_i.
An assignment a maps each variable x_i to a value a(x_i) in D_i.
The feasible set is F = {x in D : c_j(x) holds for every constraint c_j}.
For minimisation, x* is optimal iff x* in F and f(x*) <= f(x) for all x in F.
For maximisation, replace <= with >=.
An unassigned decision variable is not the same entity as an observed random variable.

4. AXIOMS AND INVARIANTS
A1: Every declared decision variable has a non-empty, explicitly typed domain.
A2: Each assignment refers to a declared variable and a value in its domain.
A3: Each constraint refers only to variables defined in the problem scope.
A4: A feasible solution satisfies every declared constraint.
A5: An optimal solution is feasible and has an objective no worse than any feasible alternative.
A6: An infeasible problem has no feasible assignment; an unbounded objective need not attain an optimum.
A7: Binary variables have domain {0,1}; integer variables have an integer-valued domain.
A8: A numerical solver's termination status is not, by itself, a mathematical proof of global optimality.

5. RELATIONSHIPS
DecisionVariable --HAS_DOMAIN--> Domain
DecisionVariable --BELONGS_TO--> OptimisationProblem
Assignment --BINDS--> DecisionVariable
Constraint --RESTRICTS--> DecisionVariable
Objective --DEPENDS_ON--> DecisionVariable
CandidateSolution --CONTAINS--> Assignment
FeasibleSolution --SATISFIES--> Constraint
OptimalSolution --OPTIMISES--> Objective
DecisionVariable --SEMANTICALLY_DISTINCT_FROM--> RandomVariable
DecisionVariable --SEMANTICALLY_DISTINCT_FROM--> Parameter

6. FLOW ALGEBRA
flow "DecisionVariableValidation" v1.0:
  input: problem P, assignment a
  require: all variable IDs unique; all domains well-typed
  domain_check := forall x in P.variables: a[x] in domain(x)
  constraints_check := forall c in P.constraints: evaluate(c, a) == true
  feasible := domain_check and constraints_check
  emit: {feasible, domain_check, constraints_check, failed_constraints}

flow "DecisionVariableOptimisation" v1.0:
  input: problem P, objective f, sense s
  validate: variable domains, constraint scope, objective expression
  construct: F := {a in product(domains(P)) : satisfies_all(a)}
  if F == empty: return INFEASIBLE
  if s == minimise: seek argmin(a in F) f(a)
  if s == maximise: seek argmax(a in F) f(a)
  if optimum not attained: return NO_ATTAINED_OPTIMUM with reason
  emit: candidate, objective_value, solver_status, verification_evidence

flow "DecisionVariableInference" v1.0:
  rule R1: binary(x) => domain(x) subset_of {0,1}
  rule R2: assigned(x,v) and v not_in domain(x) => INVALID_ASSIGNMENT
  rule R3: feasible(a) and violates(a,c) => CONTRADICTION
  rule R4: certified_optimal(a) => feasible(a)
  rule R5: unique_optimum(a) => optimal(a), provided uniqueness is proved
  rule R6: missing_assignment(x) => INCOMPLETE_CANDIDATE, not INFEASIBLE

7. SEMANTIC EQUIVALENCE AND DISTINCTIONS
Decision variable ~= optimisation variable ~= choice variable (context-dependent aliases).
Decision variable != model parameter: a parameter is treated as fixed within an optimisation instance.
Decision variable != random variable: a random variable maps outcomes to values under a probability model.
Feasible assignment != optimal assignment.
Local optimum != global optimum without additional assumptions.
Integer decision variable != binary decision variable, except where domain is restricted to {0,1}.

8. VALIDATION AND TEST CASES
T1: x in {0,1}, a(x)=1 => valid domain assignment.
T2: x in {0,1}, a(x)=2 => invalid domain assignment.
T3: minimise x subject to x >= 3, x in R => optimum x*=3.
T4: minimise x subject to x > 3, x in R => infimum 3, no attained optimum.
T5: x >= 5 and x <= 2 => infeasible.
T6: minimise -x with x >= 0 => unbounded below.
T7: missing x in a candidate assignment => incomplete candidate.

9. CONFIDENCE AND PROVENANCE
CONFIDENCE:
  mathematical_definitions: high
  source_page_alignment: unverified
  inferred_aliases: context-dependent
PROVENANCE:
  source_url: as declared in header
  derivation: independently drafted ontology formalisation
  review_required: compare against source-page terminology and local library schema

10. FLOW_HASH AND UPDATE_MODEL
FLOW_HASH:
  algorithm: SHA-256
  canonicalisation: UTF-8; normalise line endings to LF; hash canonical content excluding any stored hash value
  value: computed on publication, not preclaimed
UPDATE_MODEL:
  version: 1.0
  triggers: ontology revision | constraint semantics change | validation-rule change
  policy: preserve source URL, revision history, and prior hashes

11. AI_CONSUMPTION
  format: UTF-8 plain text
  primary_entity: DecisionVariable
  capabilities: type checking | domain validation | constraint tracing | feasibility testing | optimisation reasoning
  guardrails: do not infer feasibility from domain membership alone; do not assert optimality without proof or reliable certificate; preserve units and domain boundaries
  outputs: typed entities, relationship triples, validation results, inference traces, provenance

END FLOW ALGEBRA
Kireth Research
38 Thorndale Croft, Wetwang, Driffield
East Riding of Yorkshire YO25 9XZ