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.HolomorphicRegularity |
| 2 | import Mathlib.Analysis.Calculus.MeanValue |
| 3 | import Mathlib.Analysis.Calculus.ImplicitFunction.ProdDomain |
| 4 | import Mathlib.LinearAlgebra.FiniteDimensional.Lemmas |
| 5 | |
| 6 | /-! # Finite Holomorphic Rank -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.ComplexGroups.HolomorphicAlgebraicity.FiniteHolomorphicRank.Constructions.FiniteRank |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! |
| 13 | # Derivative constraints imposed by finite holomorphic fibers |
| 14 | -/ |
| 15 | |
| 16 | open Set Filter _root_.Metric |
| 17 | open scoped _root_.Topology |
| 18 | |
| 19 | theorem exists_nonzero_fderiv_of_finite_fiber |
| 20 | {E F : Type*} [NormedAddCommGroup E] [NormedSpace ℂ E] [Nontrivial E] |
| 21 | [NormedAddCommGroup F] [NormedSpace ℂ F] |
| 22 | {f : E → F} {U : Set E} (hU : IsOpen U) (hf : DifferentiableOn ℂ f U) |
| 23 | {x : E} (hx : x ∈ U) (hfinite : {y | y ∈ U ∧ f y = f x}.Finite) : |
| 24 | ∃ y ∈ U, fderiv ℂ f y ≠ 0 := by |
| 25 | let : NormedSpace ℝ E := NormedSpace.restrictScalars ℝ ℂ E |
| 26 | by_contra hn |
| 27 | have hzero : EqOn (fderiv ℂ f) 0 U := by |
| 28 | intro y hy |
| 29 | by_contra hny |
| 30 | exact hn ⟨y, hy, hny⟩ |
| 31 | have hopen : IsOpen (U ∩ f ⁻¹' {f x}) := |
| 32 | hU.isOpen_inter_preimage_of_fderiv_eq_zero hf hzero {f x} |
| 33 | have hnhds : {y | y ∈ U ∧ f y = f x} ∈ 𝓝 x := hopen.mem_nhds ⟨hx, rfl⟩ |
| 34 | exact infinite_of_mem_nhds x hnhds hfinite |
| 35 | |
| 36 | theorem vertical_eq_zero_of_rank_le |
| 37 | {E F G : Type*} [NormedAddCommGroup E] [NormedSpace ℂ E] [FiniteDimensional ℂ E] |
| 38 | [NormedAddCommGroup F] [NormedSpace ℂ F] |
| 39 | [NormedAddCommGroup G] [NormedSpace ℂ G] [FiniteDimensional ℂ G] |
| 40 | (L : E × F →L[ℂ] E × G) (hfst : ∀ p : E × F, (L p).1 = p.1) |
| 41 | (hrank : Module.finrank ℂ L.toLinearMap.range ≤ Module.finrank ℂ E) (v : F) : |
| 42 | L (0, v) = 0 := by |
| 43 | let π : L.toLinearMap.range →ₗ[ℂ] E := |
| 44 | (LinearMap.fst ℂ E G).comp L.toLinearMap.range.subtype |
| 45 | have hπ : Function.Surjective π := by |
| 46 | intro x |
| 47 | exact ⟨⟨L (x, 0), ⟨(x, 0), rfl⟩⟩, hfst (x, 0)⟩ |
| 48 | have hdim : Module.finrank ℂ L.toLinearMap.range = Module.finrank ℂ E := |
| 49 | le_antisymm hrank (LinearMap.finrank_le_finrank_of_surjective hπ) |
| 50 | have hπinj : Function.Injective π := |
| 51 | (LinearMap.injective_iff_surjective_of_finrank_eq_finrank hdim).mpr hπ |
| 52 | have hzero : (⟨L (0, v), ⟨(0, v), rfl⟩⟩ : L.toLinearMap.range) = 0 := by |
| 53 | apply hπinj |
| 54 | change (L (0, v)).1 = 0 |
| 55 | exact hfst (0, v) |
| 56 | exact congrArg Subtype.val hzero |
| 57 | |
| 58 | theorem not_finite_fiber_of_block_rank_bound |
| 59 | {E F G : Type*} [NormedAddCommGroup E] [NormedSpace ℂ E] [FiniteDimensional ℂ E] |
| 60 | [NormedAddCommGroup F] [NormedSpace ℂ F] [Nontrivial F] |
| 61 | [NormedAddCommGroup G] [NormedSpace ℂ G] [FiniteDimensional ℂ G] |
| 62 | {f : E × F → E × G} {U : Set (E × F)} (hU : IsOpen U) |
| 63 | (hf : DifferentiableOn ℂ f U) (hfst : ∀ p ∈ U, (f p).1 = p.1) |
| 64 | (hrank : ∀ p ∈ U, Module.finrank ℂ (fderiv ℂ f p).toLinearMap.range ≤ Module.finrank ℂ E) |
| 65 | {x : E × F} (hx : x ∈ U) : |
| 66 | ¬{p | p ∈ U ∧ f p = f x}.Finite := by |
| 67 | intro hfinite |
| 68 | let V : Set F := (fun v => (x.1, v)) ⁻¹' U |
| 69 | let g : F → E × G := fun v => f (x.1, v) |
| 70 | have hV : IsOpen V := hU.preimage (continuous_const.prodMk continuous_id) |
| 71 | have hxV : x.2 ∈ V := hx |
| 72 | have hg : DifferentiableOn ℂ g V := hf.comp |
| 73 | (differentiable_const x.1 |>.prodMk differentiable_id).differentiableOn (fun _ hp => hp) |
| 74 | have hgfinite : {v | v ∈ V ∧ g v = g x.2}.Finite := by |
| 75 | have hinj : Function.Injective (fun v : F => (x.1, v)) := fun _ _ h => congrArg Prod.snd h |
| 76 | exact hfinite.preimage hinj.injOn |
| 77 | obtain ⟨v, hv, hvd⟩ := exists_nonzero_fderiv_of_finite_fiber hV hg hxV hgfinite |
| 78 | let p : E × F := (x.1, v) |
| 79 | have hp : p ∈ U := hv |
| 80 | have hfp := hf.differentiableAt (hU.mem_nhds hp) |
| 81 | have hfstEq : (fun q => (f q).1) =ᶠ[𝓝 p] Prod.fst := by |
| 82 | filter_upwards [hU.mem_nhds hp] with q hq |
| 83 | exact hfst q hq |
| 84 | have hfstD : HasFDerivAt (fun q => (f q).1) (ContinuousLinearMap.fst ℂ E F) p := |
| 85 | hasFDerivAt_fst.congr_of_eventuallyEq hfstEq |
| 86 | have hfstL (q : E × F) : ((fderiv ℂ f p) q).1 = q.1 := |
| 87 | congrArg (fun L : E × F →L[ℂ] E => L q) (hfp.hasFDerivAt.fst.unique hfstD) |
| 88 | have hzero : (fderiv ℂ f p).comp (ContinuousLinearMap.inr ℂ E F) = 0 := by |
| 89 | apply ContinuousLinearMap.ext |
| 90 | intro w |
| 91 | exact vertical_eq_zero_of_rank_le (fderiv ℂ f p) hfstL (hrank p hp) w |
| 92 | have hdg : HasFDerivAt g ((fderiv ℂ f p).comp (ContinuousLinearMap.inr ℂ E F)) v := |
| 93 | hfp.hasFDerivAt.comp v (hasFDerivAt_prodMk_right x.1 v) |
| 94 | rw [hzero] at hdg |
| 95 | exact hvd hdg.fderiv |
| 96 | |
| 97 | end |
| 98 | |
| 99 | end OAI.AlgebraicGeometry.ComplexGroups.HolomorphicAlgebraicity.FiniteHolomorphicRank.Constructions.FiniteRank |