Keyboard shortcuts

Press ← or → to navigate between chapters

Press ? to show this help

Press Esc to hide this help

Distinguished-Heap Recurrence Estimates

Abstract

A divisor-sensitive integer recurrence bounds the values associated with a distinguished heap.

Definition 1.1 (Coarse ceiling).

Formalization. D5/S3/Combinatorics/Games/DivisorNimBoundArithmetic.coarseBound (✓ std3).

Source. Repository-derived.

Commentary.

The coarse ceiling adds the quotients by successive powers of two and one unit for each depth.

Definition 1.2 (Divisor count).

Formalization. D5/S3/Combinatorics/Games/DivisorNimBoundArithmetic.oddDivisorCount (✓ std3).

Source. Repository-derived.

Commentary.

The divisor count is the cardinality of the positive-divisor set.

Definition 1.3 (Changed reference heap).

Formalization. D5/S3/Combinatorics/Games/DivisorNimBoundArithmetic.changedBound (✓ std3).

Source. Repository-derived.

Commentary.

The changed-reference ceiling accounts for the subtraction of a removal of lower valuation.

Definition 1.4 (Exceptional removals).

Formalization. D5/S3/Combinatorics/Games/DivisorNimBoundArithmetic.exceptionalCount (✓ std3).

Source. Repository-derived.

Commentary.

Below the distinguished valuation the divisor count controls exceptional removals; at that valuation the odd part controls them.

Definition 1.5 (Distinguished-heap recurrence).

Formalization. D5/S3/Combinatorics/Games/DivisorNimBoundArithmetic.recurrenceBound (✓ std3).

Source. Repository-derived.

Commentary.

At each depth take the largest previous ceiling and add the exceptional-removal count and one. A supremum over an empty set of natural numbers is zero.

Definition 1.6 (Terminal recurrence ceiling).

Formalization. D5/S3/Combinatorics/Games/DivisorNimBoundArithmetic.bound (✓ std3).

Source. Repository-derived.

Commentary.

The terminal ceiling is the recurrence evaluated at the distinguished valuation.

Theorem 1.7 (Increasing depth ceiling).

Proof. Machine-checked in Lean as D5/S3/Combinatorics/Games/DivisorNimBoundArithmetic.recurrenceBound_mono (✓ std3). ∎

Source. Repository-derived.

Commentary.

Each recurrence step contains its predecessor in the maximum and adds nonnegative quantities.

Theorem 1.8 (Divisor count ceiling).

Proof. Machine-checked in Lean as D5/S3/Combinatorics/Games/DivisorNimBoundArithmetic.oddDivisorCount_le (✓ std3). ∎

Source. Repository-derived.

Commentary.

Every positive divisor of u lies in the interval from one through u.

Theorem 1.9 (Finite valuation range).

Proof. Machine-checked in Lean as D5/S3/Combinatorics/Games/DivisorNimBoundArithmetic.finite_bound (✓ std3). ∎

Source. Repository-derived.

Commentary.

For valuations one through fifteen and positive odd parts at most the valuation, the ceiling is at most twice the heap, apart from the three odd-part-one exceptions.

Definition 1.10 (Triangular budget).

Formalization. D5/S3/Combinatorics/Games/DivisorNimBoundArithmetic.triangle (✓ std3).

Source. Repository-derived.

Commentary.

The triangular budget sums the coefficients of the exceptional-removal counts.

Theorem 1.11 (Doubled triangular budget).

Proof. Machine-checked in Lean as D5/S3/Combinatorics/Games/DivisorNimBoundArithmetic.triangle_twice (✓ std3). ∎

Source. Repository-derived.

Commentary.

The product of two consecutive natural numbers is even.

Theorem 1.12 (Exponential square estimate).

Proof. Machine-checked in Lean as D5/S3/Combinatorics/Games/DivisorNimBoundArithmetic.large_exponential_square (✓ std3). ∎

Source. Repository-derived.

Commentary.

After translating the valuation by sixteen, the consecutive-value comparison becomes a polynomial with nonnegative coefficients. Induction compares it with the doubling exponential.

Theorem 1.13 (Exponential linear estimate).

Proof. Machine-checked in Lean as D5/S3/Combinatorics/Games/DivisorNimBoundArithmetic.large_exponential_linear (✓ std3). ∎

Source. Repository-derived.

Commentary.

The same consecutive-value comparison bounds the quadratic budget by the doubling exponential.

Theorem 1.14 (Unrolled recurrence ceiling).

Proof. Machine-checked in Lean as D5/S3/Combinatorics/Games/DivisorNimBoundArithmetic.recurrence_le_budget (✓ std3). ∎

Source. Repository-derived.

Commentary.

A common ceiling for the initial value and every changed-reference ceiling leaves only the sum of recurrence increments.

Theorem 1.15 (Descending coefficient sum).

Proof. Machine-checked in Lean as D5/S3/Combinatorics/Games/DivisorNimBoundArithmetic.sum_descending (✓ std3). ∎

Source. Repository-derived.

Commentary.

Reflecting the summation interval identifies the descending sum with the triangular budget.

Theorem 1.16 (Total recurrence increments).

Proof. Machine-checked in Lean as D5/S3/Combinatorics/Games/DivisorNimBoundArithmetic.total_increment_le (✓ std3). ∎

Source. Repository-derived.

Commentary.

Bound the divisor count by the odd part and sum the resulting descending coefficients.

Theorem 1.17 (Lower-valuation gap).

Proof. Machine-checked in Lean as D5/S3/Combinatorics/Games/DivisorNimBoundArithmetic.large_gap (✓ std3). ∎

Source. Repository-derived.

Commentary.

The quotient and power-of-two terms have product twice the heap. The arithmetic mean-geometric mean inequality and the exponential square estimate supply the gap.

Theorem 1.18 (Changed ceiling with budget).

Proof. Machine-checked in Lean as D5/S3/Combinatorics/Games/DivisorNimBoundArithmetic.large_changedBound (✓ std3). ∎

Source. Repository-derived.

Commentary.

The gap pays for the whole recurrence budget and the lower-valuation additive terms.

Theorem 1.19 (Initial ceiling with budget).

Proof. Machine-checked in Lean as D5/S3/Combinatorics/Games/DivisorNimBoundArithmetic.large_initial (✓ std3). ∎

Source. Repository-derived.

Commentary.

The exponential linear estimate pays for the initial divisor count and the entire recurrence budget.

Theorem 1.20 (All large valuations).

Proof. Machine-checked in Lean as D5/S3/Combinatorics/Games/DivisorNimBoundArithmetic.large_bound (✓ std3). ∎

Source. Repository-derived.

Commentary.

Unroll the recurrence using the initial and changed-reference ceilings, then spend the triangular budget. Every valuation at least sixteen satisfies the twice-heap bound.

References