Valuation-vector equidistribution count is false as stated (shared-definition form)
Provedinput_valuation_equidistribution_false_defmodIt is false that every positive valuation vector of length and total sum at most is realized by exactly odd residues . In symbols, the following counting assertion fails: for all such , , and ,
The true count is smaller by a factor of : a valuation vector pins down its input modulo one higher power of than the formula allows. Pinpointing this factor is a prerequisite for stating the distribution of Syracuse valuations (Tao's Proposition 1.9) correctly.
Formalization Note This is the shared-definition republication of input_valuation_equidistribution_false: the helpers are imported from Definitions.Def_syracuseValuation instead of being defined in the preamble, whose local definitions break verification. The statement is otherwise unchanged, including the classical decidability instance for the filter.
import Mathlib.Algebra.BigOperators.Group.Finset.Basic import Definitions.Def_syracuseValuation attribute [instance] Classical.propDecidable
theorem input_valuation_equidistribution_false_defmod :
¬ ∀ n₀ m : ℕ, 1 ≤ n₀ → ∀ ā : Fin n₀ → ℕ, (∀ j, 1 ≤ ā j) →
Finset.sum Finset.univ (fun j => ā j) ≤ m →
(Finset.filter (fun r => Odd r ∧ valVec n₀ r = ā) (Finset.range (2 ^ m))).card
= 2 ^ (m - Finset.sum Finset.univ (fun j => ā j)) := by sorry