Skip to main content

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

1. ONTOLOGY
flow "QuantifierOntology" v1.0 {
  DOMAIN: first_order_logic;
  ENTITY: Quantifier;
  SUBTYPES: [UniversalQuantifier, ExistentialQuantifier];
  RELATED: [Predicate, Variable, Domain, Formula, Assignment, Scope, Model, TruthValue];
  SEMANTIC_EQUIVALENCE: {"for all": "∀", "there exists": "∃"};
}

2. TYPED ENTITIES
sort Domain = nonempty_set<Entity>;
sort Variable = Symbol;
sort Formula = WellFormedFormula;
sort Assignment = Map<Variable, Entity>;
sort Model = (Domain, Interpretation);
sort Quantifier = Universal | Existential;
relation BINDS(Quantifier, Variable, Formula);
relation HAS_SCOPE(Quantifier, Formula);
relation EVALUATED_IN(Formula, Model, Assignment);

3. FORMAL SEMANTICS
For model M with nonempty domain D and assignment s:
M,s ⊨ ∀x φ  iff  for every d ∈ D, M,s[x↦d] ⊨ φ.
M,s ⊨ ∃x φ  iff  for some d ∈ D, M,s[x↦d] ⊨ φ.
Free variables receive values from s; bound occurrences are governed by their quantifier.
Quantifier scope is syntactic and must be preserved by parsing.

4. AXIOMS AND EQUIVALENCES (CLASSICAL FIRST-ORDER LOGIC)
¬∀x φ  ⇔  ∃x ¬φ.
¬∃x φ  ⇔  ∀x ¬φ.
∀x(φ ∧ ψ)  ⇔  (∀x φ) ∧ (∀x ψ).
∃x(φ ∨ ψ)  ⇔  (∃x φ) ∨ (∃x ψ).
∀x φ ⇒ ∃x φ  (requires nonempty domain).
∀x φ ⇒ φ[t/x]  (t must be free for x in φ).
φ[t/x] ⇒ ∃x φ  (t must be free for x in φ).
Bound-variable renaming preserves meaning if capture is avoided.
Quantifier order generally matters: ∀x∃y R(x,y) does not imply ∃y∀x R(x,y).

5. EXECUTABLE INFERENCE FLOW
INPUT: formula F, model M, assignment s.
VALIDATE: well_formed(F) AND nonempty(domain(M)) AND well_typed(s).
NORMALISE: alpha_rename_bound_variables_avoiding_capture(F).
EVALUATE:
  atom -> interpret predicate under s;
  NOT/AND/OR/IMPLIES -> classical truth functions;
  FORALL(x,φ) -> ALL(EVALUATE(φ,M,s[x:=d]) FOR d IN domain(M));
  EXISTS(x,φ) -> ANY(EVALUATE(φ,M,s[x:=d]) FOR d IN domain(M)).
OUTPUT: truth value plus evidence/counterexample when a finite domain is enumerated.
NOTE: Enumeration is executable only for finite domains; infinite domains require a theorem prover, symbolic decision procedure, or sound proof certificate.

6. SEMANTIC DISTINCTIONS
Universal: every member of the domain satisfies a predicate.
Existential: at least one member satisfies a predicate; no uniqueness implied.
Unique existence ∃!x φ abbreviates ∃x(φ ∧ ∀y(φ[y/x] ⇒ y=x)), with capture-avoiding substitution.
Quantifier is not itself a truth value or an individual entity in the domain.
Quantified logical formulas are not automatically causal, empirical, or probabilistic claims.

7. VALIDATION
CHECK domain_nonempty;
CHECK variable_binding_and_scope;
CHECK capture_avoiding_substitution;
CHECK alpha_equivalence;
CHECK quantifier_negation_duality;
CHECK model_truth_consistency;
CHECK no_unlicensed_quantifier_swapping;
CHECK inference_soundness;

8. CONFIDENCE AND PROVENANCE
CONFIDENCE: 1.0 for standard definitions conditional on stated classical semantics;
SOURCE_ALIGNMENT_CONFIDENCE: unverified;
PROVENANCE: mathematical first-order logic formalisation;
UPDATE_MODEL: revision_on_semantic_or_source_change;
FLOW_HASH: SHA-256 of canonical UTF-8 flow body, computed at ingestion (not precomputed here).

9. AI_CONSUMPTION
mode: symbolic_reasoning;
inputs: [formula, domain, interpretation, variable_assignment];
outputs: [truth_value, proof_or_counterexample, validation_report];
requirements: [preserve_scope, preserve_types, avoid_variable_capture, distinguish_exists_from_forall, expose_assumptions];
restrictions: [do_not_assume_finite_domain, do_not_infer_unique_existence_from_existence];

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