{
  "id": "7287",
  "ident": "NS.07287",
  "slug": "papers-courtadekumar--binentropybits-half",
  "title": "The Courtade–Kumar (most informative Boolean function) conjecture · binEntropyBits_half",
  "status": "test",
  "statement_status": "reviewed",
  "statement_md": "The random-variable formulation, stated over probability spaces in universe zero, implies\nthe same bound on probability spaces in any universe. This does not use either research\ndeclaration. -/\n@[category API, AMS 94]\ntheorem courtade_kumar_random_variable_bound\n    (hCK : type_of% @variants.courtade_kumar_random_variable)\n    (n : ℕ) (f : Cube n → Bool) (p : ℝ) (hp₀ : 0 ≤ p) (hp₁ : p ≤ 1)\n    {Ω : Type*} [MeasurableSpace Ω] (μ : Measure Ω) [IsProbabilityMeasure μ]\n    (X Z : Ω → Cube n) (hX : Measurable X) (hZ : Measurable Z)\n    (hlaw : μ.map (fun ω => (X ω, Z ω)) = inputNoiseLaw n p hp₀ hp₁) :\n    let Y : Ω → Cube n := fun ω => cubeXor (X ω) (Z ω)\n    InformationTheory.mutualInformationBits μ (f ∘ X) Y ≤ 1 - binEntropyBits p := by\n  change InformationTheory.mutualInformationBits μ (f ∘ X)\n    (fun ω => cubeXor (X ω) (Z ω)) ≤ 1 - binEntropyBits p\n  rw [mutualInformationBits_of_inputNoiseLaw n f p hp₀ hp₁ μ X Z hX hZ hlaw]\n  exact (courtade_kumar_iff_random_variable.mpr hCK) n f p hp₀ hp₁\n\n/-! ## Tests of the definitions",
  "subjects": [
    "math.IT",
    "msc:94"
  ],
  "tags": [],
  "collection": "papers",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "CourtadeKumar.binEntropyBits_half",
  "statement_lean": "theorem binEntropyBits_half : binEntropyBits (1 / 2) = 1",
  "challenge_source": "/-\nCopyright 2026 The Formal Conjectures Authors.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    https://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n-/\nmodule\n\npublic import FormalConjecturesUtil\n\n/-!\n# The Courtade–Kumar (most informative Boolean function) conjecture\n\nLet $X$ be uniform on the Boolean cube $\\{0,1\\}^n$. Independently of $X$, let the coordinates of $Z$\nbe i.i.d. Bernoulli random variables with parameter $p \\in [0, 1]$, and put $Y = X \\oplus Z$,\nso that $Y$ is the output of $n$ independent binary symmetric channels with crossover\nprobability $p$ on input $X$. The **Courtade–Kumar conjecture** asserts that for every\nBoolean function $f : \\{0,1\\}^n \\to \\{0,1\\}$,\n\n  $I(f(X); Y) \\le 1 - h(p)$,\n\nwhere mutual information and binary entropy are measured in bits.\n\nThe usual restriction to $p \\in [0, 1/2]$ is equivalent to the range used here. For $p > 1/2$,\ncomplementing every output bit replaces $Z$ by its bitwise complement, which is i.i.d.\nBernoulli($1 - p$) noise still independent of $X$; this bijective relabelling of the output\npreserves $I(f(X); Y)$, and $h(1 - p) = h(p)$.\n\nThis file contains two formulations:\n\n* `CourtadeKumar.courtade_kumar` is the elementary finite-sum statement used by the external\n  Lean proof and its comparator check. Its definitions and statement are retained unchanged.\n* `CourtadeKumar.variants.courtade_kumar_random_variable` is the random-variable formulation.\n  Its product-law hypothesis specifies a uniform input and independent i.i.d. Bernoulli channel\n  noise, and its conclusion is about the mutual information of the actual random variables.\n\n`CourtadeKumar.courtade_kumar_iff_random_variable` proves that the two formulations are\nequivalent, without using either research statement. Shannon entropy and mutual information of\nfinite-valued random variables are defined in\n`FormalConjecturesForMathlib.InformationTheory.FiniteEntropy`.\n\nFor $n \\ge 1$, coordinate dictators attain the bound: $I(X_i; Y) = I(X_i; Y_i) = 1 - h(p)$, since\nthe other output coordinates are independent of $(X_i, Y_i)$. The test `mutualInfo_dictator`\nchecks $n = 1$.\n\n*References:*\n- [CK14] T. A. Courtade and G. R. Kumar, *Which Boolean functions maximize mutual information on\n  noisy inputs?*, IEEE Trans. Inf. Theory 60 (2014), no. 8, 4515–4525.\n\nIndependent work on the conjecture from September 2026, in alphabetical order:\n- [CGJLMNW26] Z. Chen, A. Gohari, A. Javanmard, H. Lin, V. Mirrokni, C. Nair, D. P. Woodruff,\n  *A Proof of the Most Informative Boolean Function Conjecture*,\n  [arXiv:2609.24931](https://arxiv.org/abs/2609.24931). A Lean 4 formalisation of the proof is at\n  https://github.com/dpwoodru/general-courtade-kumar-lean.\n- [KS26] D. Kramer and M. Saglam, *On the most informative Boolean function under noise*,\n  manuscript, https://github.com/deepinfra/courtade-kumar.\n- [KT26] Vu Khac Ky and Tuan Tran, *Dictators are most informative*,\n  [arXiv:2609.24184](https://arxiv.org/abs/2609.24184). See also their follow-up *Stability of\n  the Courtade–Kumar inequality*, [arXiv:2609.31797](https://arxiv.org/abs/2609.31797).\n- [MB26] H. Mahdavifar and A. Beirami, *The Most Informative Bit and Beyond: A Proof of the\n  Courtade–Kumar Conjecture and Multibit Extensions*,\n  [arXiv:2609.26444](https://arxiv.org/abs/2609.26444).\n-/\n\n@[expose] public section\n\nnamespace CourtadeKumar\n\nopen scoped BigOperators ENNReal\nopen MeasureTheory\n\n/-! ## The elementary formulation\n\nThe probability interpretations of `bsc`, `jointProb` and `mutualInfo` assume $0 \\le p \\le 1$, and\n`entropy q` is Shannon entropy when the masses $q$ are nonnegative and sum to one; otherwise these\ndefinitions are just total real-valued expressions. -/\n\n/-- The Boolean cube $\\{0,1\\}^n$, with bits represented by `Bool`. -/\nabbrev Cube (n : ℕ) := Fin n → Bool\n\n/-- Binary entropy in bits, $h(p) = -p \\log_2 p - (1 - p) \\log_2 (1 - p)$, with\n$h(0) = h(1) = 0$. -/\nnoncomputable def binEntropyBits (p : ℝ) : ℝ := Real.binEntropy p / Real.log 2\n\n/-- Transition probability of $n$ independent binary symmetric channels with crossover probability\n$p$: $P(Y = y \\mid X = x) = \\prod_i q_i$, where $q_i = 1 - p$ if $x_i = y_i$ and $q_i = p$\notherwise. -/\nnoncomputable def bsc {n : ℕ} (p : ℝ) (x y : Cube n) : ℝ :=\n  ∏ i, if x i = y i then 1 - p else p\n\n/-- The joint probability $P(f(X) = b, Y = y)$ for $X$ uniform on the cube and $Y$ the channel\noutput on input $X$. -/\nnoncomputable def jointProb {n : ℕ} (f : Cube n → Bool) (p : ℝ) (b : Bool) (y : Cube n) : ℝ :=\n  (2 : ℝ) ^ (-(n : ℤ)) * ∑ x, if f x = b then bsc p x y else 0\n\n/-- Shannon entropy in bits of a probability mass function $q$ on a finite type. -/\nnoncomputable def entropy {α : Type*} [Fintype α] (q : α → ℝ) : ℝ :=\n  (∑ a, Real.negMulLog (q a)) / Real.log 2\n\n/-- The mutual information $I(f(X); Y) = H(f(X)) + H(Y) - H(f(X), Y)$, in bits. -/\nnoncomputable def mutualInfo {n : ℕ} (f : Cube n → Bool) (p : ℝ) : ℝ :=\n  entropy (fun b => ∑ y, jointProb f p b y) + entropy (fun y => ∑ b, jointProb f p b y) -\n    entropy (fun z : Bool × Cube n => jointProb f p z.1 z.2)\n\nset_option linter.style.formal_proof_palomar false in\n/-- **The Courtade–Kumar conjecture.** For every $n$, every Boolean function $f$ on\n$\\{0,1\\}^n$ and every crossover probability $p \\in [0, 1]$, $I(f(X); Y) \\le 1 - h(p)$. -/\n@[category research solved, AMS 94,\n  formal_proof using lean4 at \"https://github.com/dpwoodru/general-courtade-kumar-lean/blob/c3599c05181ad357331b701edf8fd8ec75c88305/verification/comparator/CKChallenge/Solution.lean#L6\"]\ntheorem courtade_kumar (n : ℕ) (f : Cube n → Bool) (p : ℝ) (hp₀ : 0 ≤ p) (hp₁ : p ≤ 1) :\n    mutualInfo f p ≤ 1 - binEntropyBits p := by\n  sorry\n\n/-! ## The random-variable formulation -/\n\n/-- Coordinatewise xor on the Boolean cube. -/\ndef cubeXor {n : ℕ} (x z : Cube n) : Cube n :=\n  fun i => Bool.xor (x i) (z i)\n\n/-- The joint law of a uniform input and independent i.i.d. Bernoulli channel noise.\n\nOn this probability space the input and noise are the two coordinate projections. -/\nnoncomputable def inputNoiseLaw (n : ℕ) (p : ℝ) (hp₀ : 0 ≤ p) (hp₁ : p ≤ 1) :\n    Measure (Cube n × Cube n) :=\n  (PMF.uniformOfFintype (Cube n)).toMeasure.prod\n    (Measure.pi fun _ : Fin n =>\n      ProbabilityTheory.bernoulliMeasure true false (⟨p, hp₀, hp₁⟩ : unitInterval))\n\n@[category API, AMS 94]\ninstance (n : ℕ) (p : ℝ) (hp₀ : 0 ≤ p) (hp₁ : p ≤ 1) :\n    IsProbabilityMeasure (inputNoiseLaw n p hp₀ hp₁) := by\n  unfold inputNoiseLaw\n  infer_instance\n\nnamespace variants\n\nset_option linter.style.formal_proof_palomar false in\n/-- **The Courtade–Kumar conjecture, in random-variable form.**\n\nThe pushforward in the hypothesis is the joint distribution of $(X, Z)$. The uniform measure on\n`Cube n` is the law of $n$ i.i.d. Bernoulli($1/2$) bits. The product law makes the coordinates of\n$Z$ i.i.d. Bernoulli($p$) and makes the whole noise vector independent of $X$. In\n`bernoulliMeasure true false p`, `true` has probability $p$ and denotes a flip.\n\nConditional on $X$, $Y = X \\oplus Z$ flips each input coordinate independently with probability\n$p$: this is the memoryless binary symmetric channel with crossover probability $p$ from $X$ to\n$Y$. Every Boolean function is allowed, including constants. All maps between these finite\ndiscrete types are measurable, so $f \\circ X$ and $Y$ are measurable. The conclusion is\n$I(f(X); Y) \\le 1 - h(p)$ in bits, for the entire output vector $Y$.\n\nThe linked proof proves the elementary statement `CourtadeKumar.courtade_kumar`, and\n`CourtadeKumar.courtade_kumar_iff_random_variable` transfers it to this formulation. -/\n@[category research solved, AMS 94,\n  formal_proof using lean4 at \"https://github.com/dpwoodru/general-courtade-kumar-lean/blob/c3599c05181ad357331b701edf8fd8ec75c88305/verification/comparator/CKChallenge/Solution.lean#L6\"]\ntheorem courtade_kumar_random_variable :\n    ∀ (n : ℕ) (f : Cube n → Bool) (p : ℝ) (hp₀ : 0 ≤ p) (hp₁ : p ≤ 1)\n      (Ω : Type) [MeasurableSpace Ω] (μ : Measure Ω) [IsProbabilityMeasure μ]\n      (X Z : Ω → Cube n),\n      Measurable X →\n      Measurable Z →\n      μ.map (fun ω => (X ω, Z ω)) =\n        (PMF.uniformOfFintype (Cube n)).toMeasure.prod\n          (Measure.pi fun _ : Fin n =>\n            ProbabilityTheory.bernoulliMeasure true false\n              (⟨p, hp₀, hp₁⟩ : unitInterval)) →\n      let Y : Ω → Cube n := fun ω => cubeXor (X ω) (Z ω)\n      InformationTheory.mutualInformationBits μ (f ∘ X) Y ≤ 1 - binEntropyBits p := by\n  sorry\n\nend variants\n\n/-! ## API: equivalence of the formulations -/\n\n@[category API, AMS 94]\nprivate theorem cubeXor_eq_iff {n : ℕ} (x z y : Cube n) :\n    cubeXor x z = y ↔ z = cubeXor x y := by\n  simp only [funext_iff, cubeXor]\n  exact forall_congr' fun i => by\n    cases x i <;> cases z i <;> cases y i <;> decide\n\n@[category API, AMS 94]\nprivate theorem noiseProduct_cubeXor {n : ℕ} (p : ℝ) (x y : Cube n) :\n    (∏ i, if cubeXor x y i then p else 1 - p) = bsc p x y := by\n  unfold bsc\n  apply Finset.prod_congr rfl\n  intro i _\n  cases hx : x i <;> cases hy : y i <;> simp [cubeXor, hx, hy]\n\n/-- The singleton masses of the input/noise product probability space. -/\n@[category API, AMS 94]\nprivate theorem inputNoiseLaw_real_singleton (n : ℕ) (p : ℝ)\n    (hp₀ : 0 ≤ p) (hp₁ : p ≤ 1) (x z : Cube n) :\n    (inputNoiseLaw n p hp₀ hp₁).real {(x, z)} =\n      (2 : ℝ) ^ (-(n : ℤ)) * ∏ i, if z i then p else 1 - p := by\n  have hB (b : Bool) :\n      ((ProbabilityTheory.bernoulliMeasure true false\n        (⟨p, hp₀, hp₁⟩ : unitInterval)) {b}).toReal = (if b then p else 1 - p) := by\n    rw [← measureReal_def]\n    cases b\n    · rw [ProbabilityTheory.bernoulliMeasure_real_apply_of_notMem_of_mem _\n        (measurableSet_singleton _) (by simp) (by simp)]\n      simp\n    · rw [ProbabilityTheory.bernoulliMeasure_real_apply_of_mem_of_notMem _\n        (measurableSet_singleton _) (by simp) (by simp)]\n      simp\n  have hs : ({(x, z)} : Set (Cube n × Cube n)) =\n      {x} ×ˢ Set.pi Set.univ (fun i => ({z i} : Set Bool)) := by\n    ext w\n    simp [Prod.ext_iff, Set.mem_pi, funext_iff]\n  rw [measureReal_def, inputNoiseLaw, hs, Measure.prod_prod, Measure.pi_pi,\n    ENNReal.toReal_mul, ENNReal.toReal_prod]\n  simp [hB, Cube, zpow_neg]\n\n/-- The joint probability of $(f(X), X \\oplus Z)$ on the product probability space is\nthe elementary `jointProb`. -/\n@[category API, AMS 94]\nprivate theorem inputNoiseLaw_jointProb (n : ℕ) (f : Cube n → Bool) (p : ℝ)\n    (hp₀ : 0 ≤ p) (hp₁ : p ≤ 1) (b : Bool) (y : Cube n) :\n    (inputNoiseLaw n p hp₀ hp₁).real\n      ((fun ω : Cube n × Cube n => (f ω.1, cubeXor ω.1 ω.2)) ⁻¹' {(b, y)}) =\n      jointProb f p b y := by\n  classical\n  have hsum (s : Set (Cube n × Cube n)) :\n      (inputNoiseLaw n p hp₀ hp₁).real s =\n        ∑ w, if w ∈ s then (inputNoiseLaw n p hp₀ hp₁).real {w} else 0 := by\n    simpa [Finset.sum_filter] using\n      (sum_measureReal_singleton (μ := inputNoiseLaw n p hp₀ hp₁)\n        (Finset.univ.filter (fun w => w ∈ s))).symm\n  rw [hsum]\n  simp only [Fintype.sum_prod_type, Set.mem_preimage, Set.mem_singleton_iff,\n    Prod.mk.injEq, inputNoiseLaw_real_singleton]\n  unfold jointProb\n  rw [Finset.mul_sum]\n  apply Finset.sum_congr rfl\n  intro x _\n  by_cases h : f x = b\n  · simp [h, cubeXor_eq_iff, noiseProduct_cubeXor]\n  · simp [h]\n\n/-- Mutual information on the explicit input/noise probability space equals the elementary\nfinite-sum expression. -/\n@[category API, AMS 94]\ntheorem mutualInformationBits_model_eq (n : ℕ) (f : Cube n → Bool) (p : ℝ)\n    (hp₀ : 0 ≤ p) (hp₁ : p ≤ 1) :\n    InformationTheory.mutualInformationBits (inputNoiseLaw n p hp₀ hp₁)\n      (fun ω : Cube n × Cube n => f ω.1) (fun ω => cubeXor ω.1 ω.2) =\n      mutualInfo f p := by\n  let μ := inputNoiseLaw n p hp₀ hp₁\n  let T : Cube n × Cube n → Bool × Cube n := fun ω => (f ω.1, cubeXor ω.1 ω.2)\n  have hT : Measurable T := measurable_of_countable T\n  have hν (w : Bool × Cube n) : (μ.map T).real {w} = jointProb f p w.1 w.2 := by\n    rw [measureReal_def, Measure.map_apply hT (measurableSet_singleton w)]\n    exact inputNoiseLaw_jointProb n f p hp₀ hp₁ w.1 w.2\n  have hMI : InformationTheory.mutualInformationBits (μ.map T) Prod.fst Prod.snd =\n      InformationTheory.mutualInformationBits μ (fun ω => f ω.1) (fun ω => cubeXor ω.1 ω.2) :=\n    InformationTheory.mutualInformationBits_map μ hT measurable_fst measurable_snd\n  rw [← hMI, InformationTheory.mutualInformationBits_fst_snd]\n  simp only [hν, mutualInfo, entropy]\n\n/-- The same identity on any measurable space carrying the specified joint input/noise law. -/\n@[category API, AMS 94]\ntheorem mutualInformationBits_of_inputNoiseLaw (n : ℕ) (f : Cube n → Bool) (p : ℝ)\n    (hp₀ : 0 ≤ p) (hp₁ : p ≤ 1)\n    {Ω : Type*} [MeasurableSpace Ω] (μ : Measure Ω) (X Z : Ω → Cube n)\n    (hX : Measurable X) (hZ : Measurable Z)\n    (hlaw : μ.map (fun ω => (X ω, Z ω)) = inputNoiseLaw n p hp₀ hp₁) :\n    InformationTheory.mutualInformationBits μ (f ∘ X) (fun ω => cubeXor (X ω) (Z ω)) =\n      mutualInfo f p := by\n  have hXZ : Measurable (fun ω => (X ω, Z ω)) := by fun_prop\n  rw [← mutualInformationBits_model_eq n f p hp₀ hp₁, ← hlaw,\n    InformationTheory.mutualInformationBits_map μ hXZ\n      (measurable_of_countable (fun ω : Cube n × Cube n => f ω.1))\n      (measurable_of_countable (fun ω : Cube n × Cube n => cubeXor ω.1 ω.2))]\n  rfl\n\n/-- The elementary formulation and the random-variable formulation are equivalent.\n\nNeither direction uses either research declaration. -/\n@[category API, AMS 94]\ntheorem courtade_kumar_iff_random_variable :\n    type_of% @courtade_kumar ↔ type_of% @variants.courtade_kumar_random_variable := by\n  constructor\n  · intro h n f p hp₀ hp₁ Ω mΩ μ hμ X Z hX hZ hlaw\n    change InformationTheory.mutualInformationBits μ (f ∘ X)\n      (fun ω => cubeXor (X ω) (Z ω)) ≤ 1 - binEntropyBits p\n    rw [mutualInformationBits_of_inputNoiseLaw n f p hp₀ hp₁ μ X Z hX hZ hlaw]\n    exact h n f p hp₀ hp₁\n  · intro h n f p hp₀ hp₁\n    rw [← mutualInformationBits_model_eq n f p hp₀ hp₁]\n    exact h n f p hp₀ hp₁ (Cube n × Cube n) (inputNoiseLaw n p hp₀ hp₁) Prod.fst Prod.snd\n      measurable_fst measurable_snd (by\n        change (inputNoiseLaw n p hp₀ hp₁).map id = inputNoiseLaw n p hp₀ hp₁\n        simp)\n\n/-- The random-variable formulation, stated over probability spaces in universe zero, implies\nthe same bound on probability spaces in any universe. This does not use either research\ndeclaration. -/\n@[category API, AMS 94]\ntheorem courtade_kumar_random_variable_bound\n    (hCK : type_of% @variants.courtade_kumar_random_variable)\n    (n : ℕ) (f : Cube n → Bool) (p : ℝ) (hp₀ : 0 ≤ p) (hp₁ : p ≤ 1)\n    {Ω : Type*} [MeasurableSpace Ω] (μ : Measure Ω) [IsProbabilityMeasure μ]\n    (X Z : Ω → Cube n) (hX : Measurable X) (hZ : Measurable Z)\n    (hlaw : μ.map (fun ω => (X ω, Z ω)) = inputNoiseLaw n p hp₀ hp₁) :\n    let Y : Ω → Cube n := fun ω => cubeXor (X ω) (Z ω)\n    InformationTheory.mutualInformationBits μ (f ∘ X) Y ≤ 1 - binEntropyBits p := by\n  change InformationTheory.mutualInformationBits μ (f ∘ X)\n    (fun ω => cubeXor (X ω) (Z ω)) ≤ 1 - binEntropyBits p\n  rw [mutualInformationBits_of_inputNoiseLaw n f p hp₀ hp₁ μ X Z hX hZ hlaw]\n  exact (courtade_kumar_iff_random_variable.mpr hCK) n f p hp₀ hp₁\n\n/-! ## Tests of the definitions -/\n\n@[category test, AMS 94]\ntheorem binEntropyBits_half : binEntropyBits (1 / 2) = 1 := by\n  have h : Real.log 2 ≠ 0 := ne_of_gt (Real.log_pos (by norm_num))\n  simpa [binEntropyBits, one_div] using div_self h\n\n@[category API, AMS 94]\nprivate theorem sum_cube_one (F : Cube 1 → ℝ) :\n    ∑ x, F x = F (fun _ => true) + F (fun _ => false) := by\n  rw [Fintype.sum_equiv (Equiv.funUnique (Fin 1) Bool) F (fun b => F (fun _ => b))]\n  · exact Fintype.sum_bool _\n  · intro x\n    simp only [Equiv.funUnique_apply]\n    congr 1\n    funext i\n    rw [Subsingleton.elim i default]\n\n@[category API, AMS 94]\nprivate theorem jointProb_dictator (p : ℝ) (b : Bool) (y : Cube 1) :\n    jointProb (n := 1) (fun x => x 0) p b y = (if b = y 0 then 1 - p else p) / 2 := by\n  unfold jointProb bsc\n  rw [sum_cube_one]\n  simp only [Fin.prod_univ_one]\n  cases b <;> cases y 0 <;> simp <;> ring\n\n@[category API, AMS 94]\nprivate theorem negMulLog_div_two (x : ℝ) :\n    Real.negMulLog (x / 2) = Real.negMulLog x / 2 + x * Real.log 2 / 2 := by\n  rw [div_eq_mul_inv, Real.negMulLog_mul]\n  have h : Real.negMulLog (2 : ℝ)⁻¹ = Real.log 2 / 2 := by\n    simp only [Real.negMulLog, Real.log_inv]\n    ring\n  rw [h]\n  ring\n\n/-- Algebraic identity for the one-coordinate dictator $f(x) = x_0$. For $p \\in [0, 1]$, it shows\nthat the bound is attained, so the conjecture is sharp and the statement is not vacuous. -/\n@[category test, AMS 94]\ntheorem mutualInfo_dictator (p : ℝ) :\n    mutualInfo (n := 1) (fun x => x 0) p = 1 - binEntropyBits p := by\n  have hlog : Real.log 2 ≠ 0 := ne_of_gt (Real.log_pos (by norm_num))\n  have jm : ∀ b y, jointProb (n := 1) (fun x => x 0) p b y =\n      (if b = y 0 then 1 - p else p) / 2 := jointProb_dictator p\n  have half : Real.negMulLog (1 / 2) = Real.log 2 / 2 := by\n    rw [negMulLog_div_two, Real.negMulLog_one]\n    ring\n  have mf : ∀ b : Bool, ∑ y, jointProb (n := 1) (fun x => x 0) p b y = 1 / 2 := by\n    intro b\n    rw [sum_cube_one, jm, jm]\n    cases b <;> simp <;> ring\n  have my : ∀ y : Cube 1, ∑ b, jointProb (n := 1) (fun x => x 0) p b y = 1 / 2 := by\n    intro y\n    rw [Fintype.sum_bool, jm, jm]\n    cases y 0 <;> simp <;> ring\n  have e1 : entropy (fun b => ∑ y, jointProb (n := 1) (fun x => x 0) p b y) = 1 := by\n    unfold entropy\n    simp only [mf, Fintype.sum_bool, half]\n    field_simp\n    ring\n  have e2 : entropy (fun y => ∑ b, jointProb (n := 1) (fun x => x 0) p b y) = 1 := by\n    unfold entropy\n    simp only [my]\n    rw [sum_cube_one]\n    simp only [half]\n    field_simp\n    ring\n  have e3 : entropy (fun z : Bool × Cube 1 => jointProb (n := 1) (fun x => x 0) p z.1 z.2) =\n      1 + binEntropyBits p := by\n    unfold entropy binEntropyBits\n    rw [Fintype.sum_prod_type, Fintype.sum_bool, sum_cube_one, sum_cube_one]\n    simp only [jm]\n    simp only [if_true, if_false, Bool.true_eq_false, Bool.false_eq_true]\n    rw [Real.binEntropy_eq_negMulLog_add_negMulLog_one_sub, negMulLog_div_two, negMulLog_div_two]\n    field_simp\n    ring\n  unfold mutualInfo\n  rw [e1, e2, e3]\n  ring\n\nend CourtadeKumar\n",
  "statement_hash": "4d9f2c8df52f965ad09f26ba7a68c2b0e0a23e588900cd423549d99bb739c5ae",
  "toolchain": "leanprover/lean4:v4.33.1",
  "upstream_commit": "f9b3868d5ca994a7bf95039bcec05338c0c21e2f",
  "workspace": "formal-conjectures",
  "field": "math",
  "formalization": "formal",
  "verification": "lean-kernel",
  "license": "Apache-2.0",
  "attribution": "google-deepmind/formal-conjectures contributors",
  "metric_name": null,
  "metric_direction": null,
  "critiques": [],
  "public_partial_proofs": [],
  "research_threads": [],
  "instructions": "Read research_threads first: other people's public repositories and what they already tried. Write Solution.lean starting from challenge_source. Keep every definition identical, prove decl_name with exactly the same type, no sorry in its dependency closure, no new axioms, no native_decide, no metaprogramming. Submit with POST /api/v1/submissions."
}