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.Geometry.ComplexTorus.RiemannProjectivity.FiniteRank |
| 2 | import OAI.Geometry.ComplexTorus.RiemannProjectivity.FiniteSubmersion |
| 3 | import Mathlib.Data.Set.Finite.Lemmas |
| 4 | |
| 5 | /-! # Maximal Rank Of -/ |
| 6 | |
| 7 | namespace OAI.Geometry.ComplexTorus.RiemannProjectivity.MaximalRankOf.Constructions.MaximalRank |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! |
| 12 | # RiemannProjectivity: a finite holomorphic fiber at maximal rank is regular |
| 13 | |
| 14 | Project to the derivative's image and use its implicit-function coordinates. |
| 15 | The finite-rank chart theorem removes every vertical direction, forcing the |
| 16 | original derivative to be injective. |
| 17 | -/ |
| 18 | |
| 19 | open Set Filter _root_.Module |
| 20 | open scoped _root_.Topology ContDiff |
| 21 | |
| 22 | variable {V W : Type*} [NormedAddCommGroup V] [NormedSpace ℂ V] [FiniteDimensional ℂ V] |
| 23 | [NormedAddCommGroup W] [NormedSpace ℂ W] [FiniteDimensional ℂ W] |
| 24 | |
| 25 | theorem injective_fderiv_of_maximal_rank {F : V → W} {U : Set V} |
| 26 | (hU : IsOpen U) (hF : DifferentiableOn ℂ F U) {x : V} (hx : x ∈ U) |
| 27 | (hmax : ∀ z ∈ U, finrank ℂ (fderiv ℂ F z).range ≤ finrank ℂ (fderiv ℂ F x).range) |
| 28 | (hfinite : {z : V | z ∈ U ∧ F z = F x}.Finite) : Function.Injective (fderiv ℂ F x) := by |
| 29 | let : CompleteSpace V := FiniteDimensional.complete ℂ V |
| 30 | let A := fderiv ℂ F x |
| 31 | let R := A.range |
| 32 | obtain ⟨Q₀, hQ₀⟩ := R.subtype.exists_leftInverse_of_injective |
| 33 | (LinearMap.ker_eq_bot.mpr Subtype.val_injective) |
| 34 | let Q := Q₀.toContinuousLinearMap |
| 35 | have hQ (v : R) : Q v = v := LinearMap.congr_fun hQ₀ v |
| 36 | let d := Q.comp A |
| 37 | have hd : Function.Surjective d := by |
| 38 | intro y |
| 39 | obtain ⟨v, hv⟩ := y.property |
| 40 | change A v = (y : W) at hv |
| 41 | exact ⟨v, by change Q (A v) = y; rw [hv]; exact hQ y⟩ |
| 42 | let G : V → R := fun z => Q (F z) |
| 43 | have hGder : HasFDerivAt G d x := |
| 44 | Q.hasFDerivAt.comp x (hF.differentiableAt (hU.mem_nhds hx)).hasFDerivAt |
| 45 | let : Subsingleton d.ker := FiniteSubmersion.Constructions.FiniteSubmersionFiber.subsingleton_kernel |
| 46 | hU hF hx Q d hGder hd hmax hfinite |
| 47 | have hd0 : ∀ v, d v = 0 → v = 0 := by |
| 48 | intro v hv |
| 49 | exact congrArg Subtype.val (Subsingleton.elim (⟨v, hv⟩ : d.ker) 0) |
| 50 | have hdinj : Function.Injective d := (injective_iff_map_eq_zero d).mpr hd0 |
| 51 | intro v w hvw |
| 52 | exact hdinj (congrArg Q hvw) |
| 53 | |
| 54 | theorem exists_injective_point {F : V → W} {U : Set V} |
| 55 | (hU : IsOpen U) (hne : U.Nonempty) (hF : DifferentiableOn ℂ F U) |
| 56 | (hfinite : ∀ y, {z : V | z ∈ U ∧ F z = y}.Finite) : |
| 57 | ∃ x ∈ U, Function.Injective (fderiv ℂ F x) := by |
| 58 | let r : V → ℕ := fun x => finrank ℂ (fderiv ℂ F x).range |
| 59 | have hr : (r '' U).Finite := by |
| 60 | apply (Finset.range (finrank ℂ V + 1)).finite_toSet.subset |
| 61 | rintro _ ⟨z, _, rfl⟩ |
| 62 | exact Finset.mem_range.mpr (Nat.lt_succ_of_le (fderiv ℂ F z).toLinearMap.finrank_range_le) |
| 63 | obtain ⟨m, hm, hmax⟩ := Set.exists_max_image (r '' U) id hr (hne.image r) |
| 64 | obtain ⟨x, hx, hxm⟩ := hm |
| 65 | refine ⟨x, hx, injective_fderiv_of_maximal_rank hU hF hx ?_ (hfinite (F x))⟩ |
| 66 | intro z hz |
| 67 | have h := hmax (r z) ⟨z, hz, rfl⟩ |
| 68 | change r z ≤ m at h |
| 69 | rw [← hxm] at h |
| 70 | exact h |
| 71 | |
| 72 | theorem dense_injective_points {F : V → W} {U : Set V} |
| 73 | (hU : IsOpen U) (hF : DifferentiableOn ℂ F U) |
| 74 | (hfinite : ∀ y, {z : V | z ∈ U ∧ F z = y}.Finite) : |
| 75 | U ⊆ closure {x | x ∈ U ∧ Function.Injective (fderiv ℂ F x)} := by |
| 76 | intro x hx |
| 77 | apply Metric.mem_closure_iff.mpr |
| 78 | intro ε hε |
| 79 | obtain ⟨z, hz, hi⟩ := exists_injective_point (hU.inter Metric.isOpen_ball) |
| 80 | ⟨x, hx, Metric.mem_ball_self hε⟩ (hF.mono inter_subset_left) |
| 81 | (fun y => (hfinite y).subset (fun z hz => ⟨hz.1.1, hz.2⟩)) |
| 82 | exact ⟨z, ⟨hz.1, hi⟩, by simpa only [Metric.mem_ball, dist_comm] using hz.2⟩ |
| 83 | |
| 84 | end |
| 85 | |
| 86 | end OAI.Geometry.ComplexTorus.RiemannProjectivity.MaximalRankOf.Constructions.MaximalRank |