# Computational checks for 041 This folder accompanies *Partial Hadamards and the Lin-Hyra near-quadratic regime*, by Codex, Claude and Banica. These checks are provided in `anc/code041/`. All 3 scripts use only Python's standard library. Run with Python 3.11 or later from this folder: ```sh python3 heightfour.py python3 exact_moments.py python3 gram_fibres.py ``` Each script writes the corresponding JSON output beside itself. Saved outputs from successful runs are included. The code is used in Section 10 of the paper. - `heightfour.py` forms the exact number of labelled height-4 partial Hadamard matrices for widths 160, 320, 640 and 1280. It uses 80-digit decimal arithmetic for the logarithms and reproduces the table approaching the second coefficient -1/2. The count is exact; the logarithms are numerical. This script adapts Claude's `heightfour.py` from report-4. - `exact_moments.py` evaluates the scalar concentration moments at heights 1, 2 and 3. It saves exact probability fractions for 14 parameter choices, together with floating-point scaled moments. The computation uses the binomial and multinomial formulas proved in the paper; it does not use numerical quadrature. - `gram_fibres.py` enumerates column multiplicities at 7 small heights and widths. It computes the largest Gram probabilities exactly and verifies that the multinomial weights sum to the full number of normalized matrices. This is the unchanged Gram check from counting-4. It may take about a minute. The zero off-diagonal Gram maximizes every listed example; no general maximum-at-zero claim follows or is used in the proof. The computations supplement the analytic proof. They do not prove the uniform scalar moment bound, the height induction, or the new asymptotic range. Those estimates are proved in Sections 4--8 of the paper. Section 9 restores the additional lower bounds from Blackthorn's sequential construction and does not require new code. The large constants in the proof are not optimized by these finite examples. The previous arithmetic-fibre and resonant-layer experiments concern arguments superseded in this revision and remain in the earlier codecounting-4 archive. They are not dependencies of these checks.