Many classical facts about Fibonacci-like numbers are proved by double counting. You draw a strip of squares and dominoes, cut it at some position, and count the tilings two ways: once as a whole, and once by asking whether a domino crosses the cut. This proposal treats a strip with an exposed cut edge as an open program, meaning a program fragment that still has to interact with an unknown environment. The question "does a domino cross here?" becomes a message exchanged with that environment, and gluing two strips becomes composing two programs. Game semantics is the part of programming-language theory that models open programs as dialogues between the program and its environment and compiles those dialogues into automata. It supplies two things this picture needs. The first is a guarantee that equivalence of open pieces is preserved by any surrounding context. The second is decision procedures that check equivalence and return a concrete separating counterexample when it fails.
The payoff is a machine that does more than check that an identity is true, which computer algebra already does. Given a conjectured identity about Fibonacci, Lucas, Gibonacci (any sequence obeying $G_n = G_{n-1}+G_{n-2}$) or Horadam numbers (sequences obeying $H_n = pH_{n-1}+qH_{n-2}$ from arbitrary starting values $a, b$), it would produce a combinatorial proof: a chain of local replacements of one open board piece by an equivalent piece, each checked automatically. If the conjecture is false, it returns the smallest tiling configuration on which the two sides disagree. The method needs no closed form, so it should work in the cases where current hand methods stop: higher-order recurrences and the degenerate case where the characteristic polynomial has a repeated root.
Core Claim
The double-counting arguments of Some new and old Gibonacci identities and A family of lacunary recurrences for Lucas Numbers are compositions of open strategies in a weighted game semantics. The grammatical calculus of A Grammatical Interpretation of Horadam Sequences and Deriving Binomial Convolution Formulas for Horadam Sequences via Context-Free Grammars is the same structure written algebraically.
Concretely, an open board with a boundary interface compiles to a weighted automaton, which is a finite-state machine whose transitions carry numbers instead of probabilities. Its alphabet is tile letters, and the weights are polynomials in the parameters $p, q, a, b$. Its meaning is
$$ [\![A]\!](w) = \alpha^{\top} M_{w_1} M_{w_2} \cdots M_{w_k}\, \beta . $$
Here $\alpha$ and $\beta$ are the initial and final weight vectors, which encode the boundary conditions (marked squares, colours, seam phases). $M_t$ is the transition matrix for tile letter $t$, and $w = w_1\cdots w_k$ is a word over the tile letters.
Identities with several free indices become equivalences over several letters. For example, $G_N G_{n-N} + G_{N-1}G_{n-N-1} = G_1G_{n-1}+G_0G_{n-2}$ is an equivalence of two automata on the words $a^N b^{n-N}$, where letter $a$ marks squares before the cut and $b$ after it. Binomial convolutions $\sum_i \binom{n}{i}H_iH_{n-i}$ are the shuffle product of two automata. Shuffle product is exactly the Leibniz rule that the grammar papers apply by hand. A circular board, or "bracelet", is the trace (feedback) of an open board, and the in-phase versus out-of-phase seam states are interface states.
Because this weighted semantics generalizes the fully abstract probabilistic semantics of Algorithmic probabilistic game semantics - Playing games with automata, equivalence of open pieces is a congruence: an equivalent piece can be substituted anywhere. That property is what turns local checks into a proof.
Three things would be new. First, a proof object, namely a sequence of checked local substitutions, rather than a yes/no verdict. Second, a separation between identities that hold word by word, which have an immediate bijective proof, and those that hold only after summing over words, where a bijection must be found or cancellation is essential. Third, uniform treatment of third- and higher-order recurrences, which need wider interfaces, and of the discriminant-zero case $p^2+4q=0$. That case is excluded from the auxiliary-polynomial construction in Deriving Binomial Convolution Formulas for Horadam Sequences via Context-Free Grammars, but it is harmless here because equivalence checking never diagonalizes the transition matrix.
Research Program
Step 1: a small typed language of boards. The base pieces are tiles, marked squares, coloured dominoes carrying parameter weights, and interfaces typed by width. A width-one interface carries a single bit, "does a domino straddle this edge?". A $k$-th order recurrence needs width $k-1$. The language has three operations: gluing, which is strategy composition with the interface moves hidden; trace, which produces bracelets; and shuffle. Each piece compiles compositionally to a weighted automaton. The compilation reuses the state-reduction steps that APEX: An Analyzer for Open Probabilistic Programs applies during construction, namely reachability pruning, merging of states that differ only in dead variables, lumping (merging bisimilar states), and early removal of silent internal steps. Probabilities are replaced by elements of a polynomial ring.
Step 2: equivalence and counterexamples. Equivalence is checked with the randomized identity-testing method of Language Equivalence for Probabilistic Automata. That method encodes all word weights as one polynomial, evaluates it at random points (sound with high probability by the Schwartz–Zippel lemma), and runs in time proportional to states times nonzero transitions. Two modifications are planned. The parameters $p, q, a, b$ are drawn at random alongside the word variables, so a single test covers all parameter values. All arithmetic is exact modulo a large prime. This sidesteps the floating-point fragility that the same paper flags for deep automata, and our integer weights make the move free. When the test fails, the counterexample procedure from that paper returns a separating word, here a specific tiling. The minimal-weight extraction of On the Complexity of the Equivalence Problem for Probabilistic Automata makes that tiling short.
Step 3: proof search. Given the two sides as board expressions, the system searches for a chain of rewrites. Each rewrite replaces an open sub-board by one that the equivalence checker certifies. Rewrites are restricted to small interfaces, so every certificate is a small automaton. If the two closed boards agree only after summing over words, the system attempts to build a length-preserving bijection between the two tile languages as a finite-state letter-to-letter relabeling. Failing that, it reports that the identity is "count-equivalent only". That report is itself a classification nobody has computed for these identity families.
Step 4: the open problems. The machinery is then aimed at the open problems listed in the source papers. These are third-order (tribonacci-type) analogues of the Gibonacci double-counting identities, lacunary bracelet identities for arbitrary Gibonacci seeds, and convolutions at $\Delta=0$.
Baselines
The naive reference point is numerical spot checking: evaluate both sides for $n \le K$ and random integer parameters. It costs almost nothing, catches most false conjectures, and produces neither a proof nor an explanation. It will be run with the same random parameter draws and the same wall-clock budget as our system, with $K$ chosen to exhaust that budget.
The strongest verification competitor is symbolic algebra: closed-form substitution plus the standard fact that a polynomial identity in terms of a linear recurrence is itself a linear recurrence, so finitely many initial terms suffice. This is the competitor that matters, because it decides truth for every fixed-shift identity in our corpus. It gets the same corpus and the same time limit. We do not expect to beat it on truth. Beating it means producing machine-checked combinatorial proofs on a substantial fraction of the true identities, which it never does, and handling the $\Delta=0$ and third-order cases without special-casing. No reported result was found on Lacuna for automated verification of Gibonacci or Horadam identities; all four sequence papers are purely theoretical.
The strongest competitor for the equivalence engine itself is the deterministic QR-based linear-algebra checker described in Language Equivalence for Probabilistic Automata. That paper reports about 4 seconds for randomized identity testing against 93 seconds for the deterministic checker on Herman's protocol with $N=15$, and deterministic timeouts after 10 minutes on the Grade protocol. We will run both engines on our board automata with identical compilation and reductions. Beating it means preserving a speedup of roughly that order as interface width and number of index letters grow.
Two ablations isolate the key ingredient, compositional substitution. The first compiles and compares only whole closed boards, never open pieces, which is essentially a transfer-matrix check. It measures what congruence buys in proof size and automaton size. The second compares counts only, not word weights, and tests whether the word-level versus count-level classification carries real information.
Why not just…?
Why not just verify identities with a computer algebra system? For truth alone this alternative wins, and we concede it. Reproducing truth checks is not the proposal. The proposal targets proof objects and diagnostics, which induction and closed forms do not give. The grammar papers motivate this explicitly by contrasting structural derivations with mere verification. The experiment that settles whether the distinction matters is the proof-yield measurement below. If almost no identities in the corpus admit short compositional proofs, the extra machinery is not justified and we will say so.
Why not just use transfer matrices directly, without game semantics? This is the closest real threat. The weighted automaton of a closed board is a transfer matrix. Game semantics contributes the typed open interface, the guarantee that equivalent open pieces may be swapped in any context, and the separating-context counterexamples. The closed-board ablation measures whether those matter. If proofs found without open pieces are no longer and the automata no larger, the honest conclusion is that transfer matrices suffice and the game-semantic layer is presentation.
Why not just extend the grammar calculus by hand? The derivations in A Grammatical Interpretation of Horadam Sequences are elegant but manual. Their convolution extension needs basis polynomials that do not exist at $\Delta=0$. Our encoding reproduces the formal derivative as one-step board extension and the Leibniz rule as shuffle, so every grammar identity in those papers should be re-derivable mechanically. If one is not, that failure is a concrete limitation of our encoding.
Why not just run an existing equivalence checker such as HOMER or HECTOR? Homer: A Higher-Order Observational Equivalence Model checkER and Hector: An Equivalence Checker for a Higher-Order Fragment of ML compile to pushdown automata with yes/no observations over small finite data. HOMER already fails on sorting beyond array size 15. Counting needs weights, and parametric counting needs symbolic weights. The probabilistic line of work is the right starting point, and the higher-order machinery of these tools is unnecessary for boards.
Proposed Experiments
The corpus is every identity stated in the four sequence papers. That includes the Gibonacci double-counting identities, the lacunary Lucas family, the Horadam addition and Cassini-type theorems, and the binomial convolutions for Pell, Pell–Lucas, Fermat and Fermat–Lucas numbers. Each is written as a pair of board expressions. A mutated corpus adds shifted indices, swapped seeds, wrong signs and wrong boundary squares, giving ground truth for false conjectures.
Four quantities are measured. The first is proof yield: the fraction of true identities with an automatic compositional proof, and how proof length compares with the published hand arguments. The second is the split of true identities into word-level and count-only. The third is detection rate and minimal counterexample length on the mutated corpus, compared with numerical spot checking at equal budget. The fourth is runtime as interface width and the number of index letters grow, for the randomized and deterministic engines.
Two decisive checks frame the outcome. First, the system must re-derive Mahanta's identity $G_N G_{n-N} + G_{N-1}G_{n-N-1} = G_1G_{n-1}+G_0G_{n-2}$ with a proof whose single substitution step is the midpoint cut. Second, it must produce at least one proved identity in the regimes the source papers leave open, either a third-order double-counting identity or a $\Delta=0$ convolution. If the first fails, the encoding is wrong. If the second fails while the closed-board ablation matches the full system everywhere, the game-semantic contribution is not real.
References
- Some new and old Gibonacci identities
- A family of lacunary recurrences for Lucas Numbers
- A Grammatical Interpretation of Horadam Sequences
- Deriving Binomial Convolution Formulas for Horadam Sequences via Context-Free Grammars
- Algorithmic probabilistic game semantics - Playing games with automata
- APEX: An Analyzer for Open Probabilistic Programs
- Language Equivalence for Probabilistic Automata
- On the Complexity of the Equivalence Problem for Probabilistic Automata
- Homer: A Higher-Order Observational Equivalence Model checkER
- Hector: An Equivalence Checker for a Higher-Order Fragment of ML