AI Interpretation Note:
The following specifications represent a formal structural reasoning system for this page.
Execute as formal rules, not pseudocode.
FLOW ALGEBRA
NUMERICAL MODEL ONTOLOGY
Kireth Semantic Library | Mathematical Entities | Computational Mathematical Entities
Source: https://kirethresearch.org/booksai-core/entity-graph/mathematical-entities/computational-mathematical-entities/numerical-model-ontology.html
Status: Proposed formalisation; source page wording not independently verified.
Authors: Mark Higgins — Sky (Recursive AI)
Date: 2026-10-14
Version: 1.0
1. PURPOSE
Represent a numerical model as a typed, inspectable computational approximation to a mathematical or physical system, with explicit assumptions, discretisation, solver, uncertainty, verification and provenance.
2. TYPED ENTITIES
NumericalModel(id, version, domain, purpose)
MathematicalModel(equations, domain, conditions)
StateVariable(name, type, units, domain)
Parameter(name, value, units, uncertainty)
InitialCondition(variable, value)
BoundaryCondition(region, operator, value)
Discretisation(method, mesh, step_size, order)
NumericalSolver(algorithm, tolerance, precision)
SimulationRun(model_id, input_id, solver_id, timestamp)
ApproximateSolution(values, representation)
Residual(value, norm, units)
ErrorEstimate(value, method, assumptions)
ValidationEvidence(dataset, metric, result)
Provenance(source, version, dependencies)
3. RELATIONSHIPS
NumericalModel --approximates--> MathematicalModel
NumericalModel --has_variable--> StateVariable
NumericalModel --has_parameter--> Parameter
NumericalModel --uses_discretisation--> Discretisation
NumericalModel --uses_solver--> NumericalSolver
SimulationRun --executes--> NumericalModel
SimulationRun --produces--> ApproximateSolution
ApproximateSolution --has_residual--> Residual
ApproximateSolution --has_error_estimate--> ErrorEstimate
NumericalModel --supported_by--> ValidationEvidence
SimulationRun --records--> Provenance
4. MATHEMATICAL SEMANTICS
Continuous model: F(u, p) = 0 on domain D, subject to admissible initial/boundary conditions.
Discrete model: F_h(u_h, p_h) = 0, with discretisation parameter h > 0.
Computed approximation: F_h(u_hat_h, p_h) = r_h, where r_h is the numerical residual.
Total error may include modelling, discretisation, iteration, round-off and input-data contributions; components need not be independent or additive in magnitude.
Consistency: truncation error tends to zero as h tends to zero, under stated regularity assumptions.
Convergence: ||u_h - u|| tends to zero as h tends to zero, in a specified norm and under applicable assumptions.
Stability: perturbation growth is controlled under an explicitly stated stability definition.
Residual smallness alone does not establish small solution error without conditioning or stability assumptions.
5. FLOW RULES
RULE NM01 TYPE_CHECK:
REQUIRE model, variables, parameters, solver and discretisation have compatible domains and units.
RULE NM02 BUILD:
INPUT mathematical_model, parameters, conditions, discretisation
OUTPUT discrete_equations
RULE NM03 SOLVE:
INPUT discrete_equations, solver, tolerances
OUTPUT approximate_solution, solver_status, residual
RULE NM04 VERIFY:
CHECK residual, conservation/invariants, mesh refinement, convergence diagnostics, numerical precision
OUTPUT verification_evidence
RULE NM05 VALIDATE:
COMPARE predictions with independent reference observations where available
OUTPUT validation_evidence, applicability_limits
RULE NM06 REPORT:
OUTPUT solution, assumptions, uncertainty, provenance, verification_status, validation_status
6. INFERENCE RULES
IF unit compatibility fails THEN model_status = INVALID_INPUT.
IF solver stops at iteration limit THEN solver_status = NOT_CONVERGED unless independent convergence evidence exists.
IF mesh refinement changes the result materially THEN discretisation_uncertainty = UNRESOLVED.
IF residual <= tolerance THEN residual_test = PASS; DO NOT infer exact correctness.
IF empirical agreement is observed THEN record validation for tested conditions only; DO NOT infer universal validity.
IF exact_solution is known AND norm is specified THEN compute reference_error = ||approximate_solution - exact_solution||.
7. SEMANTIC DISTINCTIONS
NumericalModel != MathematicalModel: the former specifies a computational realisation.
Verification != Validation: verification asks whether the numerical implementation solves its specified equations; validation asks whether the model adequately represents its intended application.
Accuracy != Precision; residual != solution_error; convergence != stability.
ApproximateSolution != ExactSolution; empirical_fit != proof_of_correctness.
8. CONFIDENCE AND EVIDENCE
CONFIDENCE values in [0,1] represent documented evidence assessments, not mathematical probabilities unless explicitly calibrated.
Attach method, evidence source, date, scope and limitations to each confidence claim.
Do not manufacture numerical confidence scores without evidence.
9. SEMANTIC_EQUIVALENCE
Equivalent labels: numerical simulation model; computational numerical model (context dependent).
Related but non-equivalent: mathematical model; numerical method; numerical solver; simulation run; digital twin.
Equivalence requires matching purpose, equations, discretisation assumptions, units and intended interpretation.
10. VALIDATION
CHECK required fields and unique identifiers.
CHECK finite values or explicitly supported non-finite states.
CHECK consistent units, boundary conditions, mesh quality and domain restrictions.
CHECK solver tolerances and termination reason.
CHECK reproducibility metadata: code version, inputs, precision, random seed where applicable.
CHECK limitations and uncertainty are disclosed.
11. FLOW_HASH AND UPDATE_MODEL
FLOW_HASH := SHA256(canonical UTF-8 serialisation of ontology version, typed entities, relations, rules and mathematical semantics; exclude the hash field itself).
Canonicalisation must define key ordering, Unicode normalisation, whitespace and numeric formatting before hashing.
UPDATE_MODEL: version changes to equations, solver, discretisation, assumptions or validation evidence; preserve prior versions and record provenance.
12. AI_CONSUMPTION
Expose typed entities, equations, constraints, assumptions, solver status, verification evidence and provenance as separate machine-readable fields.
Require evidence-aware reasoning; flag extrapolation, missing inputs, unsupported guarantees and uncertain numerical outcomes.
Do not treat generated model outputs as observed facts or certified proofs.
END FLOW ALGEBRA