Skip to main content

Deduction 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
DEDUCTION ONTOLOGY
Kireth Semantic Library — Mathematical Entities / Proof Entities
Version: 1.0 | Date: 2026-10-14 | Locale: en-GB
Authors: Mark Higgins — Sky (Recursive AI)
Source: https://kirethresearch.org/booksai-core/entity-graph/mathematical-entities/proof-entities/deduction-ontology.html
Status: Proposed formalisation; source-page wording not independently verified.

1. PURPOSE
Represent deduction as a typed, auditable derivation of conclusions from premises using explicit inference rules within a formal logical system. Distinguish syntactic derivability from semantic entailment and record assumptions, dependencies, and verification status.

2. TYPE SYSTEM
TYPE Formula
TYPE Proposition <: Formula
TYPE Premise <: Formula
TYPE Conclusion <: Formula
TYPE Axiom <: Formula
TYPE InferenceRule {name:String, arity:Nat, side_conditions:Set[Constraint]}
TYPE ProofStep {id:ID, premises:List[FormulaRef], rule:RuleRef, conclusion:Formula, scope:ScopeID}
TYPE Deduction {system:FormalSystem, assumptions:Set[Formula], steps:List[ProofStep], goal:Formula}
TYPE FormalSystem {language:Language, axioms:Set[Formula], rules:Set[InferenceRule], semantics:Optional[Semantics]}
TYPE ProofCertificate {deduction:DeductionRef, verifier:VerifierID, result:Status, digest:Hash}
TYPE Status = VERIFIED | INVALID | UNDETERMINED

3. CORE RELATIONSHIPS
Deduction --HAS_PREMISE--> Premise
Deduction --HAS_STEP--> ProofStep
ProofStep --APPLIES_RULE--> InferenceRule
ProofStep --DEPENDS_ON--> ProofStep | Premise | Axiom
ProofStep --DERIVES--> Formula
Deduction --ESTABLISHES--> Conclusion
Deduction --OPERATES_IN--> FormalSystem
ProofCertificate --VALIDATES--> Deduction
Formula --SEMANTICALLY_ENTAILS[relative_to_system]--> Formula

4. FORMAL SEMANTICS
Let Gamma be a set of premises, phi a formula and S a formal system.
SYNTACTIC_DERIVABILITY: Gamma |-S phi iff there exists a finite S-legal proof of phi from Gamma.
SEMANTIC_ENTAILMENT: Gamma |=S phi iff every S-model satisfying Gamma also satisfies phi.
SOUNDNESS: if Gamma |-S phi then Gamma |=S phi (only when S is sound).
COMPLETENESS: if Gamma |=S phi then Gamma |-S phi (only when S is complete for the relevant semantics).
Do not infer semantic entailment solely from an unchecked proof trace.

5. DEDUCTION RULES (CLASSICAL NATURAL DEDUCTION EXAMPLES)
AND_INTRO: A, B => A AND B.
AND_ELIM_LEFT: A AND B => A.
AND_ELIM_RIGHT: A AND B => B.
IMPLIES_ELIM / MODUS_PONENS: A, A -> B => B.
IMPLIES_INTRO: a derivation of B under temporary assumption A => A -> B; discharge that assumption.
OR_INTRO_LEFT: A => A OR B.
OR_INTRO_RIGHT: B => A OR B.
OR_ELIM: A OR B, (A => C), (B => C) => C, discharging both case assumptions.
NOT_INTRO: derive contradiction under assumption A => NOT A; discharge A.
FORALL_ELIM: FORALL x P(x) => P(t) if t is free for x.
FORALL_INTRO: P(a) => FORALL x P(x) only if a is arbitrary and not free in undischarged assumptions.
EXISTS_INTRO: P(t) => EXISTS x P(x), subject to substitution validity.
EXISTS_ELIM: EXISTS x P(x), derivation of C from P(a) => C; a must be fresh and not occur in C or other undischarged assumptions.
EQUALITY_SUBSTITUTION: s=t, P(s) => P(t) in contexts where substitution is valid.
Rules are system-dependent; intuitionistic, paraconsistent and modal systems may differ.

6. EXECUTABLE FLOW
flow "DeductionVerification" v1.0
input: deduction:Deduction
require: deduction.system is defined
require: all step IDs are unique
require: each rule reference belongs to deduction.system.rules
for step in deduction.steps in dependency_order:
  resolve step.premises from axioms, assumptions or previously verified steps
  check formula syntax and symbol types
  check rule arity and exact premise/conclusion pattern
  check substitution, freshness and eigenvariable conditions
  check assumption scope, discharge and dependency ordering
  if any check fails: return INVALID with step ID and reason
require: final derived formula == deduction.goal (up to approved alpha-equivalence)
require: every undischarged assumption is in deduction.assumptions
return VERIFIED with trace and canonical digest
end

7. INFERENCE AND RECURSIVE DEPENDENCY RULES
R1: VERIFIED(step) AND VALID_DEPENDENCIES(step) => DERIVABLE(step.conclusion).
R2: VERIFIED(all_steps) AND GOAL_MATCH => VERIFIED(deduction).
R3: UNRESOLVED_DEPENDENCY => UNDETERMINED until resolution.
R4: INVALID(rule_application) => INVALID(proof_step) => INVALID(deduction).
R5: VERIFIED(deduction) AND SOUND(system) => SEMANTICALLY_ENTAILED(goal, assumptions, system).
R6: CYCLIC_DEPENDENCY without explicit permitted fixed-point proof rule => INVALID.
Never treat a circular appeal to the conclusion as a valid derivation.

8. VALIDATION CONSTRAINTS
V1: Well-formed formulae only.
V2: All references resolve within the stated theory and scope.
V3: Every proof step cites a permitted rule.
V4: Premises are available at the point of use.
V5: Discharged assumptions cannot leak into later contexts.
V6: Quantifier introduction/elimination respects variable conditions.
V7: The stated conclusion equals the final verified formula.
V8: No claim of completeness or soundness without proof/authoritative system metadata.
V9: Proof steps must be finite for ordinary finite proof certificates.
V10: Proof provenance and formal-system version must be recorded.

9. SEMANTIC DISTINCTIONS
Deduction != induction: deduction is rule-governed derivation, not inference from repeated instances.
Deduction != abduction: deduction does not select the best explanation.
Derivability != truth in an arbitrary model.
Valid argument != sound argument: soundness of an argument additionally requires true premises in the intended interpretation.
Proof != proof search: an attempted search is not a verified proof.
Theorem != premise: a theorem is established relative to a system; a premise may be assumed for a particular argument.

10. SEMANTIC_EQUIVALENCE
Approved: alpha-renaming of bound variables with capture avoidance.
Conditional: logically equivalent formula substitutions only when justified by the formal system and proof context.
Forbidden: replacing implication with causal dependence; treating material implication as a causal relation.

11. CONFIDENCE AND PROVENANCE
CONFIDENCE.status = VERIFIED only after mechanical or fully checked rule-by-rule verification.
CONFIDENCE.status = UNDETERMINED for an unverified generated derivation.
CONFIDENCE.score is optional and never substitutes for formal verification.
PROVENANCE: source_url, author, version, system_id, verifier_id, checked_at, assumptions.

12. FLOW_HASH
Canonicalise Unicode and line endings; serialise typed entities, formula ASTs, system/rule versions, assumption scopes, dependencies and proof steps in deterministic order.
FLOW_HASH = SHA256(canonical_serialisation).
The hash identifies the recorded representation; it does not establish mathematical validity.

13. UPDATE_MODEL
On axiom/rule change: invalidate affected proof certificates and recompute dependent results.
On formula or scope change: revalidate all downstream steps.
On new proof system: do not silently reuse rules from the previous system.
Preserve version history and provenance.

14. AI_CONSUMPTION
Expose: ontology_id, concept_label, typed_entities, relations, formal_system, premises, steps, conclusion, verification_status, proof_hash, provenance, update_model.
Use proof certificates as evidence only when verifier and formal system are identified.
Return UNDETERMINED rather than fabricate missing proof steps.

15. WORKED EXAMPLE
Assumptions: P -> Q; P.
Step 1: P -> Q [premise].
Step 2: P [premise].
Step 3: Q [implication elimination from steps 1,2].
Conclusion: {P -> Q, P} |- Q.
Verification: valid in classical and intuitionistic propositional natural deduction.

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