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 Mathlib |
| 2 | import OAI.AlgebraicGeometry.ComplexMultiplication.GaloisCMType |
| 3 | |
| 4 | /-! # Weak Approximation -/ |
| 5 | |
| 6 | namespace OAI.Analysis.DifferentialForms.WeakApproximation.Local |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /- WeakApproximation is used with its stated completion-valued conclusion. The local targets |
| 11 | are field elements (eventually 0 or 1), so no surjectivity of a completion map |
| 12 | onto ℂ is required. No statement stub is imported. -/ |
| 13 | |
| 14 | open scoped Classical |
| 15 | open _root_.NumberField |
| 16 | |
| 17 | variable {E Place : Type*} [Field E] [Algebra ℚ E] [NumberField E] |
| 18 | [Fintype Place] |
| 19 | |
| 20 | /-- The supplied WeakApproximation proposition, specialized to E and the finite place set. -/ |
| 21 | def WeakApproximationInput : Prop := |
| 22 | ∀ (v : Place → AbsoluteValue E ℝ), |
| 23 | (∀ i, (v i).IsNontrivial) → |
| 24 | (Pairwise fun i j => ¬ (v i).IsEquiv (v j)) → |
| 25 | DenseRange (fun x : E => fun i : Place => (x : (v i).Completion)) |
| 26 | |
| 27 | omit [NumberField E] [Fintype Place] in |
| 28 | lemma distinct_places |
| 29 | (σ : Place → E →ₐ[ℚ] ℂ) |
| 30 | (hσ : Function.Injective (fun p : Place × Bool => |
| 31 | if p.2 then AlgebraicGeometry.ComplexMultiplication.EmbeddingHodgeType.CM.conjugateEmbedding (σ p.1) else σ p.1)) : |
| 32 | Function.Injective (fun τ => InfinitePlace.mk (σ τ).toRingHom) := by |
| 33 | intro u v huv |
| 34 | rcases InfinitePlace.mk_eq_iff.mp huv with h | h |
| 35 | · have he : σ u = σ v := by |
| 36 | ext x |
| 37 | exact congrArg (fun f : E →+* ℂ => f x) h |
| 38 | have hp : (u, false) = (v, false) := hσ (show (if (false : Bool) then AlgebraicGeometry.ComplexMultiplication.EmbeddingHodgeType.CM.conjugateEmbedding (σ u) else σ u) = |
| 39 | (if (false : Bool) then AlgebraicGeometry.ComplexMultiplication.EmbeddingHodgeType.CM.conjugateEmbedding (σ v) else σ v) from he) |
| 40 | exact congrArg Prod.fst hp |
| 41 | · have he : AlgebraicGeometry.ComplexMultiplication.EmbeddingHodgeType.CM.conjugateEmbedding (σ u) = σ v := by |
| 42 | ext x |
| 43 | exact congrArg (fun f : E →+* ℂ => f x) h |
| 44 | have hp : (u, true) = (v, false) := hσ (show (if (true : Bool) then AlgebraicGeometry.ComplexMultiplication.EmbeddingHodgeType.CM.conjugateEmbedding (σ u) else σ u) = |
| 45 | (if (false : Bool) then AlgebraicGeometry.ComplexMultiplication.EmbeddingHodgeType.CM.conjugateEmbedding (σ v) else σ v) from he) |
| 46 | have hb := congrArg Prod.snd hp |
| 47 | cases hb |
| 48 | |
| 49 | omit [NumberField E] in |
| 50 | lemma approximate_local_field_elements |
| 51 | (hWeakApproximation : WeakApproximationInput (E := E) (Place := Place)) |
| 52 | (σ : Place → E →ₐ[ℚ] ℂ) |
| 53 | (hσ : Function.Injective (fun p : Place × Bool => |
| 54 | if p.2 then AlgebraicGeometry.ComplexMultiplication.EmbeddingHodgeType.CM.conjugateEmbedding (σ p.1) else σ p.1)) |
| 55 | (target : Place → E) (δ : Place → ℝ) (hδ : ∀ τ, 0 < δ τ) : |
| 56 | ∃ t : E, ∀ τ, dist (σ τ t) (σ τ (target τ)) < δ τ := by |
| 57 | let w : Place → InfinitePlace E := fun τ => InfinitePlace.mk (σ τ).toRingHom |
| 58 | have hw : Function.Injective w := distinct_places σ hσ |
| 59 | let O : Set ((τ : Place) → (w τ).val.Completion) := |
| 60 | {z | ∀ τ, dist (z τ) (target τ : (w τ).val.Completion) < δ τ} |
| 61 | have ho : IsOpen O := by |
| 62 | simp only [O, Set.ofPred_forall] |
| 63 | apply isOpen_iInter_of_finite |
| 64 | intro τ |
| 65 | exact isOpen_lt ((continuous_apply τ).dist continuous_const) continuous_const |
| 66 | have hn : O.Nonempty := ⟨fun τ => (target τ : (w τ).val.Completion), by |
| 67 | intro τ |
| 68 | simpa using hδ τ⟩ |
| 69 | have hd := hWeakApproximation (fun τ => (w τ).val) (fun τ => (w τ).isNontrivial) |
| 70 | (fun u v huv he => huv (hw (InfinitePlace.eq_iff_isEquiv.mpr he))) |
| 71 | obtain ⟨t, ht⟩ := hd.exists_mem_open ho hn |
| 72 | refine ⟨t, fun τ => ?_⟩ |
| 73 | have h := ht τ |
| 74 | change dist |
| 75 | ((WithAbs.toAbs (w τ).val t : WithAbs (w τ).val) : (w τ).val.Completion) |
| 76 | ((WithAbs.toAbs (w τ).val (target τ) : WithAbs (w τ).val) : |
| 77 | (w τ).val.Completion) < δ τ at h |
| 78 | rw [UniformSpace.Completion.dist_eq, dist_eq_norm] at h |
| 79 | change ‖σ τ (t - target τ)‖ < δ τ at h |
| 80 | simpa only [map_sub, dist_eq_norm] using h |
| 81 | |
| 82 | end |
| 83 | |
| 84 | end OAI.Analysis.DifferentialForms.WeakApproximation.Local |