One common square scale for finite rational certificates and their linear constraints
Provedmme_finite_rational_certificate_common_square_scaleFor any finite family of nonnegative rational entries , there is a positive integer and natural entries . At every square scale , their replicated natural counts equal exactly. Every rational linear equation in the entries is preserved under this replication, and every strictly positive entry becomes a strictly positive count whenever .
The finite index family may be a disjoint union of all regional sizes, split counts, mode histograms, and joint-support tables across a finite recursive profile tree. Thus a single denominator suffices for all levels and all joint marginals, rather than choosing incompatible denominators independently. Exact mass equations and joint-marginal equations are instances of the preserved linear constraints. This is an integerization interface; it does not prove feasibility, nonlinear rate inequalities, or coordinate routing for a particular numerical candidate.
import Definitions.Def_mme_recursive_region_parent_profiles import Mathlib open BigOperators MME MME.RecursiveYZ MME.RegionRealization set_option autoImplicit false
theorem mme_finite_rational_certificate_common_square_scale
{I : Type*} [Fintype I] (q : I → ℚ) (hq : ∀ i, 0 ≤ q i) :
∃ D : ℕ, 0 < D ∧ ∃ a : I → ℕ,
(∀ i, (a i : ℚ) = (D : ℚ) * q i) ∧
(∀ k : ℕ, ∀ i, ((k ^ 2 * a i : ℕ) : ℚ) = ((k ^ 2 * D : ℕ) : ℚ) * q i) ∧
(∀ k : ℕ, ∀ coeff : I → ℚ, ∀ target : ℚ,
(∑ i, coeff i * q i) = target →
(∑ i, coeff i * ((k ^ 2 * a i : ℕ) : ℚ)) =
((k ^ 2 * D : ℕ) : ℚ) * target) ∧
(∀ k : ℕ, 0 < k → ∀ i, 0 < q i → 0 < k ^ 2 * a i) := by sorry