research/lab/py/pascal-shear
0 directories and 3 files in research/lab/py/pascal-shear.
pascal-shear
- The level-
levelcell set of the 2D design with code7, tile[[1, 1], [1, 0]], is{(i, j) in [0, 2^level)^2 : i AND j = 0}. - Builds that set by literal Kronecker powers for
level = 1..9and counts3^levelcells, then recounts3^levelby the digit sumSum_i 2^(level - popcount(i))forlevel = 1..14. - Checks Kummer directly:
v2(C(i+j, i))against the base-2 carry count, on exact binomials for0 <= i, j < 128. - Rebuilds Pascal mod 2 from the additive recurrence alone, rows
0..1023, and compares entrykof rownagainstk AND (n - k) = 0. - Checks the shear
(i, j) -> (i, i + j), determinant1, as a set bijection onto the odd Pascal entries atlevel = 6. - Confirms row sums equal
2^popcount(n)ton = 1023, and that inside a level-8 square the antidiagonal count is2^popcount(n)below2^leveland strictly smaller above. - Compares both OEIS b-files against the recomputed triangle, index column included,
A047999from the copy kept here and both from the live files when the network answers.
RUN
uv run python research/lab/py/pascal-shear/pascal_shear.py- Full domain, no arguments; about two seconds plus the two b-file reads.
a047999.txtis the whole b-file,10585terms.b001316has50001terms and is too large to keep here, so that count needs the network; without one the run still checksA047999and exits0.
WITNESSES
- cuts.md:181-182: level sets to
level = 9with3^levelcells each,3, 9, 27, ..., 19683, exact binomials fori, j < 128,16384of them with0faults. - cuts.md:182-183: Pascal mod 2 from the additive recurrence to row
1023,524800entries,0mismatched cells. - cuts.md:183-184: the shear checked as a bijection,
729cells onto729odd entries atlevel = 6. - cuts.md The same page, one dimension down:
50001terms ofA001316against2^popcount(n),0differences, only when the live b-file read succeeds. - cuts.md:185-186:
A047999is checked against the triangle with0differences, but at10585terms, rows0..144, not the8256the line says;8256is a128-row prefix, and REFS.md:176 carries the same10585. - REFS.md:175:
b001316,50001terms. REFS.md:176:b047999,10585terms, rows0..144. - README.md:49:
A047999with antidiagonal populationsA001316, both b-files checked term for term.
- a047999.txt71.8 kB
- pascal_shear.py7.1 kB
- README.md2.3 kB