Documentation

LeanPool.HighContrastHomogenization.Provider.Recurrence.ColourSeparation

High-contrast homogenization: Provider.Recurrence.ColourSeparation #

Imported from the Apache-2.0 HighContrastHomogenization development at commit 7a13dbcd8d6609264a713373f5c69ceeac870472.

Colour separation for adapted cells #

The finite-range averaging lemma colours an aligned adapted cell 3^j ๐ช w + โ‹„_j^๐ช by the residue of its index w = 3^{-j}๐ช^{-1}z modulo three. The purpose of the rounded-grid design is that two distinct cells of the same colour are separated in โ„“^โˆž-distance by at least one, which is what makes the unit-range assumption applicable to them.

Two quantitative facts carry that conclusion. The first is that a rounded grid is uniformly positive: the normalization ๐“›(m) is at least the identity and the rounding perturbs the quadratic form by at most d 3^{-โ„“} โ‰ค 1/101, so ๐ช โ‰ฅ (100/101) I. Consequently the grid map cannot contract the sup norm by more than the factor (100/101)/d. The second is that at any scale at or above the alignment the cells are large: 3^j โ‰ฅ 3^{k_0(d)} โ‰ฅ 101 d, this being the content of the choice of k_0(d). Two same-colour indices differ by at least three in some coordinate, so the corresponding points of the two cells differ by more than 2 ยท 3^j in that coordinate before the grid map is applied, and by at least 200 after it.

The colour classes themselves need no new carrier: the residue map w โ†ฆ (w i mod 3)_i takes values in (ZMod 3)^d, so a finite family of aligned indices splits into at most 3^d same-colour classes, the count the printed proof uses.

The rounded grid is uniformly positive #

theorem HCPolySupport.HighContrast.Recurrence.dotProduct_mulVec_roundedGrid_ge {d : โ„•} {l : โ„ค} (hl : โ†‘(kZero d) โ‰ค l) {m : Mat d} (hm : Matrix.PosDef m) (x : Vec d) :
100 / 101 * โˆ‘ i : Fin d, x i * x i โ‰ค x โฌแตฅ Matrix.mulVec (roundedGrid l m) x

A rounded grid is at least 100/101 times the identity. The normalization is at least the identity and the rounding error moves the quadratic form by at most d 3^{-โ„“}, which kZero_spec bounds by 1/101.

A rounded adapted grid is at least 100/101 times the identity.

The grid map does not contract the sup norm #

The grid map of a rounded adapted grid does not contract the sup norm by more than d ยท 101/100. This is the quantitative form of positivity that the colour separation consumes.

The cells are large above the alignment #

3^j โ‰ฅ 101 d at every scale at or above the alignment of a rounded grid. This is the second use of kZero_spec, and it is what makes the โ„“^โˆž-separation of same-colour cells at least one rather than merely positive.

Same-colour cells are unit separated #

theorem HCPolySupport.HighContrast.Recurrence.unitSeparated_adaptedCellAt_of_dvd_sub {d : โ„•} {l : โ„ค} {q : Mat d} (hq : IsRoundedGrid l q) {j : โ„ค} (hj : l โ‰ค j) {w w' : Fin d โ†’ โ„ค} {iโ‚€ : Fin d} (hne : w iโ‚€ โ‰  w' iโ‚€) (hdvd : 3 โˆฃ w iโ‚€ - w' iโ‚€) :

Two aligned adapted cells whose indices differ by a nonzero multiple of three in some coordinate are โ„“^โˆž-separated by at least one. In fact they are separated by at least 200; the printed statement asks only for one.

theorem HCPolySupport.HighContrast.Recurrence.unitSeparated_adaptedCellAt_of_intCast_eq {d : โ„•} {l : โ„ค} {q : Mat d} (hq : IsRoundedGrid l q) {j : โ„ค} (hj : l โ‰ค j) {w w' : Fin d โ†’ โ„ค} (hne : w โ‰  w') (hcol : (fun (i : Fin d) => โ†‘(w i)) = fun (i : Fin d) => โ†‘(w' i)) :

Distinct same-colour aligned adapted cells are โ„“^โˆž-separated by at least one. The colour is the residue of the index modulo three, the index being 3^{-j}๐ช^{-1}z for the cell centred at z.

The colour classes #

theorem HCPolySupport.HighContrast.Recurrence.card_image_intCast_le {d : โ„•} (Z : Finset (Fin d โ†’ โ„ค)) :
(Finset.image (fun (w : Fin d โ†’ โ„ค) (i : Fin d) => โ†‘(w i)) Z).card โ‰ค 3 ^ d

A finite family of aligned indices meets at most 3^d colours. This is the bound K โ‰ค 3^d of the printed proof.

theorem HCPolySupport.HighContrast.Recurrence.biUnion_filter_intCast_eq {d : โ„•} (Z : Finset (Fin d โ†’ โ„ค)) :
((Finset.image (fun (w : Fin d โ†’ โ„ค) (i : Fin d) => โ†‘(w i)) Z).biUnion fun (c : Fin d โ†’ ZMod 3) => {w โˆˆ Z | (fun (i : Fin d) => โ†‘(w i)) = c}) = Z

A finite family of aligned indices is the union of its colour classes. Together with the separation of same-colour cells this is the decomposition I = I_1 โŠ โ‹ฏ โŠ I_K of the printed proof.

theorem HCPolySupport.HighContrast.Recurrence.pairwiseDisjoint_filter_intCast {d : โ„•} (Z : Finset (Fin d โ†’ โ„ค)) :
(โ†‘(Finset.image (fun (w : Fin d โ†’ โ„ค) (i : Fin d) => โ†‘(w i)) Z)).PairwiseDisjoint fun (c : Fin d โ†’ ZMod 3) => {w โˆˆ Z | (fun (i : Fin d) => โ†‘(w i)) = c}

The colour classes of a finite family of aligned indices are disjoint. Together with the previous two facts this is the printed partition I = I_1 โŠ โ‹ฏ โŠ I_K, in the form a sum over I is split by it.

theorem HCPolySupport.HighContrast.Recurrence.pairwise_unitSeparated_adaptedCellAt {d : โ„•} {ฮน : Type u_1} {l : โ„ค} {q : Mat d} (hq : IsRoundedGrid l q) {j : โ„ค} (hj : l โ‰ค j) {z : ฮน โ†’ Fin d โ†’ โ„ค} (hinj : Function.Injective z) (hcol : โˆ€ (n n' : ฮน), (fun (i : Fin d) => โ†‘(z n i)) = fun (i : Fin d) => โ†‘(z n' i)) :
Pairwise fun (n n' : ฮน) => UnitSeparated (adaptedCellAt q j (z n)) (adaptedCellAt q j (z n'))

The cells of a same-colour family of distinct aligned indices are pairwise โ„“^โˆž-separated by at least one. This is the hypothesis the joint independence of a colour class is proved from.

theorem HCPolySupport.HighContrast.Recurrence.intCast_eq_of_mem_filter {d : โ„•} {Z : Finset (Fin d โ†’ โ„ค)} {c : Fin d โ†’ ZMod 3} {w w' : Fin d โ†’ โ„ค} (hw : w โˆˆ {v โˆˆ Z | (fun (i : Fin d) => โ†‘(v i)) = c}) (hw' : w' โˆˆ {v โˆˆ Z | (fun (i : Fin d) => โ†‘(v i)) = c}) :
(fun (i : Fin d) => โ†‘(w i)) = fun (i : Fin d) => โ†‘(w' i)

The members of one colour class of a finite family of aligned indices all carry that colour.