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.ComplexGroups.HolomorphicAlgebraicity.LinearRankCoordinates |
| 2 | import Mathlib.Data.Nat.Find |
| 3 | |
| 4 | /-! # Maximal Rank -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.ComplexGroups.HolomorphicAlgebraicity.MaximalRank.Constructions.FiniteRank |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! |
| 11 | # A locally maximal derivative rank at a finite fiber is full |
| 12 | -/ |
| 13 | |
| 14 | open Set Filter |
| 15 | open scoped _root_.Topology |
| 16 | |
| 17 | theorem injective_fderiv_of_locally_maximal_rank |
| 18 | {E F : Type*} [NormedAddCommGroup E] [NormedSpace ℂ E] [FiniteDimensional ℂ E] |
| 19 | [NormedAddCommGroup F] [NormedSpace ℂ F] [FiniteDimensional ℂ F] |
| 20 | {f : E → F} {U : Set E} (hU : IsOpen U) (hf : DifferentiableOn ℂ f U) |
| 21 | {x : E} (hx : x ∈ U) (hfinite : {y | y ∈ U ∧ f y = f x}.Finite) |
| 22 | (hmax : ∀ y ∈ U, Module.finrank ℂ (fderiv ℂ f y).toLinearMap.range ≤ |
| 23 | Module.finrank ℂ (fderiv ℂ f x).toLinearMap.range) : |
| 24 | Function.Injective (fderiv ℂ f x) := by |
| 25 | classical |
| 26 | let L := fderiv ℂ f x |
| 27 | by_contra hnot |
| 28 | have hker : L.toLinearMap.ker ≠ ⊥ := by |
| 29 | intro h |
| 30 | exact hnot (LinearMap.ker_eq_bot.mp h) |
| 31 | let : Nontrivial L.toLinearMap.ker := Submodule.nontrivial_iff_ne_bot.mpr hker |
| 32 | obtain ⟨π, κ, e, _, he⟩ := LinearRankCoordinates.Constructions.FiniteRank.exists_rank_coordinates L |
| 33 | let φ : E → L.toLinearMap.range × L.toLinearMap.ker := fun y => (π (f y), κ y) |
| 34 | have hφ : DifferentiableOn ℂ φ U := |
| 35 | (π.differentiable.comp_differentiableOn hf).prodMk κ.differentiable.differentiableOn |
| 36 | have hfx := hf.differentiableAt (hU.mem_nhds hx) |
| 37 | have hdφ : HasFDerivAt φ ((π.comp L).prod κ) x := |
| 38 | (π.hasFDerivAt.comp x hfx.hasFDerivAt).prodMk κ.hasFDerivAt |
| 39 | have hφe : fderiv ℂ φ x = e.toContinuousLinearMap := hdφ.fderiv.trans he.symm |
| 40 | obtain ⟨q, hxq, hqφ, _, hqinv⟩ := HolomorphicRegularity.Constructions.Regularity.exists_holomorphic_localInverse hU hφ hx e hφe |
| 41 | let V := q.target ∩ q.symm ⁻¹' U |
| 42 | have hV : IsOpen V := q.continuousOn_symm.isOpen_inter_preimage q.open_target hU |
| 43 | have hb : q x ∈ V := ⟨q.map_source hxq, by simpa only [mem_preimage, q.left_inv hxq] using hx⟩ |
| 44 | let g : L.toLinearMap.range × L.toLinearMap.ker → F := fun p => f (q.symm p) |
| 45 | let T : L.toLinearMap.range × L.toLinearMap.ker → L.toLinearMap.range × F := |
| 46 | fun p => (p.1, g p) |
| 47 | let C : F →L[ℂ] L.toLinearMap.range × F := π.prod (ContinuousLinearMap.id ℂ F) |
| 48 | have hg : DifferentiableOn ℂ g V := hf.comp (hqinv.mono inter_subset_left) (fun _ hp => hp.2) |
| 49 | have hT : DifferentiableOn ℂ T V := differentiable_fst.differentiableOn.prodMk hg |
| 50 | have hTC (p : L.toLinearMap.range × L.toLinearMap.ker) (hp : p ∈ V) : T p = C (g p) := by |
| 51 | have h := congrArg Prod.fst (q.right_inv hp.1) |
| 52 | have hπg : π (g p) = p.1 := by |
| 53 | change (q (q.symm p)).1 = p.1 at h |
| 54 | rw [hqφ] at h |
| 55 | exact h |
| 56 | exact Prod.ext hπg.symm rfl |
| 57 | have hTrank (p : L.toLinearMap.range × L.toLinearMap.ker) (hp : p ∈ V) : |
| 58 | Module.finrank ℂ (fderiv ℂ T p).toLinearMap.range ≤ Module.finrank ℂ L.toLinearMap.range := by |
| 59 | have hdf := (hf.differentiableAt (hU.mem_nhds hp.2)).hasFDerivAt |
| 60 | have hdq := (hqinv.differentiableAt (q.open_target.mem_nhds hp.1)).hasFDerivAt |
| 61 | have hdg : HasFDerivAt g ((fderiv ℂ f (q.symm p)).comp (fderiv ℂ q.symm p)) p := |
| 62 | hdf.comp p hdq |
| 63 | have hTeq : T =ᶠ[𝓝 p] (fun z => C (g z)) := by |
| 64 | filter_upwards [hV.mem_nhds hp] with z hz |
| 65 | exact hTC z hz |
| 66 | have hdT := (C.hasFDerivAt.comp p hdg).congr_of_eventuallyEq hTeq |
| 67 | rw [hdT.fderiv] |
| 68 | exact (LinearRankCoordinates.Constructions.FiniteRank.finrank_range_comp_le_middle C.toLinearMap (fderiv ℂ f (q.symm p)).toLinearMap |
| 69 | (fderiv ℂ q.symm p).toLinearMap).trans (hmax (q.symm p) hp.2) |
| 70 | have hTfinite : {p | p ∈ V ∧ T p = T (q x)}.Finite := by |
| 71 | apply Set.Finite.of_injOn (f := q.symm) _ _ hfinite |
| 72 | · intro p hp |
| 73 | refine ⟨hp.1.2, ?_⟩ |
| 74 | have h := congrArg Prod.snd hp.2 |
| 75 | change f (q.symm p) = f (q.symm (q x)) at h |
| 76 | simpa only [q.left_inv hxq] using h |
| 77 | · intro p hp r hr heq |
| 78 | exact q.symm.injOn hp.1.1 hr.1.1 heq |
| 79 | exact FiniteHolomorphicRank.Constructions.FiniteRank.not_finite_fiber_of_block_rank_bound hV hT (fun _ _ => rfl) hTrank hb hTfinite |
| 80 | |
| 81 | theorem exists_injective_fderiv_of_finite_fibers |
| 82 | {E F : Type*} [NormedAddCommGroup E] [NormedSpace ℂ E] [FiniteDimensional ℂ E] |
| 83 | [NormedAddCommGroup F] [NormedSpace ℂ F] [FiniteDimensional ℂ F] |
| 84 | {f : E → F} {U : Set E} (hU : IsOpen U) (hne : U.Nonempty) |
| 85 | (hf : DifferentiableOn ℂ f U) (hfinite : ∀ v : F, {y | y ∈ U ∧ f y = v}.Finite) : |
| 86 | ∃ x ∈ U, Function.Injective (fderiv ℂ f x) := by |
| 87 | classical |
| 88 | let r : E → ℕ := fun y => Module.finrank ℂ (fderiv ℂ f y).toLinearMap.range |
| 89 | let m := Module.finrank ℂ E |
| 90 | let D := Nat.findGreatest (fun k => ∃ y ∈ U, r y = k) m |
| 91 | have hr (y : E) : r y ≤ m := LinearMap.finrank_range_le (fderiv ℂ f y).toLinearMap |
| 92 | obtain ⟨x₀, hx₀⟩ := hne |
| 93 | have hD : ∃ y ∈ U, r y = D := Nat.findGreatest_spec |
| 94 | (P := fun k => ∃ y ∈ U, r y = k) (hr x₀) ⟨x₀, hx₀, rfl⟩ |
| 95 | obtain ⟨x, hx, hxD⟩ := hD |
| 96 | refine ⟨x, hx, injective_fderiv_of_locally_maximal_rank hU hf hx (hfinite (f x)) ?_⟩ |
| 97 | intro y hy |
| 98 | change r y ≤ r x |
| 99 | rw [hxD] |
| 100 | exact Nat.le_findGreatest (P := fun k => ∃ z ∈ U, r z = k) (hr y) ⟨y, hy, rfl⟩ |
| 101 | |
| 102 | theorem dense_injective_fderiv_of_finite_fibers |
| 103 | {E F : Type*} [NormedAddCommGroup E] [NormedSpace ℂ E] [FiniteDimensional ℂ E] |
| 104 | [NormedAddCommGroup F] [NormedSpace ℂ F] [FiniteDimensional ℂ F] |
| 105 | {f : E → F} {U : Set E} (hU : IsOpen U) |
| 106 | (hf : DifferentiableOn ℂ f U) (hfinite : ∀ v : F, {y | y ∈ U ∧ f y = v}.Finite) : |
| 107 | U ⊆ closure {y | y ∈ U ∧ Function.Injective (fderiv ℂ f y)} := by |
| 108 | intro x hx |
| 109 | apply Metric.mem_closure_iff.mpr |
| 110 | intro r hr |
| 111 | have hV : IsOpen (U ∩ Metric.ball x r) := hU.inter Metric.isOpen_ball |
| 112 | have hne : (U ∩ Metric.ball x r).Nonempty := ⟨x, hx, Metric.mem_ball_self hr⟩ |
| 113 | obtain ⟨y, hy, hyD⟩ := exists_injective_fderiv_of_finite_fibers hV hne |
| 114 | (hf.mono inter_subset_left) |
| 115 | (fun v => (hfinite v).subset (fun _ hy => ⟨hy.1.1, hy.2⟩)) |
| 116 | exact ⟨y, ⟨hy.1, hyD⟩, by simpa only [dist_comm] using Metric.mem_ball.mp hy.2⟩ |
| 117 | |
| 118 | end |
| 119 | |
| 120 | end OAI.AlgebraicGeometry.ComplexGroups.HolomorphicAlgebraicity.MaximalRank.Constructions.FiniteRank |