Skip to main content

Equality 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
EQUALITY ONTOLOGY
Kireth Semantic Library | Mathematical Entities | Equation and Statement Entities
Source: https://kirethresearch.org/booksai-core/entity-graph/mathematical-entities/equation-and-statement-entities/equality-ontology-2.html
Authors: Mark Higgins — Sky (Recursive AI)
Version: 1.0 | Date: 2026-10-13
Source status: Mathematical reconstruction; webpage content not independently verified.

01. PURPOSE
flow "EqualityOntology" v1.0
  domain: mathematics / logic / semantic reasoning
  intent: represent, type-check, transform and validate equality assertions
  principle: equality is interpreted relative to a domain and an interpretation

02. ENTITY TYPES
  EqualityStatement := Eq(left: Term, right: Term, context: Context)
  Term := Constant | Variable | Application | Expression
  Context := {domain, assumptions, symbol_table, interpretation}
  Proof := {premises, rule, conclusion, provenance}
  EqualityStatus := PROVED | DISPROVED | UNKNOWN | CONDITIONAL

03. CORE SEMANTICS
  eval(Eq(a,b), I, rho) := (denote(a,I,rho) = denote(b,I,rho))
  definedness: both sides must denote values of compatible types
  notation: a = b
  distinction: syntactic sameness is not required for semantic equality
  distinction: approximate equality (~=) is not exact equality
  distinction: assignment (:=) is not automatically a proposition of equality

04. AXIOMS OF EQUALITY
  reflexivity: forall x:D, x = x
  symmetry: forall x,y:D, x = y => y = x
  transitivity: forall x,y,z:D, (x = y and y = z) => x = z
  substitutivity: x = y => P(x) iff P(y), for extensional well-typed P
  congruence: x_i = y_i for all i => f(x_1,...,x_n) = f(y_1,...,y_n)
  caveat: non-extensional contexts (quotation, syntax, intensional belief) require separate semantics

05. EQUALITY CLASSES
  numeric_equality: equal mathematical values (e.g. 1/2 = 0.5)
  algebraic_identity: equation true for every admissible variable assignment
  conditional_equality: true under stated constraints or assumptions
  definitional_equality: equality by an explicit definition in a formal system
  structural_equality: same recursively defined structure under a specified representation
  referential_identity: two names designate the same entity
  approximate_equality: separate relation with tolerance and error semantics
  equivalence_relation: not necessarily identity or equality; specify relation R

06. TYPED EQUALITY
  rule: Gamma |- a:D and Gamma |- b:D => Gamma |- Eq(a,b):Prop
  cross_type: require an explicit coercion or shared comparison domain
  example: Integer(2) = Real(2.0) only after specified embedding
  invalid: comparing incompatible physical dimensions without conversion

07. NUMERIC RULES
  additive: a=b => a+c=b+c
  multiplicative: a=b => ac=bc
  subtraction: a=b => a-c=b-c
  division: a=b and c!=0 => a/c=b/c
  cancellation_multiplication: ac=bc and c!=0 => a=b
  exponentiation: a=b => a^n=b^n where defined
  reverse_exponentiation: a^2=b^2 does not imply a=b
  square_root: sqrt(a^2)=abs(a) over reals, not always a

08. EQUATION TRANSFORMATIONS
  equivalent_transform: preserves the exact solution set
  implication_transform: preserves solutions in only one direction
  add_same_term: equivalent where expressions are defined
  multiply_nonzero: equivalent when multiplier nonzero on admissible domain
  multiply_variable: may add extraneous solutions when multiplier can be zero
  square_both_sides: implication only in general; verify candidates
  simplify_fraction: retain excluded denominator-zero values
  rule: attach domain guards and proof obligations to every transformation

09. SEMANTIC EQUIVALENCE
  normalize: canonicalize exact rational literals and commutative forms when valid
  alpha_equivalence: bound-variable renaming may preserve meaning
  extensional_equality: functions equal if same outputs for every domain input
  syntactic_equality: identical abstract syntax trees
  warning: symbolic simplification must respect assumptions and branch conventions

10. KNOWLEDGE GRAPH
  node: EqualityStatement
  edge: HAS_LEFT_OPERAND -> Term
  edge: HAS_RIGHT_OPERAND -> Term
  edge: HAS_DOMAIN -> Domain
  edge: DEPENDS_ON -> Assumption
  edge: JUSTIFIED_BY -> Proof
  edge: DERIVED_FROM -> EqualityStatement
  edge: CONTRADICTS -> InequalityStatement (only under matching contexts)
  edge: SEMANTICALLY_EQUIVALENT_TO -> EqualityStatement (when proved)

11. INFERENCE RULES
  EQ_REFL: term(x) => Eq(x,x)
  EQ_SYM: Eq(x,y) => Eq(y,x)
  EQ_TRANS: Eq(x,y) and Eq(y,z) => Eq(x,z)
  EQ_SUBST: Eq(x,y) and P(x) => P(y), under extensionality
  EQ_CONGR: Eq(x,y) => Eq(f(x),f(y)), when f defined on both
  EQ_SOLVE: Eq(f(x),g(x)) and validated algebra => solution_set
  EQ_CHECK: substitute candidate into original equation with original domain

12. VALIDATION
  check: operands parse correctly
  check: compatible domains and types
  check: all operations defined under assumptions
  check: division denominators nonzero
  check: equivalence claims have proofs or justified normal forms
  check: floating-point comparisons use an explicit numerical policy
  check: contradictions are evaluated in the same context
  check: candidate solutions satisfy the original equation

13. EXAMPLES
  example_1: Eq(2+3,5) -> PROVED by integer arithmetic
  example_2: Eq(x+1,3) under x=2 -> PROVED
  example_3: Eq(x^2,4) over Real -> solutions {-2,2}
  example_4: Eq((x^2-1)/(x-1),x+1) under x!=1 -> PROVED
  example_5: Eq((x^2-1)/(x-1),x+1) at x=1 -> UNDEFINED
  example_6: Eq(sqrt(x^2),x) over Real -> CONDITIONAL (x>=0)

14. CONFIDENCE
  confidence_basis: formal proof | exact evaluation | trusted theorem | numerical estimate
  proved: 1.0 when sound derivation and assumptions verified
  unknown: do not promote heuristic agreement to formal proof
  approximate: record tolerance, algorithm and error bounds separately

15. FLOW_HASH
  input: canonical AST + domain + assumptions + rule_set_version
  algorithm: SHA-256 over deterministic UTF-8 serialization
  purpose: integrity, deduplication, provenance and version comparison
  warning: equal hashes do not themselves prove semantic equality

16. UPDATE_MODEL
  versioning: immutable revisions of definitions and inference rules
  invalidation: recheck derived facts when assumptions or semantics change
  provenance: retain source, author, timestamp and proof dependencies
  compatibility: preserve prior interpretations unless explicitly migrated

17. AI_CONSUMPTION
  output_schema:
    entity_type: EqualityStatement
    left: typed expression
    right: typed expression
    domain: explicit
    assumptions: list
    status: PROVED | DISPROVED | UNKNOWN | CONDITIONAL
    proof_steps: ordered list
    confidence: number or null
    provenance: source reference
    flow_hash: digest
  safeguards:
    - never infer equality solely from lexical similarity
    - never silently discard domain restrictions
    - distinguish proof from numeric approximation
    - distinguish equality from equivalence, identity and assignment

18. CROSS-ONTOLOGY LINKS
  related: Mathematical Statement Ontology
  related: Equation Ontology
  related: Identity Ontology
  related: Inequality Ontology
  related: Mathematical Expression Ontology
  related: Variable Ontology
  related: Operator Ontology
  related: Numeric Value Ontology
  related: Semantic Equivalence Ontology

19. EXECUTION PIPELINE
  parse -> resolve_symbols -> type_check -> collect_assumptions
  -> normalize_guardedly -> select_inference_rules -> derive
  -> verify_proof_and_domain -> assign_status -> attach_provenance
  -> calculate_flow_hash -> emit_knowledge_graph_record

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