Joint finite certificates realize supported regional child histograms
Provedmme_regional_supported_histograms_of_joint_certificateFix a physical regional position set, a target split address, and a layout of the complete child words as flat CW words. For each cell , provide an integer joint table and three prescribed marginal histograms .
Assume the following exact finite checks:
- The sum of equals the number of physical positions in cell .
- Every triple with positive count has coordinatewise CW support: its three grades at each atomic position sum to two.
- Each child word has the grade prescribed by its mode and cell.
- The three marginals of are exactly .
Then there is an actual supported triple of flat CW words. Its three words are graded at the target address and, after splitting through the chosen layout, have exactly the three prescribed cell histograms.
Empty cells and zero table entries are allowed. The proof assigns the joint-table occurrences bijectively to each physical cell fiber, takes the three coordinate projections, and flattens the words through the layout. At level three this supplies the supported target triple needed for positivity of a level-four-to-level-three histogram-window stage. The table and its feasibility checks are hypotheses; this auxiliary theorem does not provide AlphaEvolve's particular table or numerical surplus.
import Definitions.Def_mme_recursive_yz_compatibility import Definitions.Def_mme_graded_integer_regional_step_data import Definitions.Def_mme_dwz_profiled_regional_positions_data import Mathlib open BigOperators MME MME.RecursiveYZ MME.RegionRealization open scoped Classical set_option autoImplicit false set_option maxHeartbeats 1600000
theorem mme_regional_supported_histograms_of_joint_certificate
{half R ell L M : ℕ} (parent : Fin R → Fin 3 → ℕ)
(htotal : ∀ r, parent r 0 + parent r 1 + parent r 2 = 2 * half)
(n : Fin R → ℕ) (a : Address half R parent n)
(positions : Fin L ≃ Position n) (length : L * 2 ^ (ell - 1) = M)
(J : Cell half R parent → (Fin 3 → CompleteSplit.CompleteWord ell) → ℕ)
(mu : Fin 3 → Cell half R parent → CompleteSplit.CompleteWord ell → ℕ)
(hmass : ∀ c, ∑ z, J c z = Fintype.card {p : Position n // fullCell htotal a p = c})
(hsupp : ∀ c z, 0 < J c z → ∀ r,
(z 0 r).val + (z 1 r).val + (z 2 r).val = 2)
(hgrade : ∀ c z, 0 < J c z → ∀ i,
∑ r, (z i r).val = (c.2.val i).val)
(hmarg : ∀ i c w, ∑ z ∈ Finset.univ.filter
(fun z : Fin 3 → CompleteSplit.CompleteWord ell ↦ z i = w), J c z = mu i c w) :
∃ x : Fin 3 → ProfiledCW.FineWord M, ProfiledCW.supported x ∧
∀ i, Graded htotal i a (ProfiledCW.split positions length (x i)) ∧
∀ c w, count (fullCell htotal a) (ProfiledCW.split positions length (x i)) c w =
mu i c w := by sorry