Skip to main content

Mathematical Law Ontology

Equation and Statement Entities
Authors: MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: 13 October 2026
Audio Overview
FLOW ALGEBRA
MATHEMATICAL LAW ONTOLOGY
Kireth Semantic Library | Equation and Statement Entities
Source: https://kirethresearch.org/booksai-core/entity-graph/mathematical-entities/equation-and-statement-entities/mathematical-law-ontology.html
Authors: Mark Anthony Higgins — Sky (Recursive AI)
Version: 1.0 | Date: 2026-10-13
Status: Formal ontology specification; mathematically grounded expansion of the source page.

01. PURPOSE
flow MathematicalLawOntology v1.0:
  domain: mathematics
  entity_class: MathematicalLaw
  parent: MathematicalStatement
  purpose: represent, validate, relate and apply universally quantified mathematical laws under explicit assumptions
  execution_semantics: typed declarative inference with proof obligations

02. CORE ENTITY SCHEMA
entity MathematicalLaw {
  id: URI
  name: String
  statement: TypedProposition
  variables: Set[TypedVariable]
  quantifiers: List[Quantifier]
  domain: MathematicalStructure
  assumptions: Set[Proposition]
  conclusion: Proposition
  proof_status: {proved, axiom, conditional, conjectured, refuted, unknown}
  proof_reference: Optional[URI]
  provenance: Set[Source]
  confidence: ConfidenceRecord
  version: SemanticVersion
}
constraint: proof_status=proved requires a verifiable proof or accepted theorem reference
constraint: conjectured statements must not be asserted as theorems

03. TYPES AND DISTINCTIONS
classes:
  - AlgebraicLaw
  - OrderLaw
  - LogicalLaw
  - SetTheoreticLaw
  - ArithmeticLaw
  - GeometricLaw
  - AnalyticLaw
  - ProbabilisticLaw
  - StructuralLaw
related_but_distinct:
  Axiom: assumed within a formal system
  Theorem: established from axioms and prior results
  Identity: equality valid for all admissible assignments
  Rule: authorised inference or transformation
  EmpiricalLaw: observational generalisation, not automatically a mathematical theorem

04. FORMAL TRUTH CONDITIONS
law L := forall x1:T1,...,xn:Tn. (A(x1,...,xn) => C(x1,...,xn))
valid(L,M) := every admissible assignment in model M satisfying A also satisfies C
applicable(L,context) := model_matches(context,M) AND assumptions_hold(A,context)
execute(L,context) := derive(C[bindings]) only if applicable(L,context)
unknown assumptions => result UNKNOWN, not TRUE

05. EXAMPLE LAWS WITH DOMAINS
commutativity_addition: forall a,b in Real. a+b=b+a
associativity_addition: forall a,b,c in Real. (a+b)+c=a+(b+c)
distributivity: forall a,b,c in Real. a*(b+c)=a*b+a*c
additive_identity: forall a in Real. a+0=a
multiplicative_identity: forall a in Real. a*1=a
multiplicative_inverse: forall a in Real where a!=0. a*(1/a)=1
order_transitivity: forall a,b,c in Real. (a<b AND b<c) => a<c
DeMorgan: forall propositions P,Q. NOT(P AND Q) iff (NOT P OR NOT Q)
set_union_commutativity: forall sets A,B. A union B=B union A
note: commutativity of multiplication does not generally hold for matrices

06. ALGEBRAIC STRUCTURES AND LAW SCOPE
structure Semigroup: associative binary operation
structure Monoid: semigroup with identity
structure Group: monoid with inverses
structure AbelianGroup: group with commutative operation
structure Ring: additive abelian group and associative distributive multiplication
structure Field: commutative ring with 1!=0 and inverses for nonzero elements
scope rule: never transport a law into a structure without verifying its axioms

07. KNOWLEDGE GRAPH
nodes: MathematicalLaw, MathematicalStructure, Axiom, Theorem, Proof, Variable, Assumption, Proposition, Counterexample
edges:
  MathematicalLaw --appliesTo--> MathematicalStructure
  MathematicalLaw --requires--> Assumption
  MathematicalLaw --concludes--> Proposition
  MathematicalLaw --derivedFrom--> Axiom|Theorem
  MathematicalLaw --supportedBy--> Proof
  MathematicalLaw --refutedBy--> Counterexample
  MathematicalLaw --generalises--> MathematicalLaw
  MathematicalLaw --specialises--> MathematicalLaw
  MathematicalLaw --equivalentTo--> MathematicalLaw
  MathematicalLaw --hasVariable--> Variable

08. REASONING RULES
R1 universal_instantiation:
  forall x:T. P(x), t:T => P(t)
R2 modus_ponens:
  P, P=>Q => Q
R3 conditional_law_application:
  A(t), forall x. A(x)=>C(x) => C(t)
R4 equality_substitution:
  a=b, well_typed(context[a]) => context[a]=context[b]
R5 counterexample_refutation:
  exists x in D. A(x) AND NOT C(x) => NOT valid(forall x in D. A(x)=>C(x))
R6 restriction:
  valid(L,D) AND E subset D => valid(L,E)
R7 extension_guard:
  valid(L,D) does NOT imply valid(L,E) when D subset E

09. TRANSFORMATION SEMANTICS
transform(expression,law,bindings):
  require type_check(bindings)
  require law.assumptions satisfied
  require matching subexpression
  output equivalent expression AND proof trace
  preserve free variables and binding scope
  forbid variable capture
  record original expression, substitution and resulting expression

10. VALIDATION
checks:
  - parse mathematical statement into typed abstract syntax tree
  - confirm quantifier binding and variable scope
  - validate structure and operator signatures
  - resolve nonzero, continuity, differentiability or convergence assumptions where needed
  - verify proof status and proof reference
  - detect conflicting claims and counterexamples
  - test finite instances only as supporting evidence, never as proof of universal law
  - retain undecidable or unproved outcomes as UNKNOWN

11. SEMANTIC EQUIVALENCE
semantic_equivalence(L1,L2):
  require matching or explicitly mapped domains
  require logically equivalent assumptions and conclusions
  permit alpha-renaming of bound variables
  distinguish syntactic similarity from logical equivalence
  result: {equivalent, non_equivalent, unknown}
example: forall x,y in Real. x+y=y+x equivalent under alpha-renaming to forall a,b in Real. a+b=b+a

12. CONFIDENCE
confidence {
  mathematical_certainty: {proved, conditional, unproved, refuted}
  source_reliability: Float[0,1]
  formalisation_quality: Float[0,1]
  assumption_completeness: Float[0,1]
}
rule: statistical confidence cannot replace deductive proof
rule: do not assign probability 1 to an unproved claim merely because examples agree

13. PROVENANCE
provenance {
  source_url: URI
  source_title: Mathematical Law Ontology
  source_accessed: 2026-10-13
  authors: [Mark Anthony Higgins, Sky (Recursive AI)]
  extraction_note: visible page heading and metadata verified; detailed formal content supplied as an independent ontology specification
  revision_history: List[Change]
}

14. FLOW HASH
FLOW_HASH := SHA256(canonical_utf8(
  ontology_id + version + normalised_entities + normalised_rules + assumptions
))
canonicalisation: stable field ordering, Unicode NFC, explicit type names, deterministic whitespace
hash purpose: integrity and change detection, not mathematical proof

15. UPDATE MODEL
UPDATE_MODEL:
  trigger: source revision | new proof | discovered counterexample | corrected domain | schema change
  actions:
    - ingest and compare source revision
    - revalidate types, assumptions and proof references
    - invalidate dependent inferences if law is revised or refuted
    - increment version and regenerate FLOW_HASH
    - preserve historical provenance and previous versions

16. AI CONSUMPTION
AI_CONSUMPTION:
  input: mathematical query, typed context, known assumptions
  retrieve: candidate laws by domain and signature
  filter: applicable laws only
  reason: instantiate, infer, transform with proof trace
  output: derived proposition, assumptions, citations, proof status, confidence and uncertainty
  safeguards:
    - never invent proofs
    - never suppress domain restrictions
    - distinguish theorem from conjecture
    - do not confuse empirical regularity with mathematical necessity

17. TEST CASES
T1: real addition 2+3=3+2 => PASS
T2: real distributivity 2*(3+4)=2*3+2*4 => PASS
T3: inverse at zero 0*(1/0)=1 => REJECT undefined operation
T4: matrix multiplication AB=BA for arbitrary matrices => REJECT universal claim
T5: from a<b and b<c infer a<c over reals => PASS
T6: extend a real-number ordering law to complex numbers => REJECT without defined order
T7: universal law supported only by sampled instances => UNKNOWN proof status

18. INTEROPERABILITY
cross_links:
  - Mathematical Statement Ontology
  - Equation Ontology
  - Identity Ontology
  - Equality Ontology
  - Mathematical Rule Ontology
  - Formula Ontology
  - Mathematical Logic Ontology
  - Proof Ontology
  - Algebraic Structure Ontology

19. FINAL INVARIANTS
I1: every applied law has a declared domain
I2: every application checks its assumptions
I3: every derived claim retains its proof or inference trace
I4: contradiction and counterexample records are preserved
I5: semantic equivalence is not inferred from notation alone
I6: FLOW_HASH changes when canonical rule content changes
I7: unknown is never silently promoted to proved

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