Courtade–Kumar proof module `CKLaneA3W.FinalPos` (transplant)
DefinitionCK_CKLaneA3W_FinalPosVerbatim transplant of the Lean module CKLaneA3W.FinalPos 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 CKLaneA3W.FinalPos from release v1.0 (sources_v3.tar.zst).
import Definitions.Def_CK_CKLaneA3W_Chain10
import Definitions.Def_CK_CKLaneA3W_FinalLemmas
/-! Generated by num/gen_chain.py (Lane A3): final congr steps, positivity, owners and slots. -/
set_option maxHeartbeats 0
set_option maxRecDepth 100000
set_option linter.unusedVariables false
namespace CKLaneA3W
open GeneralCK GeneralCK.Correction
theorem coefChain_eq : ∀ t ρ, Dom t ρ →
F_coef t ρ = HighU.actualDetGapCoefficient (1 / 2 - t) (1 / 2 - (1 - ρ) * t) := by
intro t ρ hd
have ht : t ≠ 0 := hd.1.ne'
have hJ := jn_u_ne hd
have hJw := jn_w_ne hd
have hS := (entropySum_pos' hd).ne'
have hjw := jn_add_dslope hd
simp only [F_coef, F_mInner, F_m, F_qqdU, F_dU, F_U, F_U0, F_num0t, F_num0, F_qA1, F_q, F_A1, F_tR, F_R, F_j, F_mone, F_Jti, F_Jt, F_J, F_d, F_qq, F_qp2, F_mdd2, F_dd2, F_qhd, F_hd_, F_h, F_mWzz, F_Wzz, F_W, F_zz, F_z, F_qonep, F_onep, F_one, F_dJSi, F_dJ, F_Si, F_S, F_inner, F_mJwWZZ, F_JwWZZ, F_ZZ, F_Z, F_hmd, F_md, F_msumZSi, F_sumZSi, F_sumZ, F_qJ, F_qpJw, F_Jw, F_JwW, F_tJwNVJ, F_NVJ, F_NVt, F_NV, F_num0j, F_mhmdA1J, F_hmdA1J, F_hmdA1, F_tJw, F_mJwUsUs, F_JwUsUs, F_UsUs, F_Us, F_mWzZ, F_WzZ, F_Wz]
rw [HighU.actualDetGapCoefficient, detGap_regular _ _ _ _ _ _ _ _ _ hJ hJw hS hjw]
generalize Natural.jn (1 / 2 - t) = J at *
generalize Natural.jn (1 / 2 - (1 - ρ) * t) = Jw at *
generalize dslope Natural.jn (1 / 2 - t) (1 / 2 - (1 - ρ) * t) = j at *
generalize HighU.regularFsGap (1 / 2 - t) (1 / 2 - (1 - ρ) * t) = R at *
generalize HighU.regularWeight (1 / 2 - t) (1 / 2 - (1 - ρ) * t) = W at *
generalize Natural.entropySum (1 / 2 - t) (1 / 2 - (1 - ρ) * t) = S at *
generalize Natural.qp (1 / 2 - t) = q at *
push_cast
field_simp
ring
theorem m11Chain_eq : ∀ t ρ, Dom t ρ →
F_m11 t ρ = Natural.m11 (1 / 2 - t) (1 / 2 - (1 - ρ) * t) := by
intro t ρ hd
have ht : t ≠ 0 := hd.1.ne'
have hJ := jn_u_ne hd
have hS := (entropySum_pos' hd).ne'
have hne : (1 / 2 - (1 - ρ) * t) - (1 / 2 - t) ≠ 0 := sub_ne_zero.mpr (dom_u_lt_w hd).ne'
have hFs : Natural.Fs (Natural.contact (1 / 2 - t) (1 / 2 - (1 - ρ) * t)) =
HighU.regularFsGap (1 / 2 - t) (1 / 2 - (1 - ρ) * t) * ((1 / 2 - (1 - ρ) * t) - (1 / 2 - t)) := by
rw [regularFsGap_contact hd, div_mul_cancel₀ _ hne]
have hWt : 2 * Natural.Fss (Natural.contact (1 / 2 - t) (1 / 2 - (1 - ρ) * t))
(Natural.entropySum (1 / 2 - t) (1 / 2 - (1 - ρ) * t)) =
HighU.regularWeight (1 / 2 - t) (1 / 2 - (1 - ρ) * t) := (regularWeight_contact hd).symm
simp only [F_m11, F_mWzuzu, F_Wzuzu, F_W, F_zuzu, F_zu, F_qdq, F_dqJSi, F_dqJ, F_dq, F_q, F_d, F_J, F_Si, F_S, F_au, F_auNt, F_auN, F_dJh, F_Jhm1, F_mone, F_Jh, F_h, F_qT, F_JJw2dR, F_tdR, F_dR, F_R, F_JJw, F_Jw, F_Jti, F_Jt]
unfold Natural.m11 Natural.au Natural.zu Natural.weight
rw [hFs, hWt]
generalize Natural.jn (1 / 2 - t) = J at *
generalize Natural.jn (1 / 2 - (1 - ρ) * t) = Jw at *
generalize HighU.regularFsGap (1 / 2 - t) (1 / 2 - (1 - ρ) * t) = R at *
generalize HighU.regularWeight (1 / 2 - t) (1 / 2 - (1 - ρ) * t) = W at *
generalize Natural.entropySum (1 / 2 - t) (1 / 2 - (1 - ρ) * t) = S at *
generalize Natural.qp (1 / 2 - t) = q at *
push_cast
field_simp
ring
theorem G_coefS : Good (fun t ρ => HighU.actualDetGapCoefficient (1 / 2 - t) (1 / 2 - (1 - ρ) * t)) D_coef :=
G_coef.congr coefChain_eq
theorem G_m11S : Good (fun t ρ => Natural.m11 (1 / 2 - t) (1 / 2 - (1 - ρ) * t)) D_m11 :=
G_m11.congr m11Chain_eq
def coefQ0 : SPoly := [(0, [(-3, ((-81 : ℚ) / 64)), (-2, ((621 : ℚ) / 128)), (-1, ((-459 : ℚ) / 64)), (0, ((81 : ℚ) / 16))]), (1, [(-3, ((-27 : ℚ) / 16)), (-2, ((207 : ℚ) / 32)), (-1, ((-153 : ℚ) / 16)), (0, ((27 : ℚ) / 4))]), (2, [(-3, ((81 : ℚ) / 16)), (-2, ((-621 : ℚ) / 32)), (-1, ((459 : ℚ) / 16)), (0, ((-81 : ℚ) / 4))]), (3, [(-3, ((3 : ℚ) / 2)), (-2, ((-23 : ℚ) / 4)), (-1, ((17 : ℚ) / 2)), (0, (-6 : ℚ))]), (4, [(-3, ((-31 : ℚ) / 4)), (-2, ((713 : ℚ) / 24)), (-1, ((-527 : ℚ) / 12)), (0, (31 : ℚ))]), (5, [(-3, (5 : ℚ)), (-2, ((-115 : ℚ) / 6)), (-1, ((85 : ℚ) / 3)), (0, (-20 : ℚ))]), (6, [(-3, (-1 : ℚ)), (-2, ((23 : ℚ) / 6)), (-1, ((-17 : ℚ) / 3)), (0, (4 : ℚ))])]
def coefA0 : SPoly := [(0, [(-3, ((-81 : ℚ) / 16)), (-2, ((621 : ℚ) / 32)), (-1, ((-459 : ℚ) / 16)), (0, ((81 : ℚ) / 4))]), (1, [(-3, ((27 : ℚ) / 2)), (-2, ((-207 : ℚ) / 4)), (-1, ((153 : ℚ) / 2)), (0, (-54 : ℚ))]), (2, [(-3, ((-27 : ℚ) / 2)), (-2, ((207 : ℚ) / 4)), (-1, ((-153 : ℚ) / 2)), (0, (54 : ℚ))]), (3, [(-3, (6 : ℚ)), (-2, (-23 : ℚ)), (-1, (34 : ℚ)), (0, (-24 : ℚ))]), (4, [(-3, (-1 : ℚ)), (-2, ((23 : ℚ) / 6)), (-1, ((-17 : ℚ) / 3)), (0, (4 : ℚ))])]
def coefB : TPoly := [[(0, [(-4, ((-405 : ℚ) / 64)), (-3, ((567 : ℚ) / 32)), (-2, ((-75987 : ℚ) / 5120)), (-1, ((-531 : ℚ) / 640)), (0, ((3609 : ℚ) / 320))]), (1, [(-4, ((135 : ℚ) / 32)), (-3, ((621 : ℚ) / 32)), (-2, ((-5931 : ℚ) / 64)), (-1, ((1089 : ℚ) / 10)), (0, ((-681 : ℚ) / 20))]), (2, [(-4, ((675 : ℚ) / 16)), (-3, ((-3843 : ℚ) / 16)), (-2, ((176587 : ℚ) / 320)), (-1, ((-21817 : ℚ) / 40)), (0, ((3479 : ℚ) / 20))]), (3, [(-4, ((-345 : ℚ) / 8)), (-3, ((2109 : ℚ) / 8)), (-2, ((-150947 : ℚ) / 240)), (-1, ((9574 : ℚ) / 15)), (0, (-211 : ℚ))]), (4, [(-4, ((-215 : ℚ) / 4)), (-3, ((481 : ℚ) / 4)), (-2, ((-70753 : ℚ) / 1440)), (-1, ((-7841 : ℚ) / 180)), (0, ((1121 : ℚ) / 30))]), (5, [(-4, ((205 : ℚ) / 2)), (-3, ((-2003 : ℚ) / 6)), (-2, ((80311 : ℚ) / 180)), (-1, ((-12632 : ℚ) / 45)), (0, ((76 : ℚ) / 15))]), (6, [(-4, (-55 : ℚ)), (-3, ((541 : ℚ) / 3)), (-2, ((-13343 : ℚ) / 60)), (-1, ((3742 : ℚ) / 45)), (0, ((260 : ℚ) / 3))]), (7, [(-4, (10 : ℚ)), (-3, ((-86 : ℚ) / 3)), (-2, ((401 : ℚ) / 45)), (-1, ((736 : ℚ) / 15)), (0, (-80 : ℚ))]), (8, [(-3, ((-4 : ℚ) / 3)), (-2, ((647 : ℚ) / 60)), (-1, ((-102 : ℚ) / 5)), (0, (20 : ℚ))])],
[],
[(0, [(-5, ((-71199 : ℚ) / 4096)), (-4, ((192267 : ℚ) / 4096)), (-3, ((-825243 : ℚ) / 20480)), (-2, ((496401 : ℚ) / 28672)), (-1, ((-1059921 : ℚ) / 71680)), (0, ((320973 : ℚ) / 8960))]), (1, [(-5, ((58401 : ℚ) / 1024)), (-4, ((-90081 : ℚ) / 1024)), (-3, ((-63317 : ℚ) / 1024)), (-2, ((3488007 : ℚ) / 35840)), (-1, ((1267799 : ℚ) / 17920)), (0, ((-122897 : ℚ) / 2240))]), (2, [(-5, ((101493 : ℚ) / 1024)), (-4, ((-862497 : ℚ) / 1024)), (-3, ((6933971 : ℚ) / 3072)), (-2, ((-246565441 : ℚ) / 107520)), (-1, ((32931233 : ℚ) / 53760)), (0, ((812519 : ℚ) / 6720))]), (3, [(-5, ((-26181 : ℚ) / 64)), (-4, ((154925 : ℚ) / 64)), (-3, ((-5515757 : ℚ) / 960)), (-2, ((17031263 : ℚ) / 2880)), (-1, ((-21287771 : ℚ) / 10080)), (0, ((169 : ℚ) / 140))]), (4, [(-5, ((13209 : ℚ) / 128)), (-4, ((-473303 : ℚ) / 384)), (-3, ((2242709 : ℚ) / 640)), (-2, ((-402629657 : ℚ) / 120960)), (-1, ((28608173 : ℚ) / 60480)), (0, ((1011589 : ℚ) / 2520))]), (5, [(-5, ((21699 : ℚ) / 32)), (-4, ((-199897 : ℚ) / 96)), (-3, ((870065 : ℚ) / 288)), (-2, ((-106933073 : ℚ) / 30240)), (-1, ((8973403 : ℚ) / 3024)), (0, ((-692579 : ℚ) / 630))]), (6, [(-5, ((-25887 : ℚ) / 32)), (-4, ((264121 : ℚ) / 96)), (-3, ((-6290431 : ℚ) / 1440)), (-2, ((130974211 : ℚ) / 30240)), (-1, ((-7592735 : ℚ) / 3024)), (0, ((616537 : ℚ) / 630))]), (7, [(-5, ((1323 : ℚ) / 4)), (-4, ((-11801 : ℚ) / 12)), (-3, ((211633 : ℚ) / 180)), (-2, ((-2502061 : ℚ) / 3780)), (-1, ((81493 : ℚ) / 630)), (0, ((-63988 : ℚ) / 105))]), (8, [(-5, ((-339 : ℚ) / 16)), (-4, ((-1105 : ℚ) / 16)), (-3, ((340313 : ℚ) / 720)), (-2, ((-11246629 : ℚ) / 15120)), (-1, ((920699 : ℚ) / 2520)), (0, ((2591 : ℚ) / 5))]), (9, [(-5, ((-63 : ℚ) / 4)), (-4, ((1181 : ℚ) / 12)), (-3, ((-5337 : ℚ) / 20)), (-2, ((47609 : ℚ) / 180)), (-1, ((17 : ℚ) / 10)), (0, ((-4756 : ℚ) / 15))]), (10, [(-5, ((9 : ℚ) / 4)), (-4, ((-143 : ℚ) / 12)), (-3, ((1643 : ℚ) / 60)), (-2, ((-8479 : ℚ) / 1260)), (-1, ((-8411 : ℚ) / 210)), (0, ((1108 : ℚ) / 15))])],
[],
[(0, [(-6, ((-135513 : ℚ) / 4096)), (-5, ((2734101 : ℚ) / 32768)), (-4, ((-10727001 : ℚ) / 163840)), (-3, ((6395163 : ℚ) / 286720)), (-2, ((212393827 : ℚ) / 5734400)), (-1, ((-4394447 : ℚ) / 57344)), (0, ((24521649 : ℚ) / 179200))]), (1, [(-6, ((469287 : ℚ) / 2048)), (-5, ((-2408517 : ℚ) / 4096)), (-4, ((12761709 : ℚ) / 20480)), (-3, ((-6660363 : ℚ) / 8960)), (-2, ((1597687403 : ℚ) / 2150400)), (-1, ((-66321253 : ℚ) / 537600)), (0, ((-1572983 : ℚ) / 22400))]), (2, [(-6, ((-107163 : ℚ) / 1024)), (-5, ((-3859299 : ℚ) / 4096)), (-4, ((71614471 : ℚ) / 20480)), (-3, ((-80060683 : ℚ) / 35840)), (-2, ((-4755297223 : ℚ) / 2150400)), (-1, ((355152253 : ℚ) / 179200)), (0, ((-2782347 : ℚ) / 22400))]), (3, [(-6, ((-778827 : ℚ) / 512)), (-5, ((10016807 : ℚ) / 1024)), (-4, ((-121050151 : ℚ) / 5120)), (-3, ((936075617 : ℚ) / 40320)), (-2, ((-29275116217 : ℚ) / 4838400)), (-1, ((-2186192149 : ℚ) / 1209600)), (0, ((1627781 : ℚ) / 10080))]), (4, [(-6, ((310331 : ℚ) / 128)), (-5, ((-92609183 : ℚ) / 6144)), (-4, ((1104125563 : ℚ) / 30720)), (-3, ((-5795564023 : ℚ) / 161280)), (-2, ((355233225373 : ℚ) / 29030400)), (-1, ((-934703591 : ℚ) / 1036800)), (0, ((314994509 : ℚ) / 302400))]), (5, [(-6, ((81403 : ℚ) / 64)), (-5, ((-455135 : ℚ) / 384)), (-4, ((-8611979 : ℚ) / 5760)), (-3, ((-1140976 : ℚ) / 189)), (-2, ((25725402121 : ℚ) / 1814400)), (-1, ((-301383737 : ℚ) / 64800)), (0, ((-6126017 : ℚ) / 3780))]), (6, [(-6, ((-180355 : ℚ) / 32)), (-5, ((2631931 : ℚ) / 128)), (-4, ((-24590607 : ℚ) / 640)), (-3, ((492907031 : ℚ) / 10080)), (-2, ((-2305068433 : ℚ) / 67200)), (-1, ((542662679 : ℚ) / 90720)), (0, ((59316809 : ℚ) / 18900))]), (7, [(-6, ((74893 : ℚ) / 16)), (-5, ((-1571831 : ℚ) / 96)), (-4, ((40265173 : ℚ) / 1440)), (-3, ((-21106403 : ℚ) / 756)), (-2, ((4064360761 : ℚ) / 453600)), (-1, ((277145423 : ℚ) / 37800)), (0, ((-3680713 : ℚ) / 525))]), (8, [(-6, ((-18221 : ℚ) / 16)), (-5, ((248571 : ℚ) / 128)), (-4, ((1295293 : ℚ) / 1152)), (-3, ((-35627351 : ℚ) / 4320)), (-2, ((28603619773 : ℚ) / 1814400)), (-1, ((-668156401 : ℚ) / 50400)), (0, ((2141375 : ℚ) / 252))]), (9, [(-6, ((-2989 : ℚ) / 8)), (-5, ((138317 : ℚ) / 48)), (-4, ((-638087 : ℚ) / 80)), (-3, ((3632759 : ℚ) / 315)), (-2, ((-2413406171 : ℚ) / 226800)), (-1, ((111447031 : ℚ) / 18900)), (0, ((-2002894 : ℚ) / 315))]), (10, [(-6, ((945 : ℚ) / 4)), (-5, ((-59209 : ℚ) / 48)), (-4, ((1897919 : ℚ) / 720)), (-3, ((-1268999 : ℚ) / 540)), (-2, ((1069183 : ℚ) / 1200)), (-1, ((-344627 : ℚ) / 700)), (0, ((124162 : ℚ) / 35))]), (11, [(-6, ((-63 : ℚ) / 2)), (-5, ((1465 : ℚ) / 12)), (-4, ((-17483 : ℚ) / 180)), (-3, ((-45098 : ℚ) / 105)), (-2, ((12839443 : ℚ) / 18900)), (-1, ((-14561 : ℚ) / 525)), (0, ((-49016 : ℚ) / 35))]), (12, [(-5, ((143 : ℚ) / 24)), (-4, ((-15073 : ℚ) / 360)), (-3, ((78767 : ℚ) / 630)), (-2, ((-3741103 : ℚ) / 37800)), (-1, ((-20927 : ℚ) / 350)), (0, ((9172 : ℚ) / 35))])]]
theorem coef_pos_dom : ∀ t ρ, Dom t ρ →
0 < HighU.actualDetGapCoefficient (1 / 2 - t) (1 / 2 - (1 - ρ) * t) :=
pos_of_TM_split G_coefS coefQ0 coefA0 coefB (by decide +kernel) (by decide +kernel) (by decide +kernel)
(by decide +kernel) 32 32 (by decide +kernel) (by decide +kernel) (by decide +kernel) (by decide +kernel)
theorem m11_pos_dom : ∀ t ρ, Dom t ρ → 0 < Natural.m11 (1 / 2 - t) (1 / 2 - (1 - ρ) * t) :=
pos_of_TM_val2 G_m11S (by decide +kernel) (by decide +kernel) 2 (by decide +kernel) (by decide +kernel)
end CKLaneA3W