Hodge conjecture: the CM case in Lean, read and discussed
OpenAI's Lean proof of the Hodge conjecture for CM abelian varieties: rerun it, read its statement, and keep the open questions with their sources. The conjecture is open

| 1 | import OAI.NumberTheory.Adeles.LocalCompletions |
| 2 | |
| 3 | /-! # Local Density -/ |
| 4 | |
| 5 | namespace OAI.NumberTheory.Adeles.LocalDensity.CompletionFactors |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Density of global algebraic integers in the integer ring of a finite completion. -/ |
| 10 | |
| 11 | open _root_.NumberField IsDedekindDomain HeightOneSpectrum |
| 12 | open scoped _root_.NumberField _root_.Topology WithZero |
| 13 | |
| 14 | variable {F : Type*} [Field F] [NumberField F] |
| 15 | (v : HeightOneSpectrum (𝓞 F)) |
| 16 | |
| 17 | theorem local_integer_of_field_mem_closure {x : F} (hx : v.valuation F x ≤ 1) : |
| 18 | algebraMap F (v.adicCompletion F) x ∈ |
| 19 | closure (Set.range (algebraMap (𝓞 F) (v.adicCompletion F))) := by |
| 20 | rw [mem_closure_iff] |
| 21 | intro U hU hxU |
| 22 | obtain ⟨γ, hγ⟩ := Valued.mem_nhds.mp (hU.mem_nhds hxU) |
| 23 | let δ : (ℤᵐ⁰)ˣ := Units.map |
| 24 | (MonoidWithZeroHom.ValueGroup₀.embedding |
| 25 | (f := .ofClass (Valued.v : Valuation (v.adicCompletion F) ℤᵐ⁰))).toMonoidHom γ |
| 26 | obtain ⟨a, ha⟩ := v.exists_valuation_sub_lt_of_integer hx δ |
| 27 | refine ⟨algebraMap (𝓞 F) (v.adicCompletion F) a, hγ ?_, ⟨a, rfl⟩⟩ |
| 28 | change Valued.v.restrict (algebraMap (𝓞 F) (v.adicCompletion F) a - |
| 29 | algebraMap F (v.adicCompletion F) x) < γ.val |
| 30 | rw [Valuation.restrict_lt_iff_lt_embedding] |
| 31 | have hs : algebraMap (𝓞 F) (v.adicCompletion F) a - |
| 32 | algebraMap F (v.adicCompletion F) x = |
| 33 | algebraMap F (v.adicCompletion F) ((a : F) - x) := by |
| 34 | rw [map_sub, ← IsScalarTower.algebraMap_apply (𝓞 F) F (v.adicCompletion F)] |
| 35 | rw [hs] |
| 36 | change Valued.v (((a : F) - x : F) : v.adicCompletion F) < _ |
| 37 | rw [adicCompletion.valued_coe] |
| 38 | exact ha |
| 39 | |
| 40 | /-- Every local integer is approximated by global algebraic integers. -/ |
| 41 | theorem local_integer_mem_closure (x : v.adicCompletion F) |
| 42 | (hx : x ∈ v.adicCompletionIntegers F) : |
| 43 | x ∈ closure (Set.range (algebraMap (𝓞 F) (v.adicCompletion F))) := by |
| 44 | have hp : x ∉ v.adicCompletionIntegers F ∨ |
| 45 | x ∈ closure (Set.range (algebraMap (𝓞 F) (v.adicCompletion F))) := by |
| 46 | refine (v.denseRange_algebraMap F).induction_on |
| 47 | (p := fun y => y ∉ v.adicCompletionIntegers F ∨ |
| 48 | y ∈ closure (Set.range (algebraMap (𝓞 F) (v.adicCompletion F)))) x ?_ ?_ |
| 49 | · exact (Valued.isOpen_valuationSubring (v.adicCompletion F)).isClosed_compl.union |
| 50 | isClosed_closure |
| 51 | · intro a |
| 52 | by_cases ha : v.valuation F a ≤ 1 |
| 53 | · exact Or.inr (local_integer_of_field_mem_closure v ha) |
| 54 | · exact Or.inl (by |
| 55 | change ¬ Valued.v (a : v.adicCompletion F) ≤ 1 |
| 56 | rwa [adicCompletion.valued_coe]) |
| 57 | exact hp.resolve_left (not_not_intro hx) |
| 58 | |
| 59 | end |
| 60 | |
| 61 | end OAI.NumberTheory.Adeles.LocalDensity.CompletionFactors |