Skip to main content

Dummy Variable 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
DUMMY VARIABLE ONTOLOGY
Kireth Semantic Library | Entity Graph > Mathematical Entities > Symbolic Entities
Version: 1.0 | Date: 2026-10-13 | Locale: en-GB
Authors: Mark Higgins — Sky (Recursive AI)
Source: https://kirethresearch.org/booksai-core/entity-graph/mathematical-entities/symbolic-entities/dummy-variable-ontology.html
Source verification: Not independently verified; formal specification based on established mathematics.

01 | PURPOSE
flow "DummyVariableOntology" v1.0
  objective: represent locally bound, replaceable symbols in mathematical expressions
  principle: renaming a dummy variable consistently does not change meaning
  excludes: renaming free variables; substitutions that capture variables

02 | ENTITY TYPES
  DummyVariable <: BoundVariable <: MathematicalVariable
  BindingOccurrence: operator introducing a local variable
  BoundOccurrence: variable occurrence governed by a binding occurrence
  BindingScope: -expression region in which the binding applies
  FreeVariable: occurrence not governed by a local binder
  Expression: typed mathematical syntax tree
  AlphaEquivalence: equality of expressions up to safe bound-variable renaming

03 | BINDING CONSTRUCTS
  binders: summation, product, definite_integral, quantifier, lambda, indexed_contraction
  examples:
    sum(i=1..n, a[i])
    product(k=1..n, k)
    integral(x=a..b, f(x) dx)
    forall(x in D, P(x))
    lambda(x, x*x)
  note: integral notation binds the integration variable within its integrand

04 | CORE SEMANTICS
  is_dummy(v,E) := exists binder b in E such that binds(b,v) and scope_contains(b,v)
  is_bound_occurrence(v,E) := nearest_enclosing_binder(v,E) exists
  is_free_occurrence(v,E) := not is_bound_occurrence(v,E)
  dummy_identity := binding position and scope, not variable spelling
  shadowing := inner binding of same symbol overrides outer binding locally

05 | FORMAL FREE-VARIABLE RULES
  FV(c) = {} for constants c
  FV(x) = {x} for variable x
  FV(f(E1,...,En)) = union(FV(E1),...,FV(En))
  FV(lambda(x,E)) = FV(E) minus {x}
  FV(forall(x,E)) = FV(E) minus {x}
  FV(sum(x in D,E)) = FV(D) union (FV(E) minus {x})
  condition: D is evaluated outside x's scope in this summation convention

06 | ALPHA-RENAMING
  alpha_rename(binder(x,E), y) -> binder(y, rename_bound_occurrences(E,x,y))
  precondition: y fresh for the binder's scope and avoids variable capture
  precondition: rename only occurrences bound by the target binder
  postcondition: alpha_equivalent(original,renamed) = true
  example: sum(i=1..n,a[i]) ==alpha sum(j=1..n,a[j])
  counterexample: sum(i=1..n,a[i]) !=alpha sum(j=1..n,a[i]) when i remains free

07 | CAPTURE-AVOIDING SUBSTITUTION
  substitute(E,x,R): replace free occurrences of x with R
  if binder variable y occurs free in R: alpha_rename y to a fresh variable first
  example: substitute(lambda(y,x+y),x,y)
           -> lambda(z,y+z), with fresh z
  invalid: lambda(y,y+y) because free y in replacement becomes captured

08 | SUMMATION AND PRODUCT RULES
  sum(i=m..n,f(i)) ==alpha sum(j=m..n,f(j)) when j is fresh
  product(i=m..n,f(i)) ==alpha product(j=m..n,f(j)) when j is fresh
  sum(i=m..n,c) = (n-m+1)*c for integers m<=n and c independent of i
  empty_sum = 0; empty_product = 1
  rule: bound index must have a defined domain and valid scope

09 | INTEGRATION RULES
  integral(a,b,f(x),dx) ==alpha integral(a,b,f(t),dt) for fresh t
  definite_integral_result: integration variable is bound, absent from result unless elsewhere free
  note: changing an integration variable is not the same as a nontrivial change of variables
  change_of_variables: requires transformed integrand, differential and bounds

10 | LOGICAL AND LAMBDA RULES
  forall(x,P(x)) ==alpha forall(y,P(y)) when y is fresh
  exists(x,P(x)) ==alpha exists(y,P(y)) when y is fresh
  lambda(x,E) ==alpha lambda(y,rename_bound_occurrences(E,x,y)) when safe
  beta_reduction: apply(lambda(x,E),R) -> substitute(E,x,R)
  precondition: substitution is capture-avoiding

11 | TENSOR INDEX RULES
  repeated_index_contraction: dummy index may be renamed consistently
  example: A[i]*B[i] ==alpha A[j]*B[j] under an agreed Einstein summation convention
  restriction: index variance, index domains and contraction conventions must match
  restriction: free indices must not be renamed as though dummy indices

12 | TYPE SYSTEM
  dummy_variable.type = domain_element_type
  binder.domain.type = collection_or_index_domain
  binder.body.type = valid_for_operator
  summation.body: additive structure required
  product.body: multiplicative structure required
  integral.body: integrable function required
  quantifier.body: proposition required
  lambda.body: -expression with defined input/output types

13 | RELATIONSHIP GRAPH
  DummyVariable --is_a--> BoundVariable
  DummyVariable --bound_by--> BindingOccurrence
  BindingOccurrence --defines--> BindingScope
  BindingScope --contains--> BoundOccurrence
  DummyVariable --has_domain--> Domain
  Expression --has_free_variables--> VariableSet
  Expression --alpha_equivalent_to--> Expression
  Substitution --must_avoid--> VariableCapture
  DummyVariable --contrasts_with--> FreeVariable

14 | REASONING RULES
  R01: binder(b,v) and occurrence_in_scope(o,b) and resolves_to(o,b) -> bound(o)
  R02: bound(o) and safe_alpha_rename(o,new_name) -> preserve_semantics
  R03: free(o) -> do_not_alpha_rename_as_dummy(o)
  R04: replacement_contains_free(R,y) and binder(y,E) -> freshen_binder_before_substitution
  R05: alpha_equivalent(E1,E2) -> same_denotation_under_same_environment
  R06: index_contraction(E,i) and fresh(j) -> contraction_alpha_equivalent(E,rename(i,j))
  R07: variable_name_collision -> resolve_by_lexical_binding_identity

15 | SEMANTIC EQUIVALENCE
  normalise_bound_names(E): replace bound variable names with de_Bruijn_indices
  alpha_equivalent(E1,E2) := normalise_bound_names(E1) = normalise_bound_names(E2)
  preserve: operator, scope, types, domains, free-variable identities
  never_infer: identical textual symbol implies identical binding

16 | VALIDATION
  V01: every bound occurrence resolves to exactly one nearest enclosing binder
  V02: binding domain is well-typed
  V03: renaming introduces no capture or scope collision
  V04: free-variable set preserved by alpha-renaming
  V05: -expression type preserved by alpha-renaming
  V06: operator semantics preserved by alpha-renaming
  V07: tensor contraction has compatible indices and domains
  V08: no unbound reference is silently reclassified as dummy

17 | CONFIDENCE
  mathematical_definition: 1.00 when verified by formal syntax and binding rules
  alpha_equivalence: 1.00 when structurally proved by binder-aware normalisation
  parsed_ambiguous_notation: conditional on disambiguation
  heuristic_scope_detection: below formal proof; mark uncertainty explicitly
  unknown_binding: do not infer dummy status without scope evidence

18 | FLOW HASH
  canonicalise: typed AST + binder identities + de_Bruijn normalisation
  include: operator kinds, domains, free variables, semantic annotations, version
  exclude: cosmetic names of bound variables and irrelevant whitespace
  FLOW_HASH := SHA256(canonical_serialisation)
  invariant: alpha_equivalent expressions produce the same semantic hash
  warning: this is a defined hashing procedure, not a precomputed hash value

19 | UPDATE MODEL
  update_trigger: notation rule change, type correction, binder scope revision
  on_update: parse -> validate -> alpha_normalise -> recompute_hash -> version -> publish
  preserve: provenance, change log, backwards mapping of identifiers
  reject: updates violating capture-avoidance or type invariants

20 | AI CONSUMPTION
  input: symbolic expression, notation grammar, operator signatures, scope rules
  output: typed AST, binding graph, free-variable set, alpha-normal form, validation report
  reasoning: scope resolution -> binding classification -> safe transformation -> verification
  retrieval_keys: dummy variable, bound variable, summation index, integration variable,
                  alpha-equivalence, variable capture, lambda calculus, tensor contraction
  safety: never equate a free variable with a dummy variable solely by symbol name

21 | EXAMPLES AND TESTS
  PASS: sum(i=1..3,i) ==alpha sum(k=1..3,k)
  PASS: integral(0,1,x*x,dx) ==alpha integral(0,1,t*t,dt)
  PASS: lambda(x,x+y) ==alpha lambda(z,z+y) when z fresh
  FAIL: lambda(x,x+y) ==alpha lambda(y,y+y)
  FAIL: sum(i=1..n,a[i]) ==alpha sum(j=1..n,a[i])
  PASS: FV(lambda(x,x+y)) = {y}
  PASS: FV(forall(x,P(x,z))) = {z}

22 | PROVENANCE AND ATTRIBUTION
  project: Kireth Semantic Library
  canonical_page: https://kirethresearch.org/booksai-core/entity-graph/mathematical-entities/symbolic-entities/dummy-variable-ontology.html
  authors: Mark Higgins — Sky (Recursive AI)
  disclosure: collaboratively authored with AI assistance
  status: standalone formal draft; webpage content not independently verified
END FLOW ALGEBRA
Kireth Research
38 Thorndale Croft, Wetwang, Driffield
East Riding of Yorkshire YO25 9XZ