This journal is in preparation. Submissions are open as a pilot and the editorial board is being formed. Articles marked Demonstration show the format only.
Journal of Machine-Verified MathematicsPeer-reviewed mathematics with machine-checked proofs, for the age of AI

Back to the article

Formal proof

Hofstadter's set (Erdős problem 424) has natural density 2/3

Verification record

Toolchain leanprover/lean4:v4.35.0, 133 Lean files, 26343 lines, tree hash a34048030042c2ee….

CheckResult
buildpass
sorrypass
sourcespass
axiomspass
statementpass

Axioms used:

  • Hofstadter.density_eq_two_thirds: Classical.choice, Quot.sound, propext

Files

Start with the statement, then its proof. Names declared in this project link to their definitions; other names link to the Mathlib documentation.

FileLines
Challenge.lean · statement34
Solution.lean · proof of the statement38
E424/Calc.lean159
E424/Defs.lean344
E424/DirichletError.lean10
E424/DivisorMoments.lean12
E424/HighBand.lean12
E424/Input.lean7
E424/LowBand.lean14
E424/MacroRigidity.lean10
E424/Main.lean309
E424/NaturalDensity.lean11
E424/PropD.lean414
E424/PropG.lean99
E424/PropL.lean213
E424/Rigidity.lean12
E424/RoughElements.lean11
E424/Setup.lean101
E424/ToolDefs.lean32
E424/Tools.lean21
E424/DirichletError/Basic.lean126
E424/DirichletError/L28.lean62
E424/DirichletError/L29.lean180
E424/DirichletError/L29AuxA.lean158
E424/DirichletError/L29AuxB.lean162
E424/DirichletError/L29AuxC.lean279
E424/DirichletError/L29AuxD.lean195
E424/DirichletError/L29ab.lean440
E424/DirichletError/L29abAux.lean310
E424/DivisorMoments/L13.lean49
E424/DivisorMoments/L13Aux.lean325
E424/DivisorMoments/L16Dev.lean522
E424/DivisorMoments/L17.lean78
E424/DivisorMoments/L17Aux.lean351
E424/DivisorMoments/Moments.lean244
E424/DivisorMoments/MomentsAux.lean468
E424/HighBand/L30.lean26
E424/HighBand/L30Aux.lean560
E424/HighBand/L30Core.lean313
E424/HighBand/L31.lean123
E424/HighBand/L31Aux.lean206
E424/HighBand/L31Aux2.lean298
E424/HighBand/L31Aux3.lean114
E424/HighBand/L31Aux4.lean228
E424/HighBand/L32.lean299
E424/HighBand/L32Aux1.lean305
E424/HighBand/L32Aux2.lean320
E424/HighBand/L33.lean175
E424/HighBand/L33Aux.lean347
E424/HighBand/L34.lean332
E424/HighBand/L34Asym.lean116
E424/HighBand/L34Aux.lean227
E424/HighBand/L34Aux2.lean227
E424/HighBand/L35.lean152
E424/HighBand/L35Aux1.lean408
E424/HighBand/L35Aux2.lean365
E424/HighBand/L35Aux3.lean246
E424/HighBand/L35Aux4.lean250
E424/HighBand/L35Aux5.lean261
E424/Input/Cert.lean91
E424/Input/Count.lean176
E424/Input/Defs.lean80
E424/Input/Drift.lean135
E424/Input/Gen.lean63
E424/Input/Leaves.lean195
E424/Input/Main.lean172
E424/Input/Step.lean69
E424/Input/Words.lean53
E424/LowBand/Chain.lean169
E424/LowBand/ChainAux.lean136
E424/LowBand/Defs.lean43
E424/LowBand/L36.lean220
E424/LowBand/L36Aux.lean140
E424/LowBand/L36Aux2.lean277
E424/LowBand/L37.lean177
E424/LowBand/L37Aux.lean101
E424/LowBand/L38.lean275
E424/LowBand/L38Aux.lean110
E424/LowBand/L39.lean129
E424/LowBand/L39Aux.lean271
E424/LowBand/L40.lean227
E424/LowBand/L40Aux.lean129
E424/LowBand/L40Aux2.lean223
E424/LowBand/L40Aux3.lean147
E424/MacroRigidity/Basic.lean158
E424/MacroRigidity/L27.lean324
E424/MacroRigidity/L27Aux.lean78
E424/MacroRigidity/L27Aux2.lean167
E424/MacroRigidity/L27Aux3.lean106
E424/NaturalDensity/L41.lean119
E424/NaturalDensity/L41Aux.lean197
E424/NaturalDensity/L42.lean132
E424/NaturalDensity/L43.lean103
E424/Rigidity/Core.lean1238
E424/Rigidity/FamRigid.lean327
E424/Rigidity/L25.lean193
E424/Rigidity/L25Aux.lean314
E424/Rigidity/Rig.lean198
E424/Rigidity/Setup.lean62
E424/RoughElements/L10.lean163
E424/RoughElements/L12.lean165
E424/RoughElements/L12Aux.lean213
E424/RoughElements/L6.lean238
E424/RoughElements/L7.lean73
E424/RoughElements/L8.lean222
E424/RoughElements/L8Aux.lean310
E424/RoughElements/L9.lean622
E424/RoughElements/L9Aux.lean278
E424/Setup/L3log.lean132
E424/Setup/L3logAux.lean75
E424/Tools/T1.lean308
E424/Tools/T10.lean31
E424/Tools/T10Aux.lean570
E424/Tools/T11.lean457
E424/Tools/T11Aux.lean167
E424/Tools/T12.lean131
E424/Tools/T2.lean334
E424/Tools/T2Aux.lean503
E424/Tools/T3.lean144
E424/Tools/T4.lean191
E424/Tools/T4Aux.lean139
E424/Tools/T5.lean144
E424/Tools/T5Aux.lean87
E424/Tools/T6.lean189
E424/Tools/T6Aux.lean188
E424/Tools/T7.lean171
E424/Tools/T7Aux.lean230
E424/Tools/T7Aux2.lean187
E424/Tools/T7Aux3.lean71
E424/Tools/T8.lean226
E424/Tools/T8Aux.lean89
E424/Tools/T9.lean104
E424/Tools/T9Aux.lean89