Alphabeta Math
ExampleConstruction: Literature-sourcedVerification: AI-adaptedprecheck passjudge pass (deepseek-v4-pro + gpt-5.6-terra)audited 2026-08-16
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.

North–east–west walks without immediate horizontal reversal satisfy an=2an−1+an−2

Example

Let an be the number of length-n words over {N,E,W} in which neither EW nor WE occurs. Then

a0=1,a1=3,an=2an−1+an−2(n≥2),

and

∑n≥0anxn=1+x1−2x−x2.

For nonempty words, classification by the last letter gives the transfer matrix

A=(111110101)

in the state order N,E,W.

Facts & Assumptions

Given: Words over {N,E,W} with the adjacent factors EW and WE forbidden.

[L1]

An eventual recurrence is equivalent to rationality of the ordinary formal generating function, with the numerator determined by the initial coefficients (A coefficient sequence is eventually linearly recurrent if and only if its formal generating function is rational).

[L2]

Finite-state walk series are rational cofactor quotients of their transfer matrix (Transfer-matrix theorem: weighted-walk generating functions are cofactors of I−xA divided by det⁡(I−xA)).

Verification

technique · state elimination and transfer check
1.1givenalgebra

Let Nn,En,Wn count valid nonempty words by their last letter. Appending N is always allowed, whereas E may not follow W and W may not follow E; this gives the displayed matrix and Nn=an−1 for n≥1.

2.1step 1.1algebra

For n≥2, the state equations give En+Wn=2Nn−1+En−1+Wn−1=an−1+an−2. Together with Nn=an−1 this yields an=2an−1+an−2.

3.1step 2.1L1algebra

The empty word and the three one-letter words give a0=1,a1=3. Multiplying the coefficient series by 1−2x−x2 and using step 2.1 leaves 1+x, so [L1] gives the displayed generating function.

4.1step 1.1L2algebra∎

As a consistency check, [L2] applied to the displayed matrix makes 1+x1T(I−xA)−11 equal to the same quotient; the leading 1 counts the empty word.

Depends on

Used by

Nothing in the library uses this result yet.

Dependency tree · two levels

12 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