Documentation

LeanPool.GKPCarry.GKPCharacterization

A regular-language characterization of the GKP conjecture #

For every n, the deficient-carry automaton on the canonical ternary digits of n accepts exactly when 9 does not divide Nat.centralBinom n. Combining this exact local characterization with the binary reduction yields an equivalence between the Graham--Knuth--Patashnik conjecture and avoidance of an explicit regular language by nonexceptional powers of two.

This equivalence is a reduction of the open conjecture, not a proof of it.

Divisibility by nine is exactly the condition that ternary doubling creates at least two carries.

The automaton accepts the canonical ternary expansion of n exactly when 9 does not divide its central binomial coefficient.

The remaining language-avoidance statement for nonexceptional powers of two. This proposition is open.

Equations
Instances For
    theorem GKPCarry.gkpBadCarryLanguageExclusion_iff_shape_exclusions :
    gkpBadCarryLanguageExclusion (∀ (k : ), 2 < kk 6k 8¬badCarryAllZeroOrOne (Nat.digits 3 (2 ^ k))) (∀ (k : ), 2 < kk 6k 8¬badCarryExactlyOneTopTwo (Nat.digits 3 (2 ^ k))) ∀ (k : ), 2 < kk 6k 8¬badCarryExactlyOneTwoFollowedByZero (Nat.digits 3 (2 ^ k))

    The language-avoidance statement is equivalent to excluding each of the three concrete deficient-carry shapes.

    GKP implies avoidance of the deficient-carry language.

    Avoidance of the deficient-carry language implies GKP.

    Headline theorem: the GKP conjecture is equivalent to avoidance of the explicit deficient-carry regular language by nonexceptional powers of two.

    The GKP exclusion would imply the tail of Erdős Problem 406: powers of two above 2 ^ 8 cannot have ternary expansions using only 0 and 1.