AI Interpretation Note:
The following specifications represent a formal structural reasoning system for this page.
Execute as formal rules, not pseudocode.
FLOW ALGEBRA
CONSTANT ONTOLOGY
Kireth Semantic Library | Mathematical Entities | Symbolic Entities
Source: https://kirethresearch.org/booksai-core/entity-graph/mathematical-entities/symbolic-entities/constant-ontology.html
Authors: Mark Higgins — Sky (Recursive AI)
Version: 1.0 | Date: 2026-10-13
Status: Domain-grounded draft; source page not independently verified.
01. PURPOSE
flow "ConstantOntology" v1.0
domain: mathematics.symbolic_entities
entity: Constant
intent: represent invariant values and contextually fixed symbols with explicit type, scope, interpretation and provenance
invariant: a constant's denotation does not vary over the declared evaluation context
02. CORE TYPES
type Constant = {id: URI, symbol: String, domain: Type, value: ValueOrExpression,
scope: Scope, context: Context, exactness: Exactness,
definition: Proposition?, provenance: Source?, confidence: [0,1]}
type Scope = Global | Theory | Model | Expression | Function | Experiment | Local
type Exactness = Exact | DefinedSymbolically | MeasuredApproximation
type ConstantKind = Literal | Named | Mathematical | Physical | Parameter | Integration | Enumeration
type Interpretation = Map(Symbol, DomainElement)
03. SEMANTICS
denotes(c, I, k) = I(c.symbol) for context k compatible with c.scope
constant_in(c, k) := forall admissible assignments a,b in k:
evaluate(c,a) = evaluate(c,b)
context_sensitive(c) := exists contexts k1,k2: denotes(c,k1) != denotes(c,k2)
context_sensitive does not contradict constant_in when scopes differ
constant != universally immutable physical quantity
04. CLASSIFICATION
LiteralConstant: 0, 1, -3, 1/2
NamedMathematicalConstant: pi, e, Euler-Mascheroni gamma
PhysicalConstant: speed of light in vacuum c; Planck constant h
Parameter: fixed within a specified model or operation, variable across models
IntegrationConstant: arbitrary value fixed for one selected antiderivative
EnumerationConstant: named member of a finite symbolic domain
distinguish: a coefficient can be a constant relative to a chosen variable
05. MATHEMATICAL IDENTITIES
pi = circumference / diameter in Euclidean geometry
e = sum(n=0..infinity, 1/n!)
0 + x = x
1 * x = x
d/dx(k) = 0 when k is independent of x and differentiation is defined
integral(f(x), dx) = F(x) + C on a connected interval, when F' = f
note: C is arbitrary, not a uniquely specified numeric value
06. TYPE AND SCOPE RULES
requires: c.domain matches every operation's operand requirements
requires: c.symbol has an unambiguous binding within c.scope
shadowing: local declarations may override identical symbol spellings
substitution: replace c by its value only when context, units and exactness agree
alpha_renaming: bound variable renaming does not alter constant denotation
collision: symbol 'c' may denote light speed or an arbitrary coefficient
07. RELATIONSHIP GRAPH
Constant IS_A SymbolicEntity
Constant HAS_SYMBOL MathematicalSymbol
Constant HAS_VALUE NumericValue | SymbolicExpression | DomainElement
Constant HAS_TYPE MathematicalType
Constant DEFINED_IN Scope
Constant HAS_INTERPRETATION Interpretation
Constant RELATED_TO Variable
Constant MAY_BE Coefficient
Constant MAY_BE Parameter
Constant MAY_HAVE Unit
Constant SUPPORTED_BY Provenance
Constant CONTRASTS_WITH Variable
08. OPERATIONAL FLOW
input: symbol_occurrence, expression, declared_context
resolve_binding(symbol_occurrence, declared_context)
classify_kind(binding)
infer_domain(binding)
determine_scope(binding)
resolve_value_or_definition(binding)
verify_unit_consistency(binding)
check_exactness_and_provenance(binding)
emit ConstantEntity or AmbiguousSymbolError
09. INFERENCE RULES
R1: declared_constant(s,k,v) -> denotes(s,k,v)
R2: denotes(s,k,v) and compatible(k,k2) -> reusable(s,k2,v)
only if definition and scope explicitly extend to k2
R3: constant_in(c,k) and independent_of(c,x) -> derivative(c,x)=0
assuming an appropriate differentiable scalar setting
R4: same_symbol(c1,c2) does NOT imply same_entity(c1,c2)
R5: equal_value(c1,c2) does NOT imply same_definition(c1,c2)
R6: physical_constant(c) -> require unit_system and provenance when applicable
10. SEMANTIC EQUIVALENCE
semantic_equivalence(c1,c2,k) := same_type(c1,c2) AND
equivalent_denotation(c1,c2,k) AND compatible_units(c1,c2)
lexical_alias(s1,s2) is weaker than semantic_equivalence
canonicalisation must preserve symbol namespace, scope and unit system
example: 2/2 and 1 have equal numeric values but distinct source expressions
11. NUMERIC AND PHYSICAL CONSIDERATIONS
exact_symbolic(pi) != finite_decimal_approximation(3.14159)
measured physical values include uncertainty when applicable
defining SI constants can have exact stipulated numeric values in specified units
do not confuse a measured estimate with an exact mathematical definition
floating-point literal representations may be inexact
12. VALIDATION
assert id != null
assert symbol != empty
assert domain != null
assert scope != null
assert 0 <= confidence <= 1
assert value consistent with domain
assert any unit conversion is dimensionally valid
reject unresolved overloaded symbols without context
reject claims of global invariance based only on local constancy
13. CONFIDENCE
confidence = weighted(definition_quality, context_resolution,
type_validation, provenance_quality)
confidence is epistemic metadata, not a numerical property of the constant
unresolved_binding -> reduce confidence and request disambiguation
14. FLOW_HASH
canonical_payload = normalise(id, symbol, domain, value, scope,
context, exactness, definition, provenance)
FLOW_HASH = SHA256(UTF8(canonical_payload))
canonicalisation must be deterministic and versioned
changes in definition or scope trigger hash recomputation
15. UPDATE_MODEL
version: semantic-versioning
immutable_history: true
on_update: validate -> compare_semantics -> recalculate_hash -> publish
breaking_change: redefinition, domain change, scope change, incompatible unit change
nonbreaking_change: additional alias or improved supporting provenance
16. AI_CONSUMPTION
output: typed_entity, semantic_triples, constraints, inference_rules,
ambiguity_flags, provenance, confidence, FLOW_HASH
require: preserve context before arithmetic or symbolic simplification
forbid: treating a parameter as invariant across all contexts
forbid: silently replacing exact constants with rounded decimals
prefer: exact symbolic form for mathematical reasoning
17. TEST CASES
T1: constant pi within real arithmetic -> valid mathematical constant
T2: -expression f(x)=ax+b with fixed a,b -> constants relative to x
T3: same f with varying a across model fits -> a is a parameter across fits
T4: integral(2x,dx)=x^2+C -> arbitrary integration constant
T5: pi replaced by 3.14 -> approximate, not exact semantic equivalence
T6: c in physics versus c in algebra -> symbol collision, disambiguate
T7: d/dx(5)=0 -> valid
T8: d/dx(y) where y depends on x -> not necessarily zero
18. CROSS-ONTOLOGY LINKS
Mathematical Symbol Ontology
Variable Ontology
Parameter Ontology
Coefficient Ontology
Numeric Value Ontology
Exact Value Ontology
Approximate Value Ontology
Mathematical Expression Ontology
Physical Constant / Measurement Ontologies
19. PROVENANCE AND LIMITATIONS
This is a formal semantic representation, not an executable programming language.
The source page was not independently inspected for this draft.
Mathematical statements use conventional definitions and stated assumptions.
END FLOW ALGEBRA