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.AlgebraicGeometry.PELModuli.CMPoints.CountableSubmersionFiber |
| 2 | import Mathlib.Data.Set.Finite.Lemmas |
| 3 | import OAI.Geometry.ComplexTorus.RiemannProjectivity.FiniteBranchesAt |
| 4 | |
| 5 | /-! # Countable Holomorphic Image -/ |
| 6 | |
| 7 | namespace OAI |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | namespace AlgebraicGeometry.PELModuli.CMPoints.CountableHolomorphicImage.CountableMaximalRank |
| 12 | |
| 13 | /-! |
| 14 | # CMPoints: a countable holomorphic fiber at maximal rank is regular |
| 15 | |
| 16 | Project to the derivative's image and use its implicit-function coordinates. |
| 17 | The countable-fiber chart theorem removes every vertical direction, forcing the |
| 18 | original derivative to be injective. |
| 19 | -/ |
| 20 | |
| 21 | open Set Filter _root_.Module |
| 22 | open scoped _root_.Topology ContDiff |
| 23 | |
| 24 | variable {V W : Type*} [NormedAddCommGroup V] [NormedSpace ℂ V] [FiniteDimensional ℂ V] |
| 25 | [NormedAddCommGroup W] [NormedSpace ℂ W] [FiniteDimensional ℂ W] |
| 26 | |
| 27 | theorem injective_fderiv_of_maximal_rank {F : V → W} {U : Set V} |
| 28 | (hU : IsOpen U) (hF : DifferentiableOn ℂ F U) {x : V} (hx : x ∈ U) |
| 29 | (hmax : ∀ z ∈ U, finrank ℂ (fderiv ℂ F z).range ≤ finrank ℂ (fderiv ℂ F x).range) |
| 30 | (hcountable : {z : V | z ∈ U ∧ F z = F x}.Countable) : Function.Injective (fderiv ℂ F x) := by |
| 31 | let : CompleteSpace V := FiniteDimensional.complete ℂ V |
| 32 | let A := fderiv ℂ F x |
| 33 | let R := A.range |
| 34 | obtain ⟨Q₀, hQ₀⟩ := R.subtype.exists_leftInverse_of_injective |
| 35 | (LinearMap.ker_eq_bot.mpr Subtype.val_injective) |
| 36 | let Q := Q₀.toContinuousLinearMap |
| 37 | have hQ (v : R) : Q v = v := LinearMap.congr_fun hQ₀ v |
| 38 | let d := Q.comp A |
| 39 | have hd : Function.Surjective d := by |
| 40 | intro y |
| 41 | obtain ⟨v, hv⟩ := y.property |
| 42 | change A v = (y : W) at hv |
| 43 | exact ⟨v, by change Q (A v) = y; rw [hv]; exact hQ y⟩ |
| 44 | let G : V → R := fun z => Q (F z) |
| 45 | have hGder : HasFDerivAt G d x := |
| 46 | Q.hasFDerivAt.comp x (hF.differentiableAt (hU.mem_nhds hx)).hasFDerivAt |
| 47 | let : Subsingleton d.ker := CountableSubmersionFiber.subsingleton_kernel_of_countable_fiber |
| 48 | hU hF hx Q d hGder hd hmax hcountable |
| 49 | have hd0 : ∀ v, d v = 0 → v = 0 := by |
| 50 | intro v hv |
| 51 | exact congrArg Subtype.val (Subsingleton.elim (⟨v, hv⟩ : d.ker) 0) |
| 52 | have hdinj : Function.Injective d := (injective_iff_map_eq_zero d).mpr hd0 |
| 53 | intro v w hvw |
| 54 | exact hdinj (congrArg Q hvw) |
| 55 | |
| 56 | theorem exists_injective_point {F : V → W} {U : Set V} |
| 57 | (hU : IsOpen U) (hne : U.Nonempty) (hF : DifferentiableOn ℂ F U) |
| 58 | (hcountable : ∀ y, {z : V | z ∈ U ∧ F z = y}.Countable) : |
| 59 | ∃ x ∈ U, Function.Injective (fderiv ℂ F x) := by |
| 60 | let r : V → ℕ := fun x => finrank ℂ (fderiv ℂ F x).range |
| 61 | have hr : (r '' U).Finite := by |
| 62 | apply (Finset.range (finrank ℂ V + 1)).finite_toSet.subset |
| 63 | rintro _ ⟨z, _, rfl⟩ |
| 64 | exact Finset.mem_range.mpr (Nat.lt_succ_of_le (fderiv ℂ F z).toLinearMap.finrank_range_le) |
| 65 | obtain ⟨m, hm, hmax⟩ := Set.exists_max_image (r '' U) id hr (hne.image r) |
| 66 | obtain ⟨x, hx, hxm⟩ := hm |
| 67 | refine ⟨x, hx, injective_fderiv_of_maximal_rank hU hF hx ?_ (hcountable (F x))⟩ |
| 68 | intro z hz |
| 69 | have h := hmax (r z) ⟨z, hz, rfl⟩ |
| 70 | change r z ≤ m at h |
| 71 | rw [← hxm] at h |
| 72 | exact h |
| 73 | |
| 74 | theorem dense_injective_points {F : V → W} {U : Set V} |
| 75 | (hU : IsOpen U) (hF : DifferentiableOn ℂ F U) |
| 76 | (hcountable : ∀ y, {z : V | z ∈ U ∧ F z = y}.Countable) : |
| 77 | U ⊆ closure {x | x ∈ U ∧ Function.Injective (fderiv ℂ F x)} := by |
| 78 | intro x hx |
| 79 | apply Metric.mem_closure_iff.mpr |
| 80 | intro ε hε |
| 81 | obtain ⟨z, hz, hi⟩ := exists_injective_point (hU.inter Metric.isOpen_ball) |
| 82 | ⟨x, hx, Metric.mem_ball_self hε⟩ (hF.mono inter_subset_left) |
| 83 | (fun y => (hcountable y).mono (show |
| 84 | {z : V | z ∈ U ∩ Metric.ball x ε ∧ F z = y} ⊆ |
| 85 | {z : V | z ∈ U ∧ F z = y} from fun _ hz => ⟨hz.1.1, hz.2⟩)) |
| 86 | exact ⟨z, ⟨hz.1, hi⟩, by simpa only [Metric.mem_ball, dist_comm] using hz.2⟩ |
| 87 | |
| 88 | end AlgebraicGeometry.PELModuli.CMPoints.CountableHolomorphicImage.CountableMaximalRank |
| 89 | |
| 90 | namespace AlgebraicGeometry.PELModuli.CMPoints.CountableHolomorphicImage |
| 91 | |
| 92 | /-! A holomorphic map with countable fibers between spaces of equal |
| 93 | complex dimension has a nonempty open subset of its image. -/ |
| 94 | |
| 95 | open Set _root_.Module |
| 96 | open scoped _root_.Topology |
| 97 | |
| 98 | variable {V W : Type*} |
| 99 | [NormedAddCommGroup V] [NormedSpace ℂ V] [FiniteDimensional ℂ V] |
| 100 | [NormedAddCommGroup W] [NormedSpace ℂ W] [FiniteDimensional ℂ W] |
| 101 | |
| 102 | theorem exists_open_subset_image_of_countable_fibers |
| 103 | {f : V → W} {U : Set V} (hU : IsOpen U) (hne : U.Nonempty) |
| 104 | (hf : DifferentiableOn ℂ f U) |
| 105 | (hdim : finrank ℂ V = finrank ℂ W) |
| 106 | (hcountable : ∀ y, {x : V | x ∈ U ∧ f x = y}.Countable) : |
| 107 | ∃ O : Set W, IsOpen O ∧ O.Nonempty ∧ O ⊆ f '' U := by |
| 108 | obtain ⟨x, hx, hi⟩ := CountableMaximalRank.exists_injective_point hU hne hf hcountable |
| 109 | have hs : Function.Surjective (fderiv ℂ f x) := |
| 110 | (LinearMap.injective_iff_surjective_of_finrank_eq_finrank hdim).mp hi |
| 111 | obtain ⟨e, hxe, hef, _⟩ := |
| 112 | Geometry.ComplexTorus.RiemannProjectivity.FiniteBranchesAt.Constructions.FiniteBranches.holomorphic_local_inverse hU hf hx ⟨hi, hs⟩ |
| 113 | let d := e.restrOpen U hU |
| 114 | have hxd : x ∈ d.source := ⟨hxe, hx⟩ |
| 115 | refine ⟨d.target, d.open_target, ⟨d x, d.map_source hxd⟩, ?_⟩ |
| 116 | intro y hy |
| 117 | have hinv := d.map_target hy |
| 118 | refine ⟨d.symm y, hinv.2, ?_⟩ |
| 119 | have heq : (d : V → W) = f := hef |
| 120 | rw [← heq] |
| 121 | exact d.right_inv hy |
| 122 | |
| 123 | end AlgebraicGeometry.PELModuli.CMPoints.CountableHolomorphicImage |
| 124 | |
| 125 | end |
| 126 | |
| 127 | end OAI |