Skip to main content

Placeholder Ontology

Symbolic Entities
Authors: MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: 13 October 2026
Audio Overview
FLOW ALGEBRA
PLACEHOLDER ONTOLOGY
Kireth Semantic Library | Mathematical Entities > Symbolic Entities
Source: https://kirethresearch.org/booksai-core/entity-graph/mathematical-entities/symbolic-entities/placeholder-ontology.html
Authors: Mark Higgins — Sky (Recursive AI)
Status: Domain-grounded draft; source page not independently verified.
Version: 1.0 | Date: 2026-10-13

01. PURPOSE
flow "PlaceholderOntology" v1.0
purpose: Represent symbolic positions awaiting a value, term, expression, or structural replacement without confusing a placeholder with the object that fills it.

02. CORE ENTITY
entity Placeholder:
  id: URI
  label: string
  glyph: string?
  context: -Expression | Template | Formula | Pattern | Program
  expected_type: Type?
  expected_domain: Set?
  role: PlaceholderRole
  binding_state: unbound | bound | resolved
  scope: Scope
  constraints: Constraint[]
  replacement: Entity?
  provenance: Provenance

03. CLASSIFICATION
PlaceholderRole := positional | named | typed | anonymous | wildcard | metavariable | template_slot | missing_term
classification:
  positional: replacement selected by position
  named: replacement selected by identifier
  typed: replacement must satisfy expected_type
  anonymous: no persistent identity implied
  wildcard: matches a term under pattern rules
  metavariable: ranges over expressions or syntactic objects
  template_slot: awaits instantiation in a reusable structure
  missing_term: marks intentionally incomplete mathematical syntax

04. DISTINCTIONS
rule: Placeholder != Variable by default
rule: Placeholder != UnknownValue by default
rule: Placeholder != NullValue
rule: Placeholder != Zero
rule: Placeholder != MissingObservation
note: A placeholder can later bind to a variable, unknown, null, or zero if permitted by its constraints.
note: Wildcards, blanks, and underscores have context-specific meanings; glyph alone does not determine semantics.

05. TYPE SYSTEM
TypeCheck(p, x) := expected_type(p) absent OR type(x) conforms_to expected_type(p)
DomainCheck(p, x) := expected_domain(p) absent OR x in expected_domain(p)
ConstraintCheck(p, x) := all constraints(p) satisfied by x
ValidReplacement(p, x) := TypeCheck(p,x) AND DomainCheck(p,x) AND ConstraintCheck(p,x)

06. BINDING
bind(p,x):
  pre: state(p) = unbound AND ValidReplacement(p,x)
  post: replacement(p) = x AND state(p) = bound
resolve(p):
  pre: state(p) = bound
  post: state(p) = resolved
reject(p,x):
  when: NOT ValidReplacement(p,x)
  result: validation_error

07. SUBSTITUTION
Substitute(E,p,x) := replace designated occurrences of p in E with x
preconditions:
  - p belongs to E's placeholder environment
  - ValidReplacement(p,x)
  - replacement is capture-avoiding when binders are present
postconditions:
  - non-target subexpressions remain unchanged
  - result is well-formed under E's grammar

08. EXAMPLES
example_1:
  template: "a + [slot]"
  placeholder: slot
  expected_type: Number
  replacement: 3
  result: "a + 3"
example_2:
  template: "f([argument])"
  placeholder: argument
  expected_type: -Expression
  replacement: "x^2"
  result: "f(x^2)"
example_3:
  pattern: "[left] + 0"
  rewrite: "[left]"
  condition: addition defined for matched term

09. IDENTITY AND SCOPE
Identity(p1,p2) := same declared identifier AND same scope AND same placeholder environment
rule: Repeated named placeholders may require consistent replacement.
rule: Distinct anonymous placeholders do not automatically share a binding.
rule: Alpha-renaming of local placeholder identifiers preserves template meaning if references are updated consistently.

10. SEMANTIC RELATIONSHIPS
Placeholder --isA--> SymbolicEntity
Placeholder --occupies--> ExpressionPosition
Placeholder --hasExpectedType--> Type
Placeholder --hasDomain--> Set
Placeholder --hasConstraint--> Constraint
Placeholder --hasScope--> Scope
Placeholder --isBoundTo--> ReplacementEntity
Placeholder --isInstantiatedIn--> Expression
Placeholder --isResolvedBy--> Substitution
Placeholder --mayMatch--> PatternTerm

11. KNOWLEDGE GRAPH
node_types: [Placeholder, SymbolicEntity, Expression, Pattern, Scope, Type, Set, Constraint, Binding, Provenance]
edge_types: [isA, occupies, hasExpectedType, hasDomain, hasConstraint, hasScope, isBoundTo, isInstantiatedIn, isResolvedBy, mayMatch]
identity_policy: use scoped IDs, not glyph-only equality

12. INFERENCE RULES
IF isPlaceholder(p) AND ValidReplacement(p,x) THEN mayBind(p,x)
IF boundTo(p,x) AND ValidReplacement(p,x) THEN substitutionPermitted(p,x)
IF expectedType(p,T) AND NOT conformsTo(type(x),T) THEN invalidBinding(p,x)
IF scope(p,S1) AND scope(q,S2) AND S1 != S2 THEN doNotInferIdentity(p,q)
IF resolved(p) THEN replacement(p) must_exist

13. SEMANTIC EQUIVALENCE
EquivalentTemplates(A,B) := alpha_equivalent_scoped_placeholders(A,B) AND structurally_equivalent(A,B)
EquivalentInstantiation(A,B) := same interpreted expression after valid bindings
warning: visual equality of placeholder symbols does not imply semantic equivalence.

14. VALIDATION
validate:
  - unique scoped placeholder identifiers
  - explicit expected type when required by host grammar
  - no invalid or ambiguous replacement
  - no unintended variable capture
  - consistent repeated named bindings
  - provenance attached to external replacements
  - resolved placeholders contain a valid replacement
  - distinguish unbound placeholder from literal zero and missing data

15. CONFIDENCE
confidence:
  mathematical_rules: high
  inferred_placeholder_role: context_dependent
  ambiguous_glyph: low_until_disambiguated
  external_mapping: evidence_dependent

16. FLOW HASH
FLOW_HASH:
  algorithm: SHA-256
  input: canonical_serialisation(ontology_version, entity_ids, types, constraints, bindings, rules)
  exclude: volatile timestamps and display-only formatting
  note: Compute digest at deployment; no digest is claimed here.

17. UPDATE MODEL
UPDATE_MODEL:
  trigger: [new_placeholder_type, revised_constraint, changed_binding, corrected_scope, revised_semantic_mapping]
  actions: [validate, version, recompute_hash, preserve_provenance, invalidate_dependent_inferences]
  policy: preserve prior versions for auditability

18. AI CONSUMPTION
AI_CONSUMPTION:
  parse: distinguish placeholder token from ordinary variable and literal
  interpret: resolve role using grammar, context, and scope
  reason: apply typed binding and capture-avoiding substitution
  output: include resolved expression or explicit unresolved state
  safety: never silently fabricate missing values
  trace: record replacement source, constraints, and validation outcome

19. EXECUTION PIPELINE
INPUT expression_or_template
 -> PARSE syntax
 -> IDENTIFY placeholder occurrences
 -> ASSIGN scoped identities and roles
 -> INFER expected types and constraints
 -> VALIDATE candidate bindings
 -> APPLY capture-avoiding substitution
 -> CHECK resulting expression
 -> EMIT result with provenance and confidence

20. FAILURE CONDITIONS
failure: type_mismatch | domain_violation | constraint_violation | scope_collision | variable_capture | inconsistent_binding | unresolved_required_slot | malformed_expression
handling: return explicit error with affected placeholder and rule

21. OUTPUT CONTRACT
output:
  ontology: PlaceholderOntology
  version: 1.0
  original_expression: -Expression
  placeholders: Placeholder[]
  bindings: Binding[]
  resulting_expression: -Expression?
  unresolved: Placeholder[]
  validation: pass | fail
  confidence: decimal_in_0_to_1
  provenance: Provenance[]
  flow_hash: sha256_digest_when_computed

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