Courtade–Kumar proof module `CKLaneM06.CapSSAgg` (transplant)
DefinitionCK_CKLaneM06_CapSSAggVerbatim transplant of the Lean module CKLaneM06.CapSSAgg of the machine-checked proof of the general Courtade–Kumar theorem (the most informative Boolean function conjecture), so that the complete proof can be verified on this platform.
It is the original source with only two mechanical changes. Imports of project modules are redirected to their transplanted bundles Definitions.Def_CK_*. Declarations that already exist in earlier platform definition bundles of this mission are removed, and those bundles are imported instead, so every constant keeps a single platform identity.
The module contains both definitions and the lemmas proved alongside them in the source. They are kept together so the transplant stays faithful and every proof is re-checked by the server.
Source: Z. Chen, A. Gohari, A. Javanmard, H. Lin, V. Mirrokni, C. Nair, D. P. Woodruff, A Proof of the Most Informative Boolean Function Conjecture, arXiv:2609.24931 (2026). Lean development: https://github.com/dpwoodru/general-courtade-kumar-lean (Apache-2.0), module CKLaneM06.CapSSAgg from release v1.0 (sources_v3.tar.zst).
import Definitions.Def_CK_CKLaneM06_CapSubrow
import Definitions.Def_CK_CKLaneM06_CapSS_C000__11
import Definitions.Def_CK_CKLaneM06_CapSS_C011__9
import Definitions.Def_CK_CKLaneM06_CapSS_C020__10
import Definitions.Def_CK_CKLaneM06_CapSS_C030__9
import Definitions.Def_CK_CKLaneM06_CapSS_C039__3
-- ===== source module CKLaneM06.CapSSAgg =====
section
/-!
# Lane M06: cap cover `same` aggregation (root `ssRoot`, depth `3/40`)
2108 archived leaves (2546 refined checker leaves) in 42 cut subtrees
(`CKLaneM06.CapSS.Cnnn`, each one reflective kernel check); merges above the cut by
`CapOn.merge_path`. Generated by M06/work/gen_cap_fleet.py.
-/
set_option autoImplicit false
namespace CKLaneM06.Cap.CapSSAgg
open GeneralCK CKLaneM06.Cap
theorem n_031303020 : CapOn (cpathBox ssRoot [0, 3, 1, 3, 0, 3, 0, 2, 0]) (3 / 40) :=
CapOn.merge_path (p := [0, 3, 1, 3, 0, 3, 0, 2, 0]) (ax := 1) (by decide) CapSS.C026.cap CapSS.C027.cap
theorem n_031303021 : CapOn (cpathBox ssRoot [0, 3, 1, 3, 0, 3, 0, 2, 1]) (3 / 40) :=
CapOn.merge_path (p := [0, 3, 1, 3, 0, 3, 0, 2, 1]) (ax := 1) (by decide) CapSS.C028.cap CapSS.C029.cap
theorem n_03130303 : CapOn (cpathBox ssRoot [0, 3, 1, 3, 0, 3, 0, 3]) (3 / 40) :=
CapOn.merge_path (p := [0, 3, 1, 3, 0, 3, 0, 3]) (ax := 0) (by decide) CapSS.C030.cap CapSS.C031.cap
theorem n_03130312 : CapOn (cpathBox ssRoot [0, 3, 1, 3, 0, 3, 1, 2]) (3 / 40) :=
CapOn.merge_path (p := [0, 3, 1, 3, 0, 3, 1, 2]) (ax := 0) (by decide) CapSS.C032.cap CapSS.C033.cap
theorem n_03130302 : CapOn (cpathBox ssRoot [0, 3, 1, 3, 0, 3, 0, 2]) (3 / 40) :=
CapOn.merge_path (p := [0, 3, 1, 3, 0, 3, 0, 2]) (ax := 0) (by decide) n_031303020 n_031303021
theorem n_03131303 : CapOn (cpathBox ssRoot [0, 3, 1, 3, 1, 3, 0, 3]) (3 / 40) :=
CapOn.merge_path (p := [0, 3, 1, 3, 1, 3, 0, 3]) (ax := 0) (by decide) CapSS.C038.cap CapSS.C039.cap
theorem n_03130313 : CapOn (cpathBox ssRoot [0, 3, 1, 3, 0, 3, 1, 3]) (3 / 40) :=
CapOn.merge_path (p := [0, 3, 1, 3, 0, 3, 1, 3]) (ax := 0) (by decide) CapSS.C034.cap CapSS.C035.cap
theorem n_03031312 : CapOn (cpathBox ssRoot [0, 3, 0, 3, 1, 3, 1, 2]) (3 / 40) :=
CapOn.merge_path (p := [0, 3, 0, 3, 1, 3, 1, 2]) (ax := 0) (by decide) CapSS.C019.cap CapSS.C020.cap
theorem n_0313031 : CapOn (cpathBox ssRoot [0, 3, 1, 3, 0, 3, 1]) (3 / 40) :=
CapOn.merge_path (p := [0, 3, 1, 3, 0, 3, 1]) (ax := 1) (by decide) n_03130312 n_03130313
theorem n_0313020 : CapOn (cpathBox ssRoot [0, 3, 1, 3, 0, 2, 0]) (3 / 40) :=
CapOn.merge_path (p := [0, 3, 1, 3, 0, 2, 0]) (ax := 1) (by decide) CapSS.C023.cap CapSS.C024.cap
theorem n_0303131 : CapOn (cpathBox ssRoot [0, 3, 0, 3, 1, 3, 1]) (3 / 40) :=
CapOn.merge_path (p := [0, 3, 0, 3, 1, 3, 1]) (ax := 1) (by decide) n_03031312 CapSS.C021.cap
theorem n_0313130 : CapOn (cpathBox ssRoot [0, 3, 1, 3, 1, 3, 0]) (3 / 40) :=
CapOn.merge_path (p := [0, 3, 1, 3, 1, 3, 0]) (ax := 1) (by decide) CapSS.C037.cap n_03131303
theorem n_0303130 : CapOn (cpathBox ssRoot [0, 3, 0, 3, 1, 3, 0]) (3 / 40) :=
CapOn.merge_path (p := [0, 3, 0, 3, 1, 3, 0]) (ax := 1) (by decide) CapSS.C017.cap CapSS.C018.cap
theorem n_0313030 : CapOn (cpathBox ssRoot [0, 3, 1, 3, 0, 3, 0]) (3 / 40) :=
CapOn.merge_path (p := [0, 3, 1, 3, 0, 3, 0]) (ax := 1) (by decide) n_03130302 n_03130303
theorem n_0303121 : CapOn (cpathBox ssRoot [0, 3, 0, 3, 1, 2, 1]) (3 / 40) :=
CapOn.merge_path (p := [0, 3, 0, 3, 1, 2, 1]) (ax := 1) (by decide) CapSS.C015.cap CapSS.C016.cap
theorem n_0303120 : CapOn (cpathBox ssRoot [0, 3, 0, 3, 1, 2, 0]) (3 / 40) :=
CapOn.merge_path (p := [0, 3, 0, 3, 1, 2, 0]) (ax := 1) (by decide) CapSS.C013.cap CapSS.C014.cap
theorem n_030313 : CapOn (cpathBox ssRoot [0, 3, 0, 3, 1, 3]) (3 / 40) :=
CapOn.merge_path (p := [0, 3, 0, 3, 1, 3]) (ax := 0) (by decide) n_0303130 n_0303131
theorem n_030213 : CapOn (cpathBox ssRoot [0, 3, 0, 2, 1, 3]) (3 / 40) :=
CapOn.merge_path (p := [0, 3, 0, 2, 1, 3]) (ax := 0) (by decide) CapSS.C009.cap CapSS.C010.cap
theorem n_031313 : CapOn (cpathBox ssRoot [0, 3, 1, 3, 1, 3]) (3 / 40) :=
CapOn.merge_path (p := [0, 3, 1, 3, 1, 3]) (ax := 0) (by decide) n_0313130 CapSS.C040.cap
theorem n_030312 : CapOn (cpathBox ssRoot [0, 3, 0, 3, 1, 2]) (3 / 40) :=
CapOn.merge_path (p := [0, 3, 0, 3, 1, 2]) (ax := 0) (by decide) n_0303120 n_0303121
theorem n_031302 : CapOn (cpathBox ssRoot [0, 3, 1, 3, 0, 2]) (3 / 40) :=
CapOn.merge_path (p := [0, 3, 1, 3, 0, 2]) (ax := 0) (by decide) n_0313020 CapSS.C025.cap
theorem n_031303 : CapOn (cpathBox ssRoot [0, 3, 1, 3, 0, 3]) (3 / 40) :=
CapOn.merge_path (p := [0, 3, 1, 3, 0, 3]) (ax := 0) (by decide) n_0313030 n_0313031
theorem n_03031 : CapOn (cpathBox ssRoot [0, 3, 0, 3, 1]) (3 / 40) :=
CapOn.merge_path (p := [0, 3, 0, 3, 1]) (ax := 1) (by decide) n_030312 n_030313
theorem n_03020 : CapOn (cpathBox ssRoot [0, 3, 0, 2, 0]) (3 / 40) :=
CapOn.merge_path (p := [0, 3, 0, 2, 0]) (ax := 1) (by decide) CapSS.C006.cap CapSS.C007.cap
theorem n_03021 : CapOn (cpathBox ssRoot [0, 3, 0, 2, 1]) (3 / 40) :=
CapOn.merge_path (p := [0, 3, 0, 2, 1]) (ax := 1) (by decide) CapSS.C008.cap n_030213
theorem n_03130 : CapOn (cpathBox ssRoot [0, 3, 1, 3, 0]) (3 / 40) :=
CapOn.merge_path (p := [0, 3, 1, 3, 0]) (ax := 1) (by decide) n_031302 n_031303
theorem n_02030 : CapOn (cpathBox ssRoot [0, 2, 0, 3, 0]) (3 / 40) :=
CapOn.merge_path (p := [0, 2, 0, 3, 0]) (ax := 1) (by decide) CapSS.C002.cap CapSS.C003.cap
theorem n_03131 : CapOn (cpathBox ssRoot [0, 3, 1, 3, 1]) (3 / 40) :=
CapOn.merge_path (p := [0, 3, 1, 3, 1]) (ax := 1) (by decide) CapSS.C036.cap n_031313
theorem n_03030 : CapOn (cpathBox ssRoot [0, 3, 0, 3, 0]) (3 / 40) :=
CapOn.merge_path (p := [0, 3, 0, 3, 0]) (ax := 1) (by decide) CapSS.C011.cap CapSS.C012.cap
theorem n_0313 : CapOn (cpathBox ssRoot [0, 3, 1, 3]) (3 / 40) :=
CapOn.merge_path (p := [0, 3, 1, 3]) (ax := 0) (by decide) n_03130 n_03131
theorem n_0203 : CapOn (cpathBox ssRoot [0, 2, 0, 3]) (3 / 40) :=
CapOn.merge_path (p := [0, 2, 0, 3]) (ax := 0) (by decide) n_02030 CapSS.C004.cap
theorem n_0303 : CapOn (cpathBox ssRoot [0, 3, 0, 3]) (3 / 40) :=
CapOn.merge_path (p := [0, 3, 0, 3]) (ax := 0) (by decide) n_03030 n_03031
theorem n_0202 : CapOn (cpathBox ssRoot [0, 2, 0, 2]) (3 / 40) :=
CapOn.merge_path (p := [0, 2, 0, 2]) (ax := 0) (by decide) CapSS.C000.cap CapSS.C001.cap
theorem n_0302 : CapOn (cpathBox ssRoot [0, 3, 0, 2]) (3 / 40) :=
CapOn.merge_path (p := [0, 3, 0, 2]) (ax := 0) (by decide) n_03020 n_03021
theorem n_020 : CapOn (cpathBox ssRoot [0, 2, 0]) (3 / 40) :=
CapOn.merge_path (p := [0, 2, 0]) (ax := 1) (by decide) n_0202 n_0203
theorem n_030 : CapOn (cpathBox ssRoot [0, 3, 0]) (3 / 40) :=
CapOn.merge_path (p := [0, 3, 0]) (ax := 1) (by decide) n_0302 n_0303
theorem n_031 : CapOn (cpathBox ssRoot [0, 3, 1]) (3 / 40) :=
CapOn.merge_path (p := [0, 3, 1]) (ax := 1) (by decide) CapSS.C022.cap n_0313
theorem n_02 : CapOn (cpathBox ssRoot [0, 2]) (3 / 40) :=
CapOn.merge_path (p := [0, 2]) (ax := 0) (by decide) n_020 CapSS.C005.cap
theorem n_03 : CapOn (cpathBox ssRoot [0, 3]) (3 / 40) :=
CapOn.merge_path (p := [0, 3]) (ax := 0) (by decide) n_030 n_031
theorem n_0 : CapOn (cpathBox ssRoot [0]) (3 / 40) :=
CapOn.merge_path (p := [0]) (ax := 1) (by decide) n_02 n_03
theorem n_root : CapOn (cpathBox ssRoot []) (3 / 40) :=
CapOn.merge_path (p := []) (ax := 0) (by decide) n_0 CapSS.C041.cap
/-- `CapOn` on the whole archived root. -/
theorem capOn_root : CapOn ssRoot (3 / 40) := n_root
/-- **Same-side cap square** (`SAME_SIDE_CAP`, root `[1/10,1/2]²`, `s ≤ 3/40`). -/
theorem capSameSide : CapSameSide := by
intro k μ hab ha hb hs
rcases lt_or_eq_of_le hab with hlt | heq
· have h := capOn_root k μ hlt (by linarith)
simp only [ssRoot] at h
push_cast at h
exact h (by linarith) (by linarith) (by linarith) (by linarith) hs
· exact psi_gap_le_cost_of_eq μ heq
end CKLaneM06.Cap.CapSSAgg
end