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.Analysis.Convex.Cone.Extension |
| 2 | import Mathlib.Analysis.Convex.Gauge |
| 3 | import Mathlib.Topology.Algebra.Module.FiniteDimension |
| 4 | |
| 5 | /-! # Convex Separation -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.ConvexSeparation |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! HilbertConstruction-local separation results, adapted from Mathlib's geometric |
| 12 | Hahn–Banach proof and using the default elaboration settings. -/ |
| 13 | open Set |
| 14 | open scoped Pointwise |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | |
| 17 | variable {E : Type*} [TopologicalSpace E] [AddCommGroup E] [IsTopologicalAddGroup E] |
| 18 | variable [Module ℝ E] [ContinuousSMul ℝ E] |
| 19 | |
| 20 | private theorem separateConvexOpenSet {s : Set E} (hs₀ : (0 : E) ∈ s) |
| 21 | (hs₁ : Convex ℝ s) (hs₂ : IsOpen s) {x₀ : E} (hx₀ : x₀ ∉ s) : |
| 22 | ∃ f : StrongDual ℝ E, f x₀ = 1 ∧ ∀ x ∈ s, f x < 1 := by |
| 23 | let f : E →ₗ.[ℝ] ℝ := LinearPMap.mkSpanSingleton x₀ 1 (ne_of_mem_of_not_mem hs₀ hx₀).symm |
| 24 | have := exists_extension_of_le_sublinear f (gauge s) (fun c hc => gauge_smul_of_nonneg hc.le) |
| 25 | (gauge_add_le hs₁ <| absorbent_nhds_zero <| hs₂.mem_nhds hs₀) ?_ |
| 26 | · obtain ⟨φ, hφ₁, hφ₂⟩ := this |
| 27 | have hφ₃ : φ x₀ = 1 := by |
| 28 | rw [← f.domain.coe_mk x₀ (Submodule.mem_span_singleton_self _), hφ₁, |
| 29 | LinearPMap.mkSpanSingleton'_apply_self] |
| 30 | have hφ₄ : ∀ x ∈ s, φ x < 1 := fun x hx => |
| 31 | (hφ₂ x).trans_lt (gauge_lt_one_of_mem_of_isOpen hs₂ hx) |
| 32 | refine ⟨⟨φ, ?_⟩, hφ₃, hφ₄⟩ |
| 33 | refine φ.continuous_of_nonzero_on_open _ (hs₂.vadd (-x₀)) (Nonempty.vadd_set ⟨0, hs₀⟩) |
| 34 | (vadd_set_subset_iff.mpr fun x hx => ?_) |
| 35 | change φ (-x₀ + x) ≠ 0 |
| 36 | rw [map_add, map_neg] |
| 37 | specialize hφ₄ x hx |
| 38 | linarith |
| 39 | rintro ⟨x, hx⟩ |
| 40 | obtain ⟨y, rfl⟩ := Submodule.mem_span_singleton.1 hx |
| 41 | rw [LinearPMap.mkSpanSingleton'_apply] |
| 42 | simp only [mul_one, smul_eq_mul] |
| 43 | obtain h | h := le_or_gt y 0 |
| 44 | · exact h.trans (gauge_nonneg _) |
| 45 | · rw [gauge_smul_of_nonneg h.le, smul_eq_mul, RingHom.id_apply, le_mul_iff_one_le_right h] |
| 46 | exact one_le_gauge_of_notMem (hs₁.starConvex hs₀) |
| 47 | (absorbent_nhds_zero <| hs₂.mem_nhds hs₀).absorbs hx₀ |
| 48 | |
| 49 | private theorem separateConvexOpenPoint {s : Set E} {x : E} |
| 50 | (hs : Convex ℝ s) (hopen : IsOpen s) (hne : s.Nonempty) (hx : x ∉ s) : |
| 51 | ∃ f : StrongDual ℝ E, ∀ a ∈ s, f a < f x := by |
| 52 | obtain ⟨a₀, ha₀⟩ := hne |
| 53 | let C := (-a₀) +ᵥ s |
| 54 | have hC0 : (0 : E) ∈ C := by |
| 55 | exact ⟨a₀, ha₀, neg_add_cancel a₀⟩ |
| 56 | have hxC : x - a₀ ∉ C := by |
| 57 | rintro ⟨a, ha, he⟩ |
| 58 | have hax : a = x := by |
| 59 | change -a₀ + a = x - a₀ at he |
| 60 | apply add_left_cancel (a := -a₀) |
| 61 | simpa only [sub_eq_add_neg, add_comm] using he |
| 62 | exact hx (hax ▸ ha) |
| 63 | obtain ⟨f, hf, hsep⟩ := separateConvexOpenSet hC0 (hs.vadd (-a₀)) |
| 64 | (hopen.vadd (-a₀)) hxC |
| 65 | refine ⟨f, fun a ha => ?_⟩ |
| 66 | have h := hsep (-a₀ + a) ⟨a, ha, rfl⟩ |
| 67 | rw [map_add, map_neg] at h |
| 68 | rw [map_sub] at hf |
| 69 | linarith |
| 70 | |
| 71 | theorem separateConvexSetAtExteriorPoint {s : Set E} {x : E} |
| 72 | (hs : Convex ℝ s) (hx : x ∉ interior s) (hint : (interior s).Nonempty) : |
| 73 | ∃ f : StrongDual ℝ E, f ≠ 0 ∧ ∀ a ∈ s, f a ≤ f x := by |
| 74 | obtain ⟨f, hsep⟩ := separateConvexOpenPoint hs.interior isOpen_interior hint hx |
| 75 | refine ⟨f, ?_, fun a ha => ?_⟩ |
| 76 | · obtain ⟨b, hb⟩ := hint |
| 77 | intro hz |
| 78 | have h := hsep b hb |
| 79 | simp [hz] at h |
| 80 | · apply closure_minimal (fun b hb => (hsep b hb).le) |
| 81 | (isClosed_Iic.preimage f.continuous) |
| 82 | simpa only [hs.closure_interior_eq_closure_of_nonempty_interior hint] using subset_closure ha |
| 83 | |
| 84 | end |
| 85 | |
| 86 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.ConvexSeparation |