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.NumberTheory.PadicHodge.IntegralComparison.Smooth.RegularSubopen |
| 2 | import Mathlib.AlgebraicGeometry.Morphisms.Smooth |
| 3 | import Mathlib.AlgebraicGeometry.Morphisms.ClosedImmersion |
| 4 | |
| 5 | /-! # Closed Sections -/ |
| 6 | |
| 7 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Smooth.ClosedSections |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Smoothness of a closed subscheme gives smoothness of its actual |
| 12 | affine section quotient over the original affine base. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 15 | |
| 16 | set_option backward.isDefEq.respectTransparency false |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | variable {X Y S : Scheme.{u}} [IsAffine S] |
| 21 | |
| 22 | abbrev algebra (π : Y ⟶ S) (U : Y.Opens) : Algebra Γ(S, ⊤) Γ(Y, U) := |
| 23 | (π.appLE ⊤ U le_top).hom.toAlgebra |
| 24 | |
| 25 | theorem smooth_sections (π : Y ⟶ S) [Smooth π] (U : Y.Opens) (hU : IsAffineOpen U) : |
| 26 | letI := algebra π U |
| 27 | Algebra.Smooth Γ(S, ⊤) Γ(Y, U) := by |
| 28 | let := algebra π U |
| 29 | exact RingHom.smooth_algebraMap.mp (π.smooth_appLE (isAffineOpen_top S) hU le_top) |
| 30 | |
| 31 | variable (f : X ⟶ Y) [IsClosedImmersion f] (π : Y ⟶ S) (U : Y.Opens) |
| 32 | |
| 33 | def sectionMap : |
| 34 | letI := algebra π U |
| 35 | letI := algebra (f ≫ π) (f ⁻¹ᵁ U) |
| 36 | Γ(Y, U) →ₐ[Γ(S, ⊤)] Γ(X, f ⁻¹ᵁ U) := by |
| 37 | letI := algebra π U |
| 38 | letI := algebra (f ≫ π) (f ⁻¹ᵁ U) |
| 39 | exact |
| 40 | { __ := (f.app U).hom |
| 41 | commutes' r := by |
| 42 | have h := Scheme.Hom.appLE_comp_appLE f π ⊤ U (f ⁻¹ᵁ U) le_top le_rfl |
| 43 | rw [Scheme.Hom.appLE_eq_app] at h |
| 44 | exact ConcreteCategory.congr_hom h r } |
| 45 | |
| 46 | def quotientEquiv (hU : IsAffineOpen U) : |
| 47 | letI := algebra π U |
| 48 | letI := algebra (f ≫ π) (f ⁻¹ᵁ U) |
| 49 | (Γ(Y, U) ⧸ f.ker.ideal ⟨U, hU⟩) ≃ₐ[Γ(S, ⊤)] Γ(X, f ⁻¹ᵁ U) := by |
| 50 | letI := algebra π U |
| 51 | letI := algebra (f ≫ π) (f ⁻¹ᵁ U) |
| 52 | exact (Ideal.quotientEquivAlgOfEq Γ(S, ⊤) (f.ker_apply ⟨U, hU⟩)).trans |
| 53 | (Ideal.quotientKerAlgEquivOfSurjective (f := sectionMap f π U) (f.app_surjective U hU)) |
| 54 | |
| 55 | theorem smooth_quotient [Smooth (f ≫ π)] (hU : IsAffineOpen U) : |
| 56 | letI := algebra π U |
| 57 | Algebra.Smooth Γ(S, ⊤) (Γ(Y, U) ⧸ f.ker.ideal ⟨U, hU⟩) := by |
| 58 | let := algebra π U |
| 59 | let := algebra (f ≫ π) (f ⁻¹ᵁ U) |
| 60 | have := smooth_sections (f ≫ π) (f ⁻¹ᵁ U) (hU.preimage f) |
| 61 | exact Algebra.Smooth.of_equiv (quotientEquiv f π U hU).symm |
| 62 | |
| 63 | include π in |
| 64 | theorem exists_regular_subopen [Smooth π] [Smooth (f ≫ π)] |
| 65 | (hU : IsAffineOpen U) [IsNoetherianRing Γ(Y, U)] |
| 66 | (p : PrimeSpectrum Γ(Y, U)) (hp : f.ker.ideal ⟨U, hU⟩ ≤ p.asIdeal) : |
| 67 | ∃ (V : Y.Opens) (_hV : IsAffineOpen V), V ≤ U ∧ hU.fromSpec p ∈ V ∧ |
| 68 | ∃ rs : List Γ(Y, V), RingHom.ker (f.app V).hom = Ideal.ofList rs ∧ |
| 69 | RingTheory.Sequence.IsRegular Γ(Y, V) rs := by |
| 70 | let := algebra π U |
| 71 | have := smooth_sections π U hU |
| 72 | have := smooth_quotient f π U hU |
| 73 | obtain ⟨V, hV, hVU, hpV, rs, hI, hreg⟩ := |
| 74 | RegularSubopen.exists_regular_subopen (k := Γ(S, ⊤)) f.ker U hU p hp |
| 75 | exact ⟨V, hV, hVU, hpV, rs, (f.ker_apply ⟨V, hV⟩).symm.trans hI, hreg⟩ |
| 76 | |
| 77 | end |
| 78 | |
| 79 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Smooth.ClosedSections |