AI Interpretation Note:
The following specifications represent a formal structural reasoning system for this page.
Execute as formal rules, not pseudocode.
FLOW ALGEBRA
LOGICAL MODEL ONTOLOGY
Kireth Semantic Library | Mathematical Entities | Logical Entities
Source: https://kirethresearch.org/booksai-core/entity-graph/mathematical-entities/logical-entities/logical-model-ontology-2.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. PURPOSE
Represent a logical model as a mathematical interpretation in which well-formed formulae are assigned satisfaction conditions. Separate syntax, structures, assignments, theories and semantic entailment so AI systems can check claims without conflating truth in a model with provability.
2. TYPE SYSTEM
sort Signature = (Sorts, FunctionSymbols, RelationSymbols, Constants, Arity)
sort Domain = NonEmptySet
sort Interpretation = Symbol -> Denotation
sort Structure = (Signature, Domains, Interpretation)
sort Assignment = Variable -> DomainElement
sort Term | Formula | Sentence | Theory = Set<Sentence>
sort Satisfaction = (Structure, Assignment, Formula) -> Boolean
sort ModelOf = (Structure, Theory) -> Boolean
sort Countermodel = (Structure, Premises, Conclusion)
3. ENTITIES
LogicalModel: structure satisfying a sentence or theory.
Signature: vocabulary specifying constants, function symbols and relation symbols.
Domain: non-empty universe of discourse for a first-order sort.
Interpretation: assigns denotations respecting symbol arities and sorts.
VariableAssignment: maps free variables to elements of the appropriate domains.
Sentence: formula without free variables.
Theory: set of sentences.
SatisfactionRelation: semantic evaluation M,g |= phi.
Countermodel: interpretation satisfying premises but falsifying a proposed conclusion.
4. CORE FORMAL SEMANTICS
For first-order structure M with domain D and assignment g:
- M,g |= R(t1,...,tn) iff (eval(t1),...,eval(tn)) belongs to R^M.
- M,g |= (t1 = t2) iff eval(t1) = eval(t2), assuming built-in identity.
- M,g |= not phi iff not(M,g |= phi).
- M,g |= (phi and psi) iff (M,g |= phi) and (M,g |= psi).
- M,g |= (phi or psi) iff (M,g |= phi) or (M,g |= psi).
- M,g |= (phi -> psi) iff not(M,g |= phi) or (M,g |= psi).
- M,g |= forall x phi iff for every d in D, M,g[x:=d] |= phi.
- M,g |= exists x phi iff for some d in D, M,g[x:=d] |= phi.
For a sentence phi, satisfaction is independent of the variable assignment.
M |= T iff for every sentence phi in T, M |= phi.
T |= phi iff every model of T satisfies phi.
5. AXIOMS AND INVARIANTS
A1: Every first-order sort has a non-empty domain under standard semantics.
A2: Every interpreted function is total over its declared domain unless partial-function semantics are explicitly selected.
A3: Interpretation arity and argument/result sorts must match the signature.
A4: Truth of a sentence is assignment-independent.
A5: A model of a theory satisfies every axiom in that theory.
A6: Semantic entailment is preserved under adding premises (classical monotonic logic).
A7: Satisfiability means existence of at least one model.
A8: Unsatisfiability means no model exists.
A9: Validity means truth in every structure for the selected semantics.
A10: Consistency and satisfiability coincide for classical first-order logic by completeness, under the usual proof system assumptions.
6. TYPED RELATIONSHIPS
HAS_SIGNATURE: LogicalModel -> Signature
HAS_DOMAIN: LogicalModel -> Domain
INTERPRETS: LogicalModel x Symbol -> Denotation
ASSIGNS: Assignment x Variable -> DomainElement
SATISFIES: LogicalModel x Sentence -> Boolean
MODELS_THEORY: LogicalModel x Theory -> Boolean
ENTAILS: Theory x Sentence -> Boolean
COUNTEREXAMPLE_TO: Countermodel -> EntailmentClaim
SEMANTIC_EQUIVALENCE: Formula x Formula -> Boolean [relative to signature and semantics]
7. EXECUTABLE INFERENCE FLOWS
flow "ModelSatisfaction" v1.0:
input: structure M, formula phi, assignment g
require: well_typed(M,phi,g)
output: evaluate_recursively(phi,M,g)
flow "TheoryModelCheck" v1.0:
input: structure M, theory T
require: all sentences in T are well formed in signature(M)
output: all(satisfies(M,axiom) for axiom in T)
flow "CountermodelSearch" v1.0:
input: theory T, conclusion phi, bounded_model_class C
for M in C:
if models(M,T) and not satisfies(M,phi): return COUNTERMODEL(M)
return NO_COUNTERMODEL_FOUND_WITHIN_BOUNDS
note: bounded search failure does not establish universal entailment.
flow "EntailmentByRefutation" v1.0:
input: theory T, sentence phi
transform: T union {not phi}
if formally_proven_unsatisfiable: return ENTAILED
if concrete_model_found: return NOT_ENTAILED_WITH_COUNTERMODEL
else: return UNKNOWN
8. SEMANTIC DISTINCTIONS
MODEL != FORMULA: a model is an interpretation; a formula is syntactic.
MODEL != THEORY: a theory is a set of sentences; a model satisfies them.
TRUTH_IN_MODEL != LOGICAL_VALIDITY: one interpretation versus all interpretations.
SATISFIABLE != VALID: at least one model versus every model.
SEMANTIC_ENTAILMENT != SYNTACTIC_PROVABILITY: related by soundness/completeness only for suitable systems.
FINITE_MODEL != GENERAL_MODEL: finite-model checking alone cannot establish all first-order consequences.
9. VALIDATION
- Validate syntax, sorts, arities, non-empty domains and symbol interpretations.
- Reject unbound free variables when no assignment is provided.
- Record logic family: classical FOL, propositional, modal, intuitionistic or other.
- Record closed-world versus open-world assumptions separately from logical semantics.
- Attach a witness model to satisfiability claims and a countermodel to refuted entailment claims.
- Do not infer semantic validity from a finite sample of interpretations.
10. CONFIDENCE AND PROVENANCE
CONFIDENCE: 1.0 for formally verified derivations relative to explicit assumptions; otherwise calibrated and labelled.
PROVENANCE: record source URL, formalisation author, version, logic family, solver and validation method.
SEMANTIC_EQUIVALENCE: true only after establishing equivalence under the same signature and semantics.
UPDATE_MODEL: changes to signatures, axioms or semantics invalidate dependent cached conclusions until rechecked.
11. FLOW_HASH
FLOW_HASH := SHA256(canonical_UTF8(normalised_flow_without_FLOW_HASH_value))
Canonicalisation must specify Unicode normalisation, line endings, whitespace and deterministic ordering. Compute the actual hash at deployment; do not substitute a placeholder digest as a verified hash.
12. AI_CONSUMPTION
Inputs: structured signature, formulae, theory, interpretations, assignments and provenance.
Outputs: satisfaction result, model witness, countermodel, entailment status, validation diagnostics and confidence.
Safety: distinguish UNKNOWN from FALSE; never treat search timeout as proof; preserve explicit semantic assumptions.
Interoperability: first-order logic, knowledge graphs, ontology reasoning, SMT/SAT adapters with documented semantic translations.
END FLOW ALGEBRA