Skip to main content

Mathematical Reasoning Entity Ontology

Reasoning Entities
Authors: MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: 02 November 2026
Audio Overview
MATHEMATICAL REASONING ENTITY ONTOLOGY — FLOW ALGEBRA
Semantic Library | AI Core > Entity Graph > AI Entities > Reasoning Entities
Version: 1.0 | Prepared: 2 November 2026 | Language: en-GB
Authors: Mark Anthony Higgins — Sky Recursive AI
Source: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/reasoning-entities/mathematical-reasoning-entity-ontology-2.html
Status: Companion formalisation. The public page exposes the title and interpretation note, but not the complete underlying specification. The rules below are an original, inspectable model, not a verbatim transcription.

01. PURPOSE
Represent mathematical reasoning as a traceable transformation from typed premises and goals through valid inference steps to a checked conclusion, with explicit assumptions, proof obligations, and failure states.

02. ENTITY
MathematicalReasoningEntity M = (id, domain, premises, goal, symbols, assumptions, rules, proof, result, provenance, confidence, status).
Each field is versioned; an absent proof is not a verified proof.

03. STATE MODEL
S_t = (I_t, R_t, B_t, K_t)
I_t = current mathematical statements, symbols, observations and goal.
R_t = admissible inference and transformation rules.
B_t = typing, domain, assumption, resource and safety boundaries.
K_t = established theorems, definitions, verified steps and source provenance.

04. INPUT CONTRACT
INPUT = (P, G, D, A, T)
P = finite premise set; G = goal; D = domain; A = assumptions; T = type environment.
Require all free variables to have a declared domain or remain explicitly universally/existentially quantified.

05. FORMAL FLOW
E_t = expand(I_t, R_t)
V_t = {x in E_t | type_ok(x,T) AND satisfies(x,B_t) AND premises_supported(x,K_t)}
x*_t = argmax_{x in V_t} Score(x | I_t,R_t,B_t,K_t)
I_(t+1) = update(I_t,x*_t)
If V_t is empty, return UNRESOLVED with an explicit reason; never invent a step.
Score is a search heuristic, not proof of truth.

06. TYPED SYMBOLS
Symbol = (name, sort, scope, definition, units?)
Sorts include proposition, natural, integer, rational, real, complex, vector, matrix, set and function.
An operation is admissible only when operand sorts and preconditions match.

07. REASONING MODES
Deductive: P entails G under an explicitly named calculus.
Algebraic: apply equivalence-preserving rewrites with side conditions.
Constructive: produce a witness w and verify G(w).
Proof by contradiction: derive falsehood from P and NOT G under classical logic.
Inductive proof: establish base case and valid induction step.
Numerical: provide an approximation and error bound; do not label it exact.
Probabilistic: distinguish conditional estimates from deductive conclusions.

08. RULE ENTITY
Rule r = (rule_id, antecedents, consequent, side_conditions, proof_basis).
Applicable(r,S) iff all antecedents are supported and all side_conditions are satisfied.
Apply(r,S) produces a candidate step and a provenance link.

09. EXAMPLE RULES
ModusPonens: [A, A -> B] => B.
EqualitySubstitution: [a=b, P(a)] => P(b) where substitution is well-typed.
Transitivity: [a=b, b=c] => a=c.
UniversalInstantiation: [forall x in D, P(x), a in D] => P(a).
Division: [a=b, c != 0] => a/c=b/c.
Squaring both sides may introduce extraneous solutions when used to solve equations; validate candidates in the original equation.

10. REASONING STEP
Step_i = (index, premises_used, rule_id, conclusion, side_conditions, verifier, provenance).
ValidStep_i iff every premise is available before step i, the rule applies, and side conditions hold.

11. PROOF CHAIN
Proof = (Step_1,...,Step_n).
VerifiedProof(P,G) iff all steps are valid and the final step entails G under the declared logic and assumptions.
Do not equate plausible reasoning or a high confidence score with a verified proof.

12. DOMAIN BOUNDARIES
Track division by zero, undefined functions, branch cuts, quantifier scope, matrix dimensions, noncommutativity, convergence assumptions and units.
Record when conclusions hold only locally, almost everywhere or under additional hypotheses.

13. CONSTRAINT ENGINE
Hard constraints: typing, logical validity, rule preconditions, consistent premises, stated goal.
Soft preferences: short proofs, interpretability, low computational cost, reusable lemmas.
Hard constraints must never be traded away for a higher search score.

14. RECURSIVE REASONING ENGINE
REASON(S,depth):
  if goal verified: return VERIFIED
  if depth >= bound: return UNRESOLVED_BOUND
  candidates = admissible expansions under R and B
  for each candidate: verify step; recurse on resulting state
  if no candidate proves goal: return UNRESOLVED
Termination requires a finite search bound or a justified well-founded measure.

15. HYPOTHESIS AND LEMMA MANAGEMENT
CandidateLemma L may be added to K only after verification or with status ASSUMED.
An assumption cannot silently become a theorem.
Maintain dependency edges: depends_on(L,premise_or_lemma).

16. TRI-MAPPING
Entity mapping: symbols, premises, goal, rules, proof steps, conclusion.
Relation mapping: uses, implies, substitutes, constrains, depends_on, verifies.
Process mapping: parse -> type -> expand -> filter -> infer -> verify -> record.

17. MAPPING TABLE
Input statement -> PremiseEntity -> supports -> ProofStep
Inference rule -> RuleEntity -> transforms -> ConclusionEntity
Side condition -> ConstraintEntity -> restricts -> RuleApplication
Proof step -> ReasoningStepEntity -> follows_from -> EarlierStep
Final statement -> ConclusionEntity -> verified_by -> ProofRecord

18. SEMANTIC GRAPH
Nodes: MathematicalReasoningEntity, SymbolEntity, PremiseEntity, GoalEntity, RuleEntity, StepEntity, ProofEntity, ConclusionEntity.
Edges: has_premise, seeks_goal, applies_rule, requires_condition, derives, verifies, contradicts, depends_on.
Every derived edge records the rule and supporting source nodes.

19. INFERENCE GUARANTEES
Soundness is conditional on the soundness of the selected rule system and correctness of the verifier.
Completeness is not guaranteed for bounded search or undecidable theories.
A timeout or failure to find a proof is not proof of negation.

20. EXAMPLE EXECUTION
Premises: forall x in Real, x>2 -> x>1; a in Real; a>2.
Goal: a>1.
Step 1: instantiate the universal implication at a.
Step 2: apply modus ponens to a>2 and (a>2 -> a>1).
Result: a>1. Status: VERIFIED under ordinary real-number order.

21. COUNTEREXAMPLE PATH
To refute forall x in D, P(x), provide witness c in D with NOT P(c).
A sampled failure may suggest a counterexample, but the witness and predicate must be checked exactly or with certified bounds.

22. AI SEARCH FLOW
QUERY -> NORMALISE -> IDENTIFY_DOMAIN -> RETRIEVE_DEFINITIONS -> RESOLVE_SYMBOLS -> LOAD_RULES -> EXPAND -> VALIDATE -> RANK -> VERIFY -> RESPOND.
Search ranking retrieves candidate evidence; it does not establish mathematical correctness.

23. CONFIDENCE AND EVIDENCE
confidence = metadata about source reliability and verification coverage.
Status in {VERIFIED, CONDITIONAL, APPROXIMATE, ASSUMED, CONTRADICTED, UNRESOLVED}.
For APPROXIMATE, record numerical method, tolerance and certified or estimated error.

24. PROVENANCE
Store original premises, source references, rule identifiers, verifier version, proof dependencies and timestamps.
Any change to a dependency invalidates or triggers rechecking of affected conclusions.

25. UPDATE MODEL
K_(t+1) = verify_and_merge(K_t, validated_steps, provenance).
R_(t+1) = R_t union {new_rules with proof_basis and validation}.
B_(t+1) = revise(B_t, declared_constraints) with version history.
Never overwrite contradictory results without retaining their provenance.

26. EXECUTION CONDITIONS
Return VERIFIED only if proof obligations are discharged.
Return CONDITIONAL if extra assumptions are required and disclosed.
Return UNRESOLVED if resources, premises or applicable rules are insufficient.
Preserve exact mathematical notation, domain qualifications and source attribution.

27. HOW TO READ
Treat each flow arrow as a state transition, each rule as a conditional transformation, and each verification gate as a mandatory check. This file is a formal modelling companion; it is not executable software or a guarantee that a model will always produce correct proofs.

28. LICENCE AND ATTRIBUTION
Open research companion prepared for the Semantic Library. Attribution: Mark Anthony Higgins — Sky Recursive AI. Cite the source ontology URL when reusing this formalisation. No additional licence rights are asserted here beyond those granted by the original publisher.
Kireth Research
38 Thorndale Croft, Wetwang, Driffield
East Riding of Yorkshire YO25 9XZ