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.CycleClass.Thom.Open.ComplementPurity |
| 2 | import OAI.AlgebraicGeometry.DivisorClass.Chern.CodimensionTwoRemoval |
| 3 | import OAI.AlgebraicGeometry.DivisorClass.Chern.Support |
| 4 | |
| 5 | /-! # Divisor Detection -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.CycleClass.Thom.Finite.DivisorDetection |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Actual relative degree-two classes supported outside any nonempty |
| 12 | algebraic open are detected on the finitely many missing codimension-one points. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry _root_.TopologicalSpace Opposite |
| 15 | |
| 16 | set_option backward.isDefEq.respectTransparency false |
| 17 | set_option backward.isDefEq.respectTransparency.types false |
| 18 | set_option backward.defeqAttrib.useBackward true |
| 19 | |
| 20 | namespace Constructions |
| 21 | |
| 22 | open OAI.AlgebraicGeometry.CycleClass.Thom.Open.ComplementPurity.Constructions |
| 23 | variable (X : Foundations.Scheme.SmoothProjective.SmoothProjectivePresentation) [IsIntegral X.carrier] |
| 24 | (R : X.carrier.Opens) [Nonempty R] |
| 25 | local notation "T" => TopCat.of (OAI.AlgebraicGeometry.ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints X.toOver) |
| 26 | local notation "O" => OAI.AlgebraicGeometry.DivisorClass.Chern.Line.Bundles.AlgebraicLineBundle.analyticOpen X R |
| 27 | |
| 28 | /-- Actual restrictions on a neighborhood of each codimension-one point |
| 29 | determine a genuine global relative class supported outside the reference open. -/ |
| 30 | theorem relativeClass_eq_of_codimensionOne_restrictions |
| 31 | (U : {z : X.carrier // Order.coheight z = 1} → X.carrier.Opens) |
| 32 | (hU : ∀ z, z.val ∈ U z) |
| 33 | (a b : AlgebraicTopology.Cohomology.Singular.RelativeSequence.relativeSingularCohomology (ModuleCat.of ℚ ℚ) T (O : Set T) 2) |
| 34 | (hab : ∀ z, Geometric.RelativeCohomologySections.Cycles.relativeCohomologyOpenRestriction (ModuleCat.of ℚ ℚ) T (O : Set T) |
| 35 | (DivisorClass.Chern.Line.Bundles.AlgebraicLineBundle.analyticOpen X (U z)) 2 a = |
| 36 | Geometric.RelativeCohomologySections.Cycles.relativeCohomologyOpenRestriction (ModuleCat.of ℚ ℚ) T (O : Set T) |
| 37 | (DivisorClass.Chern.Line.Bundles.AlgebraicLineBundle.analyticOpen X (U z)) 2 b) : a = b := by |
| 38 | let GAlg := R ⊔ iSup U |
| 39 | let F := GAlg.compl |
| 40 | let G : Opens T := DivisorClass.Chern.Line.Bundles.AlgebraicLineBundle.analyticOpen X GAlg |
| 41 | let S := ((Geometric.SupportStalkVanishes.Cohomology.supportedSingularSheafComplex (ModuleCat.of ℚ ℚ) T O).homology 2).obj |
| 42 | have hF : ∀ z ∈ F, 1 < Order.coheight z := |
| 43 | DivisorClass.Chern.CodimensionTwoRemoval.Construction.complement_comparisonOpen_coheight X R U hU |
| 44 | have hO : (O : Set T) ⊆ DivisorClass.Chern.Line.Bundles.AlgebraicLineBundle.analyticOpen X F.compl := by |
| 45 | change (O : Set T) ⊆ DivisorClass.Chern.Line.Bundles.AlgebraicLineBundle.analyticOpen X GAlg.compl.compl |
| 46 | rw [Opens.compl_compl] |
| 47 | exact fun _ hx => Or.inl hx |
| 48 | have hi := DivisorClass.Chern.CodimensionTwoRemoval.Construction.codimensionTwo_relativeRestriction_isIso X F hF (O : Set T) hO |
| 49 | have hiG : IsIso (Geometric.RelativeCohomologySections.Cycles.relativeCohomologyOpenRestriction (ModuleCat.of ℚ ℚ) T (O : Set T) G 2) := by |
| 50 | change IsIso (Geometric.RelativeCohomologySections.Cycles.relativeCohomologyOpenRestriction (ModuleCat.of ℚ ℚ) T (O : Set T) |
| 51 | (DivisorClass.Chern.Line.Bundles.AlgebraicLineBundle.analyticOpen X GAlg.compl.compl) 2) at hi |
| 52 | rw [Opens.compl_compl] at hi |
| 53 | exact hi |
| 54 | apply (ModuleCat.mono_iff_injective |
| 55 | (Geometric.RelativeCohomologySections.Cycles.relativeCohomologyOpenRestriction (ModuleCat.of ℚ ℚ) T (O : Set T) G 2)).mp inferInstance |
| 56 | apply (ModuleCat.mono_iff_injective (Geometric.RelativeCohomologySections.Cycles.relativeCohomologySectionMap (ModuleCat.of ℚ ℚ) T O G 2)).mp inferInstance |
| 57 | have image (c : AlgebraicTopology.Cohomology.Singular.RelativeSequence.relativeSingularCohomology (ModuleCat.of ℚ ℚ) T (O : Set T) 2) |
| 58 | (V : Opens T) : |
| 59 | S.map (homOfLE (le_top : V ≤ ⊤)).op |
| 60 | (Geometric.RelativeCohomologySections.Cycles.relativeCohomologyGlobalSectionMap (ModuleCat.of ℚ ℚ) T O 2 c) = |
| 61 | Geometric.RelativeCohomologySections.Cycles.relativeCohomologySectionMap (ModuleCat.of ℚ ℚ) T O V 2 |
| 62 | (Geometric.RelativeCohomologySections.Cycles.relativeCohomologyOpenRestriction (ModuleCat.of ℚ ℚ) T (O : Set T) V 2 c) := |
| 63 | ConcreteCategory.congr_hom |
| 64 | (Geometric.RelativeCohomologySections.Cycles.relativeCohomologyGlobalSectionMap_restrict (ModuleCat.of ℚ ℚ) T O V 2) c |
| 65 | rw [← image a G, ← image b G] |
| 66 | apply Geometric.SupportedGerms.Cycles.supportedCohomologySection_ext_on_support (ModuleCat.of ℚ ℚ) T O G 2 |
| 67 | intro x hxG hxO |
| 68 | have hx : ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints.underlying x ∈ iSup U := by |
| 69 | change ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints.underlying x ∈ R ⊔ iSup U at hxG |
| 70 | exact hxG.resolve_left hxO |
| 71 | obtain ⟨z, hz⟩ := Opens.mem_iSup.mp hx |
| 72 | have hz' : x ∈ DivisorClass.Chern.Line.Bundles.AlgebraicLineBundle.analyticOpen X (U z) := hz |
| 73 | have he : S.map (homOfLE (le_top : DivisorClass.Chern.Line.Bundles.AlgebraicLineBundle.analyticOpen X (U z) ≤ ⊤)).op |
| 74 | (Geometric.RelativeCohomologySections.Cycles.relativeCohomologyGlobalSectionMap (ModuleCat.of ℚ ℚ) T O 2 a) = |
| 75 | S.map (homOfLE (le_top : DivisorClass.Chern.Line.Bundles.AlgebraicLineBundle.analyticOpen X (U z) ≤ ⊤)).op |
| 76 | (Geometric.RelativeCohomologySections.Cycles.relativeCohomologyGlobalSectionMap (ModuleCat.of ℚ ℚ) T O 2 b) := by |
| 77 | rw [image a, image b, hab z] |
| 78 | have hg := congrArg (TopCat.Presheaf.germ S (DivisorClass.Chern.Line.Bundles.AlgebraicLineBundle.analyticOpen X (U z)) x hz') he |
| 79 | rw [TopCat.Presheaf.germ_res_apply, TopCat.Presheaf.germ_res_apply] at hg |
| 80 | rw [TopCat.Presheaf.germ_res_apply, TopCat.Presheaf.germ_res_apply] |
| 81 | exact hg |
| 82 | |
| 83 | /-- The actual codimension-one points outside the chosen reference open. -/ |
| 84 | abbrev ComplementDivisorPoint := |
| 85 | {z : X.carrier // Order.coheight z = 1 ∧ z ∉ R} |
| 86 | |
| 87 | instance complementDivisorPoint_finite : Finite (ComplementDivisorPoint X R) := by |
| 88 | exact (DivisorClass.Chern.Support.Construction.finite_codimension_one_complement X.carrier R).to_subtype |
| 89 | |
| 90 | /-- Every original relative class restricts to zero on the reference open. -/ |
| 91 | theorem relativeClass_reference_restriction_zero |
| 92 | (a : AlgebraicTopology.Cohomology.Singular.RelativeSequence.relativeSingularCohomology (ModuleCat.of ℚ ℚ) T (O : Set T) 2) : |
| 93 | Geometric.RelativeCohomologySections.Cycles.relativeCohomologyOpenRestriction (ModuleCat.of ℚ ℚ) T (O : Set T) O 2 a = 0 := by |
| 94 | apply (ModuleCat.mono_iff_injective (Geometric.RelativeCohomologySections.Cycles.relativeCohomologySectionMap (ModuleCat.of ℚ ℚ) T O O 2)).mp inferInstance |
| 95 | apply Geometric.SupportedGerms.Cycles.supportedCohomologySection_ext_on_support (ModuleCat.of ℚ ℚ) T O O 2 |
| 96 | intro x hx hnot |
| 97 | exact (hnot hx).elim |
| 98 | |
| 99 | /-- Actual relative classes are determined by finitely many algebraic |
| 100 | neighborhood restrictions, one at each reference divisor point. -/ |
| 101 | theorem relativeClass_eq_of_finite_divisor_restrictions |
| 102 | (U : ComplementDivisorPoint X R → X.carrier.Opens) (hU : ∀ z, z.val ∈ U z) |
| 103 | (a b : AlgebraicTopology.Cohomology.Singular.RelativeSequence.relativeSingularCohomology (ModuleCat.of ℚ ℚ) T (O : Set T) 2) |
| 104 | (hab : ∀ z, Geometric.RelativeCohomologySections.Cycles.relativeCohomologyOpenRestriction (ModuleCat.of ℚ ℚ) T (O : Set T) |
| 105 | (DivisorClass.Chern.Line.Bundles.AlgebraicLineBundle.analyticOpen X (U z)) 2 a = |
| 106 | Geometric.RelativeCohomologySections.Cycles.relativeCohomologyOpenRestriction (ModuleCat.of ℚ ℚ) T (O : Set T) |
| 107 | (DivisorClass.Chern.Line.Bundles.AlgebraicLineBundle.analyticOpen X (U z)) 2 b) : a = b := by |
| 108 | classical |
| 109 | let V (z : {z : X.carrier // Order.coheight z = 1}) : X.carrier.Opens := |
| 110 | if hz : z.val ∈ R then R |
| 111 | else U ⟨z.val, z.property, hz⟩ |
| 112 | have hV (z : {z : X.carrier // Order.coheight z = 1}) : z.val ∈ V z := by |
| 113 | dsimp only [V] |
| 114 | split_ifs with hz |
| 115 | · exact hz |
| 116 | · exact hU ⟨z.val, z.property, hz⟩ |
| 117 | apply relativeClass_eq_of_codimensionOne_restrictions X R V hV a b |
| 118 | intro z |
| 119 | by_cases hz : z.val ∈ R |
| 120 | · have he : V z = R := dite_eq_left hz |
| 121 | rw [he, relativeClass_reference_restriction_zero X R a, relativeClass_reference_restriction_zero X R b] |
| 122 | · have he : V z = U ⟨z.val, z.property, hz⟩ := dite_eq_right hz |
| 123 | rw [he] |
| 124 | exact hab ⟨z.val, z.property, hz⟩ |
| 125 | |
| 126 | /-- The finite family of actual restrictions is injective. -/ |
| 127 | theorem finite_divisor_restriction_injective |
| 128 | (U : ComplementDivisorPoint X R → X.carrier.Opens) (hU : ∀ z, z.val ∈ U z) : |
| 129 | Function.Injective (fun a : AlgebraicTopology.Cohomology.Singular.RelativeSequence.relativeSingularCohomology (ModuleCat.of ℚ ℚ) T (O : Set T) 2 => |
| 130 | fun z : ComplementDivisorPoint X R => |
| 131 | Geometric.RelativeCohomologySections.Cycles.relativeCohomologyOpenRestriction (ModuleCat.of ℚ ℚ) T (O : Set T) |
| 132 | (DivisorClass.Chern.Line.Bundles.AlgebraicLineBundle.analyticOpen X (U z)) 2 a) := by |
| 133 | intro a b hab |
| 134 | exact relativeClass_eq_of_finite_divisor_restrictions X R U hU a b (congrFun hab) |
| 135 | |
| 136 | end Constructions |
| 137 | |
| 138 | end |
| 139 | |
| 140 | end OAI.AlgebraicGeometry.CycleClass.Thom.Finite.DivisorDetection |