Index of theproofnetwork/open-problems@860a535/Prove2Me/Definitions/Def_QED_E211.lean
qedmarketβs copy of theproofnetwork/open-problems@860a535, 3 Dec 2026original source β
/-From Prove2Me, definition `QED_E211` (https://prove2.me/definitions/933d3609-dab5-4726-ae72-ec71e64cc926). Apache-2.0 per Prove2Me's terms.-/import Mathlib /-! QED-E211: Two consecutive 1s infinitely often in the binary expansion of β2Write β2 in binary: 1.0110101000001001111... Every irrational number has infinitely many 0s, 1s, '01's and '10's in its binary expansion, but nothing known forces '11' to appear infinitely often. Prove that the block 11 occurs infinitely often in the binary expansion of β2.Informal statement: Let $b_n=\lfloor 2^n\sqrt2\rfloor \bmod 2$. Prove that $\{n\ge0: b_n=b_{n+1}=1\}$ is infinite; equivalently, no tail of the binary expansion of $\sqrt2$ avoids the block $11$.Formalization notes: Since β2 is irrational its binary expansion is unique, and its n-th binarydigit after the point (n β₯ 1; n = 0 gives the units digit 1) is β2^n β2β mod 2. We define`bit n := β(2:β)^n * β2β % 2` as an integer (`Int.floor`, `Real.sqrt`; the value is in {0,1}because βΒ·β β₯ 0 here and `%` on β€ with positive modulus is the nonnegative remainder). Claim saysthe set of n with bit n = bit (n+1) = 1 is infinite. Including n = 0 (the integer digit) changesnothing, since only infinitude matters. Proving Β¬Claim means showing the expansion of β2 iseventually free of the block 11.-/namespace OpenProblems.QEDE211noncomputable section /-- The n-th binary digit of β2 (n = 0: units digit; n β₯ 1: n-th digit after the point). -/def bit (n : β) : β€ := β(2 : β) ^ n * Real.sqrt 2β % 2 def Claim : Prop := Set.Infinite {n : β | bit n = 1 β§ bit (n + 1) = 1} endend OpenProblems.QEDE211