Histogram buckets for the native Chan–He node construction #
These bridges identify position counts with the existing set-based buckets. Injectivity is essential: two positions containing the same integer do not make that integer heavy. The proofs are original; no source machine semantics is used.
Main definitions #
residueKey: the unsigned Euclidean key already computed byCount.program.
Main results #
count_eq_card_bucket: histogram counts equal bucket cardinalities.mem_heavy_iff_count: the native count test recognizes the existing heavy subset.
References #
The ordinary unsigned remainder of an integer modulo a positive natural modulus.
Instances For
Interpreting a key as an integer recovers its Euclidean remainder.
Every key is a valid histogram address offset.
Filtering positions before taking their image gives exactly the existing bucket.
Injective input enumeration makes the native histogram a set-cardinality computation.
The count test in the native scan selects exactly ChanHe.heavy.
A singleton histogram bucket gives the exact set and hence its unique light value.
No two distinct positions can be light in the same bucket, even before injectivity is used.
Residue equality is unchanged by simultaneous negation.
A histogram built on original residues also classifies the negated third set exactly.