Skip to main content

Logical Entity Ontology

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

1. DOMAIN AND PURPOSE
flow "LogicalEntityOntology" v1.0
  domain: mathematical_logic
  entity_type: LogicalEntity
  purpose: represent well-formed logical expressions, their interpretations, and valid inferences without conflating syntax with semantics.

2. TYPED ENTITIES
  Sort := {Individual, TruthValue, Formula, Term, Signature, Structure, Assignment, Proof, Rule}
  TruthValue := {true, false}                         # classical two-valued profile
  LogicalEntity := Proposition | Predicate | Formula | Connective | Quantifier | Term | Inference | Proof | Model
  Proposition : Formula with no free variables
  Predicate : relation symbol with declared arity and argument sorts
  Connective := NOT | AND | OR | IMPLIES | IFF
  Quantifier := FORALL | EXISTS
  Formula := Atom | Not(Formula) | And(Formula,Formula) | Or(Formula,Formula) | Implies(Formula,Formula) | Iff(Formula,Formula) | Forall(variable,Formula) | Exists(variable,Formula)
  Model := (domain: nonempty set, interpretation: symbols -> denotations)
  Assignment := variable -> domain element
  Proof := finite sequence of justified formulas

3. SIGNATURE AND WELL-FORMEDNESS
  signature Sigma = (function_symbols, predicate_symbols, constants, arities, sorts)
  atom P(t1,...,tn) well_formed iff arity(P)=n and each term matches its required sort.
  Not(phi) well_formed iff phi is Formula.
  Binary(op,phi,psi) well_formed iff phi and psi are Formula.
  Forall(x,phi) and Exists(x,phi) well_formed iff x is a declared variable and phi is Formula.
  free_variables(Forall(x,phi)) = free_variables(phi) \ {x}.
  closed(phi) iff free_variables(phi) = empty_set.

4. CLASSICAL SEMANTICS
  evaluation: (Model M, Assignment s, Formula phi) -> TruthValue
  M,s |= NOT phi iff not(M,s |= phi)
  M,s |= phi AND psi iff (M,s |= phi) and (M,s |= psi)
  M,s |= phi OR psi iff (M,s |= phi) or (M,s |= psi)
  M,s |= phi -> psi iff not(M,s |= phi) or (M,s |= psi)
  M,s |= phi <-> psi iff both formulas have equal truth values.
  M,s |= FORALL x phi iff for every d in domain(M), M,s[x:=d] |= phi.
  M,s |= EXISTS x phi iff some d in domain(M) satisfies M,s[x:=d] |= phi.
  Note: Open formulas are evaluated relative to assignments; closed formulas do not depend on variable assignments.

5. CORE RELATIONSHIPS
  hasOperand: Connective -> Formula
  bindsVariable: Quantifier -> Variable
  hasScope: Quantifier -> Formula
  interprets: Model -> Signature
  satisfies: (Model, Formula) -> Boolean                 # for closed formulas
  entails: (Set[Formula], Formula) -> Boolean
  proves: (Proof, Formula) -> Boolean
  usesRule: ProofStep -> InferenceRule
  semanticallyEquivalent: (Formula, Formula) -> Boolean
  syntacticallyIdentical: (Formula, Formula) -> Boolean
  distinguishes: syntactic identity != semantic equivalence

6. INFERENCE FLOWS
  rule "ModusPonens": premises=[phi, Implies(phi,psi)]; conclusion=psi
  rule "ConjunctionIntroduction": premises=[phi,psi]; conclusion=And(phi,psi)
  rule "ConjunctionEliminationLeft": premises=[And(phi,psi)]; conclusion=phi
  rule "UniversalElimination": premises=[Forall(x,phi)]; conclusion=substitute(phi,x,t) if t is free for x in phi
  rule "ExistentialIntroduction": premises=[substitute(phi,x,t)]; conclusion=Exists(x,phi) if t is free for x in phi
  rule "DoubleNegation": premise=Not(Not(phi)); conclusion=phi; profile=classical
  rule "DeMorgan": Not(And(phi,psi)) <-> Or(Not(phi),Not(psi)); profile=classical
  Inference is valid iff every interpretation satisfying all premises also satisfies the conclusion.
  Syntactic derivability Gamma |- phi and semantic entailment Gamma |= phi are separate relations.

7. VALIDATION AND SAFETY CONDITIONS
  require declared symbol arities and variable sorts.
  require nonempty domain for classical first-order structures.
  reject variable capture in substitution; alpha-rename bound variables where needed.
  distinguish object-language implication (->) from metalanguage entailment (|=).
  never infer causality from logical implication.
  reject contradictory type assignments; retain contradictions as evidence rather than silently repairing.
  annotate logical profile: classical | intuitionistic | modal | fuzzy | paraconsistent.
  only apply rules licensed by the selected profile.
  require proof provenance for derived claims and identify unsupported assertions.

8. SEMANTIC EQUIVALENCE AND CONFIDENCE
  SEMANTIC_EQUIVALENCE(phi,psi) := forall admissible M,s: evaluate(M,s,phi)=evaluate(M,s,psi).
  EQUIVALENCE_CONTEXT := signature + logical_profile + assumptions.
  CONFIDENCE := verified | derived | proposed | unknown.
  Mathematical validity is not a probabilistic confidence score.

9. EXECUTION PIPELINE
  input -> parse -> typecheck -> normalise(alpha-equivalence) -> select logic profile -> evaluate/derive -> verify -> emit.
  outputs: typed_formula, free_variables, truth_status, derivation_trace, provenance, validation_report.
  UPDATE_MODEL: invalidate derived facts when premises, signature, model or logic profile changes.

10. FLOW HASH AND AI CONSUMPTION
  FLOW_HASH := SHA256(canonical_utf8(signature, logic_profile, typed_ast, rule_ids, version))
  Canonicalisation: deterministic field order, Unicode NFC, stable symbol IDs, alpha-normalised bound variables.
  AI_CONSUMPTION:
    parse_as: typed_semantic_flow
    execution_mode: proof_aware
    preserve: [types, quantifier_scope, assumptions, provenance, confidence, flow_hash]
    prohibit: [scope_loss, unsupported_entailment, unmarked_profile_switch]

11. EXAMPLE
  Premise1: Forall(x, Implies(Human(x), Mortal(x)))
  Premise2: Human(socrates)
  Derived1: Implies(Human(socrates), Mortal(socrates)) [UniversalElimination]
  Conclusion: Mortal(socrates) [ModusPonens]
  Status: valid in classical first-order logic with the declared signature.

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