Skip to main content

Theorem Ontology

Proof Entities
Authors: MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: 14 October 2026
Audio Overview
FLOW ALGEBRA
THEOREM ONTOLOGY
Kireth Semantic Library | Mathematical Entities | Proof Entities
Source: https://kirethresearch.org/booksai-core/entity-graph/mathematical-entities/proof-entities/theorem-ontology-2.html
Authors: Mark Higgins — Sky (Recursive AI)
Status: Proposed formalisation; source-page wording not independently verified.
Version: 1.0 | Date: 2026-10-14

1. PURPOSE
Represent theorems as typed, context-dependent mathematical claims supported by checkable derivations. Distinguish a statement, its proof, its assumptions, and the formal system in which it is established.

2. TYPED ENTITIES
Theorem(id, statement: Formula, context: Theory, status: ProofStatus)
Theory(id, language: FormalLanguage, axioms: Set[Formula], rules: Set[InferenceRule])
Definition(id, definiendum: Symbol, definiens: Formula)
Axiom(id, formula: Formula, theory: Theory)
Hypothesis(id, formula: Formula)
Lemma(id, statement: Formula, context: Theory)
Corollary(id, statement: Formula, parent: Theorem)
Proof(id, target: Formula, context: Theory, steps: Sequence[ProofStep])
ProofStep(index: Nat, formula: Formula, justification: RuleOrReference, dependencies: Set[Nat])
Countermodel(id, interpretation: Model, target: Formula)
ProofStatus := proposed | verified | refuted | unresolved

3. CORE RELATIONSHIPS
THEOREM_IN_THEORY(Theorem, Theory)
HAS_STATEMENT(Theorem, Formula)
DEPENDS_ON(Theorem, Axiom|Definition|Lemma|Theorem|Hypothesis)
PROVED_BY(Theorem, Proof)
DERIVED_USING(ProofStep, InferenceRule)
ENTAILS(Theory, Formula)
GENERALISES(Theorem, Theorem)
SPECIALISES(Theorem, Theorem)
HAS_COROLLARY(Theorem, Corollary)
HAS_COUNTERMODEL(Claim, Countermodel)

4. FORMAL SEMANTICS
Let Γ be assumptions and φ a well-formed formula.
Γ ⊢_T φ : φ is derivable from Γ using theory T's proof rules.
Γ ⊨_T φ : every model of T satisfying Γ satisfies φ.
A theorem of T has a derivation T ⊢ φ; theoremhood is relative to T.
Soundness: if Γ ⊢_T φ, then Γ ⊨_T φ, provided T's rules are sound.
Completeness, when established for a specified calculus: Γ ⊨_T φ implies Γ ⊢_T φ.
Do not assume completeness for arbitrary theories or proof systems.

5. INFERENCE FLOWS
flow THEOREM_VERIFY(T, Γ, φ, π):
  require WELL_FORMED(φ, T.language)
  require ALL_WELL_FORMED(Γ, T.language)
  require π.target = φ
  for step in π.steps:
    require REFERENCES_PREVIOUS_STEPS_OR_PREMISES(step, Γ, T.axioms)
    require RULE_APPLICATION_VALID(step, T.rules)
  require LAST_STEP(π).formula = φ
  return verified if all requirements hold else unresolved

flow MODUS_PONENS(Γ, P, Q):
  require DERIVABLE(Γ, P)
  require DERIVABLE(Γ, P → Q)
  derive Q

flow UNIVERSAL_INSTANTIATION(Γ, ∀x.P(x), t):
  require TERM_WELL_TYPED(t)
  derive P(t) using capture-avoiding substitution

flow COUNTERMODEL_CHECK(T, Γ, φ, M):
  require MODEL_OF(M, T)
  require SATISFIES(M, Γ)
  if NOT SATISFIES(M, φ): return semantic_non_entailment
  return inconclusive

6. VALIDATION INVARIANTS
V1: A verified theorem must reference a complete, checkable proof or trusted formal proof certificate.
V2: Every proof step is well-typed and follows an allowed rule.
V3: A dependency graph is acyclic for ordinary finite derivations; recursive proof objects need explicit justified semantics.
V4: A theorem is not merely a conjecture, empirical regularity, or unsupported assertion.
V5: A countermodel refutes semantic entailment relative to the stated theory and assumptions.
V6: Changes to axioms, definitions, rules or hypotheses invalidate affected verification certificates pending recheck.
V7: Proof validity and theorem truth must not be conflated across distinct theories.

7. SEMANTIC_EQUIVALENCE
Two theorem records are equivalent only if their statements are logically equivalent under an explicitly shared theory and interpretation, with compatible hypotheses and quantifier scope. Syntactic similarity alone is insufficient.

8. CONFIDENCE
confidence.proof_validity := 1.0 only after deterministic verification against a pinned proof checker and theory version.
confidence.unverified := unknown; do not assign certainty from language-model fluency.
confidence.empirical_support is separate from formal provability.

9. UPDATE_MODEL
On change to statement, proof, dependency, theory, or rule set:
  mark affected theorem and downstream dependencies as pending_verification
  rerun proof checking
  preserve prior version and provenance

10. FLOW_HASH
Canonicalise stable entity IDs, normalised statements, theory/version IDs, hypotheses, ordered proof steps and dependency hashes. Compute SHA-256 over canonical UTF-8 serialization. A FLOW_HASH identifies an exact formalisation version; it does not certify correctness by itself.

11. AI_CONSUMPTION
Expose entity IDs, statement, formal language, theory, assumptions, dependencies, proof status, proof certificate, countermodels, provenance, confidence, update timestamp and FLOW_HASH. AI systems must preserve distinctions between proven, conjectured and refuted claims, cite the relevant theory, and avoid inventing missing derivations.

12. EXAMPLE
Theory: propositional classical logic.
Premises: P and (P → Q).
Proof: [1] P (premise); [2] P → Q (premise); [3] Q (modus ponens, 1, 2).
Conclusion: {P, P → Q} ⊢ Q.

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