Alphabeta Math
LemmaStatement: AI-adaptedProof: AI-generatedPipeline-generatedjudge pass (gpt-5.6-terra)audited 2026-09-07
How statement and proof provenance work

The first chip identifies the source of the statement or construction; the second identifies the source of its local proof or verification.

  • Literature-sourced: the exact statement appears in a cited source; only wording and notation differ.
  • AI-adapted: a semantically identical restatement of literature-sourced material, modulo indexing, notation, and boundary cases adopted by the library.
  • AI-generated: a genuinely novel statement formulated by AI, with no source for the claim itself.

These labels describe origin, not correctness: citations and verification chips remain separate evidence.

Term substitution commutes with evaluation

Statement

For any terms u,t, variable x, structure M and assignment s, put b=ts. Then u[t/x]s=us[x:=b].

Facts & Assumptions

Given: Work in ZF unless the statement explicitly weakens or supplements it; fix the objects and hypotheses of the statement.

[F1]

For an L-structure M and assignment sMω, define vis=s(i), cs=cM and f(t1,,tn)s=fM(t1s,,tns). This is a simultaneous definition for all assignments: recurse on terms into the set M(Mω) of functions from assignments to M. Variable leaves are projections, constant leaves are constant maps, and each function operation acts pointwise. Structural recursion gives a unique evaluation. The operations are total because the interpreted functions are total. Superscripts M on brackets will distinguish structures when needed. Conventions and prerequisites: def-set-structures-and-variable-assignments, thm-structural-recursion-on-set-coded-syntax. (Term denotation)

[F2]

An occurrence is a token position in the parsed finite word. A variable occurrence is free when it is in a term field and no ancestor quantifier binds that variable. The variable field of a quantifier is a binder, not a free occurrence. Write FV(e) for the finite set of variables with free occurrences in e, and Var(e) for all variables appearing anywhere. A sentence is a formula with empty FV. The recursive rules are FV(v)={v}, FV(c)=, union over the arguments for function and atomic relation/equality expressions, unchanged under negation, union for conjunction, and FV(yψ)=FV(ψ){y}. Structural recursion justifies these set-valued definitions, with targets P(ω) after identifying variables with their indices. Raw substitution e[t/x] replaces just the free occurrences of variable x by term t. On terms it replaces x by t, keeps other variables and constants, and acts on each argument. It commutes with atoms and Boolean constructors. At yψ it leaves the whole expression unchanged if y=x; otherwise it gives y(ψ[t/x]). The term t is free for x in e if, at every replaced occurrence, the path to the root crosses no binder for a member of FV(t). Thus at yψ with yx and xFV(ψ) it requires both yFV(t) and that t be free for x in ψ. If no free x occurs, the condition is vacuous. Simultaneous substitution replaces the original free occurrences once; it does not perform substitutions inside inserted terms. It need not equal sequential substitution. Conventions and prerequisites: thm-structural-recursion-on-set-coded-syntax. (Free variables and free-for substitution)

Proof

1.1

If u=x, both sides equal b. If u is another variable, the update leaves its value unchanged. If u is a constant, both sides are its interpretation. These cover all leaves, including when t itself contains x.

F1F2
2.1

At u=f(u1,,un), substitution acts on its arguments. The induction hypothesis identifies every argument value on the two sides, and applying the same total function fM gives the displayed equality. Constructor induction completes the proof.

F1F2step 1.1

Depends on

Used by

Dependency tree · two levels

4 results within two dependency steps of this one, each drawn at its shortest distance from it. An arrow runs from a result to what uses it, so the chart reads left to right and ends at this result, which carries a heavier outline. Every node is a link to that result. Click elsewhere on the chart to enlarge it.

Sources