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.Quotient.ParameterBasis |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.DifferentialBasisLocalization |
| 3 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Intrinsic.SmoothClosedSections |
| 4 | import OAI.NumberTheory.PadicHodge.IntegralComparison.IdealSheafPrincipalEquations |
| 5 | import OAI.NumberTheory.PadicHodge.IntegralComparison.IntrinsicDeRham.SectionRestriction |
| 6 | |
| 7 | /-! # Parameter Frame Neighborhood -/ |
| 8 | |
| 9 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Affine.ParameterFrameNeighborhood |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | /-! A principal ambient neighborhood makes prescribed normal and |
| 14 | quotient parameters an actual differential basis, preserving the entire |
| 15 | closed affine chart. -/ |
| 16 | open _root_.CategoryTheory _root_.AlgebraicGeometry Opposite |
| 17 | open OAI.NumberTheory.PadicHodge.IntegralComparison.Intrinsic.SmoothClosedSections |
| 18 | set_option backward.defeqAttrib.useBackward true |
| 19 | set_option backward.isDefEq.respectTransparency false |
| 20 | set_option backward.isDefEq.respectTransparency.types false |
| 21 | universe u |
| 22 | variable (R : Type u) [CommRing R] |
| 23 | (X Y : Over (Spec (CommRingCat.of R))) (f : X ⟶ Y) [IsClosedImmersion f.left] |
| 24 | (U : Y.left.Opens) (hU : IsAffineOpen U) {c g : ℕ} |
| 25 | (s : Fin c → f.left.ker.ideal ⟨U,hU⟩) (t : Fin g → Intrinsic.SmoothClosedSections.ring R Y U) |
| 26 | (b : Module.Basis (Fin (c+g)) (Intrinsic.SmoothClosedSections.ring R Y U) Ω[Intrinsic.SmoothClosedSections.ring R Y U⁄R]) |
| 27 | |
| 28 | local instance baseAlgebra (V : Y.left.Opens) : Algebra R Γ(Y.left, V) := |
| 29 | AlgebraicGeometry.Crystalline.Cohomology.AlgebraicForms.AlgebraicDeRham.sectionAlgebra R Y V |
| 30 | |
| 31 | abbrev determinant : Intrinsic.SmoothClosedSections.ring R Y U := |
| 32 | DifferentialBasisNeighborhood.determinant b (Fin.append (fun i => (s i).val) t) |
| 33 | |
| 34 | abbrev openSubset : Y.left.Opens := Y.left.basicOpen (determinant R X Y f U hU s t b) |
| 35 | |
| 36 | omit [IsClosedImmersion f.left] in |
| 37 | theorem affine : IsAffineOpen (openSubset R X Y f U hU s t b) := |
| 38 | hU.basicOpen _ |
| 39 | |
| 40 | omit [IsClosedImmersion f.left] in |
| 41 | theorem below : openSubset R X Y f U hU s t b ≤ U := Y.left.basicOpen_le _ |
| 42 | |
| 43 | def normal : Fin c → Intrinsic.SmoothClosedSections.ring R Y (openSubset R X Y f U hU s t b) := |
| 44 | IdealSheafPrincipalEquations.sequence U (determinant R X Y f U hU s t b) |
| 45 | (fun i => (s i).val) |
| 46 | |
| 47 | def parameter : Fin g → Intrinsic.SmoothClosedSections.ring R Y (openSubset R X Y f U hU s t b) := |
| 48 | IdealSheafPrincipalEquations.sequence U (determinant R X Y f U hU s t b) t |
| 49 | |
| 50 | def basis : Module.Basis (Fin (c+g)) (Intrinsic.SmoothClosedSections.ring R Y (openSubset R X Y f U hU s t b)) |
| 51 | Ω[Intrinsic.SmoothClosedSections.ring R Y (openSubset R X Y f U hU s t b)⁄R] := by |
| 52 | letI := IntrinsicDeRham.SectionRestriction.IntrinsicUnit.restrictionAlgebra R Y |
| 53 | (homOfLE (below R X Y f U hU s t b)) |
| 54 | letI := IntrinsicDeRham.SectionRestriction.IntrinsicUnit.restrictionTower R Y |
| 55 | (homOfLE (below R X Y f U hU s t b)) |
| 56 | letI : IsLocalization.Away (determinant R X Y f U hU s t b) |
| 57 | (Intrinsic.SmoothClosedSections.ring R Y (openSubset R X Y f U hU s t b)) := hU.isLocalization_basicOpen _ |
| 58 | exact DifferentialBasisLocalization.Neighborhood.basisAt b (Fin.append (fun i => (s i).val) t) |
| 59 | (Intrinsic.SmoothClosedSections.ring R Y (openSubset R X Y f U hU s t b)) |
| 60 | |
| 61 | omit [IsClosedImmersion f.left] in |
| 62 | theorem basis_eq : |
| 63 | (basis R X Y f U hU s t b : Fin (c+g) → |
| 64 | Ω[Intrinsic.SmoothClosedSections.ring R Y (openSubset R X Y f U hU s t b)⁄R]) = |
| 65 | Fin.append |
| 66 | (fun i => KaehlerDifferential.D R _ (normal R X Y f U hU s t b i)) |
| 67 | (fun i => KaehlerDifferential.D R _ (parameter R X Y f U hU s t b i)) := by |
| 68 | let := IntrinsicDeRham.SectionRestriction.IntrinsicUnit.restrictionAlgebra R Y |
| 69 | (homOfLE (below R X Y f U hU s t b)) |
| 70 | let := IntrinsicDeRham.SectionRestriction.IntrinsicUnit.restrictionTower R Y |
| 71 | (homOfLE (below R X Y f U hU s t b)) |
| 72 | let : IsLocalization.Away (determinant R X Y f U hU s t b) |
| 73 | (Intrinsic.SmoothClosedSections.ring R Y (openSubset R X Y f U hU s t b)) := hU.isLocalization_basicOpen _ |
| 74 | funext i |
| 75 | rw [basis, DifferentialBasisLocalization.Neighborhood.basisAt_apply] |
| 76 | refine Fin.addCases (fun j => ?_) (fun j => ?_) i <;> |
| 77 | simp only [Fin.append_left, Fin.append_right, normal, parameter, |
| 78 | IdealSheafPrincipalEquations.sequence] <;> rfl |
| 79 | |
| 80 | variable [Smooth X.hom] [Smooth Y.hom] |
| 81 | (bI : Module.Basis (Fin c) (Intrinsic.SmoothClosedSections.ring R Y U ⧸ f.left.ker.ideal ⟨U,hU⟩) |
| 82 | (f.left.ker.ideal ⟨U,hU⟩).Cotangent) |
| 83 | (hI : ∀ i, bI i = (f.left.ker.ideal ⟨U,hU⟩).toCotangent (s i)) |
| 84 | (bQ : Module.Basis (Fin g) (Intrinsic.SmoothClosedSections.ring R Y U ⧸ f.left.ker.ideal ⟨U,hU⟩) |
| 85 | Ω[Intrinsic.SmoothClosedSections.ring R Y U ⧸ f.left.ker.ideal ⟨U,hU⟩⁄R]) |
| 86 | (hQ : ∀ i, bQ i = KaehlerDifferential.D R (Intrinsic.SmoothClosedSections.ring R Y U ⧸ f.left.ker.ideal ⟨U,hU⟩) |
| 87 | (Ideal.Quotient.mk _ (t i))) |
| 88 | |
| 89 | include hI hQ in |
| 90 | theorem determinant_isUnit : IsUnit |
| 91 | (Ideal.Quotient.mk (f.left.ker.ideal ⟨U,hU⟩) (determinant R X Y f U hU s t b)) := by |
| 92 | let : Algebra.Smooth R Γ(Y.left,U) := Intrinsic.SmoothClosedSections.smooth_sections R Y U hU |
| 93 | let : Algebra.Smooth R (Γ(Y.left,U) ⧸ f.left.ker.ideal ⟨U,hU⟩) := |
| 94 | Intrinsic.SmoothClosedSections.smooth_quotient R X Y f U hU |
| 95 | have hd : (fun i => KaehlerDifferential.D R (Intrinsic.SmoothClosedSections.ring R Y U) |
| 96 | (Fin.append (fun j => (s j).val) t i)) = |
| 97 | Fin.append (fun i => KaehlerDifferential.D R (Intrinsic.SmoothClosedSections.ring R Y U) (s i).val) |
| 98 | (fun i => KaehlerDifferential.D R (Intrinsic.SmoothClosedSections.ring R Y U) (t i)) := by |
| 99 | funext i |
| 100 | refine Fin.addCases (fun j => ?_) (fun j => ?_) i <;> |
| 101 | simp only [Fin.append_left, Fin.append_right] |
| 102 | unfold determinant DifferentialBasisNeighborhood.determinant |
| 103 | rw [hd] |
| 104 | exact IntegralComparison.Quotient.ParameterBasis.determinant_isUnit (f.left.ker.ideal ⟨U,hU⟩) |
| 105 | bI s hI bQ t hQ b |
| 106 | |
| 107 | include hI hQ in |
| 108 | theorem preimage : f.left ⁻¹ᵁ openSubset R X Y f U hU s t b = f.left ⁻¹ᵁ U := by |
| 109 | have hu := (determinant_isUnit R X Y f U hU s t b bI hI bQ hQ).map |
| 110 | (Intrinsic.SmoothClosedSections.quotientEquiv R X Y f U hU).toRingHom |
| 111 | change IsUnit (f.left.app U (determinant R X Y f U hU s t b)) at hu |
| 112 | exact (Scheme.preimage_basicOpen f.left _).trans (X.left.basicOpen_of_isUnit hu) |
| 113 | |
| 114 | end |
| 115 | |
| 116 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Affine.ParameterFrameNeighborhood |