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.Divisors.LineBundles.FiniteAffine.SpaceOver |
| 2 | import OAI.AlgebraicGeometry.Divisors.LineBundles.Open.ProductCycleSquare |
| 3 | import OAI.AlgebraicGeometry.Divisors.LineBundles.Open.ImmersionNoetherian |
| 4 | |
| 5 | /-! # Product Chart -/ |
| 6 | |
| 7 | namespace OAI |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | namespace AlgebraicGeometry.Divisors.LineBundles.Open.ProductChart.BundleCycles |
| 12 | |
| 13 | /-! Genuine open product charts of a scheme morphism. The record contains |
| 14 | only schemes, maps, a limiting product cone, and native geometric properties. -/ |
| 15 | |
| 16 | open _root_.AlgebraicGeometry _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.TopologicalSpace |
| 17 | |
| 18 | structure SchemeOpenProductChart {E X : Over Foundations.Scheme.ProjectiveSpace.complexBase} (f : E ⟶ X) (z : E.left) where |
| 19 | base : Over Foundations.Scheme.ProjectiveSpace.complexBase |
| 20 | total : Over Foundations.Scheme.ProjectiveSpace.complexBase |
| 21 | fiber : Over Foundations.Scheme.ProjectiveSpace.complexBase |
| 22 | baseMap : base ⟶ X |
| 23 | totalMap : total ⟶ E |
| 24 | fiberProjection : total ⟶ fiber |
| 25 | baseProjection : total ⟶ base |
| 26 | baseOpen : IsOpenImmersion baseMap.left |
| 27 | totalOpen : IsOpenImmersion totalMap.left |
| 28 | mem : z ∈ Set.range totalMap.left |
| 29 | square : totalMap ≫ f = baseProjection ≫ baseMap |
| 30 | product : IsLimit (BinaryFan.mk fiberProjection baseProjection) |
| 31 | fiberIntegral : IsIntegral fiber.left |
| 32 | fiberSmooth : Smooth fiber.hom |
| 33 | fiberMetrizable : MetrizableSpace (ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints fiber) |
| 34 | |
| 35 | namespace SchemeOpenProductChart |
| 36 | |
| 37 | variable {E X : Over Foundations.Scheme.ProjectiveSpace.complexBase} {f : E ⟶ X} {z : E.left} (c : SchemeOpenProductChart f z) |
| 38 | |
| 39 | instance baseMap_open : IsOpenImmersion c.baseMap.left := c.baseOpen |
| 40 | instance totalMap_open : IsOpenImmersion c.totalMap.left := c.totalOpen |
| 41 | instance fiber_integral : IsIntegral c.fiber.left := c.fiberIntegral |
| 42 | instance fiber_smooth : Smooth c.fiber.hom := c.fiberSmooth |
| 43 | instance fiber_metrizable : MetrizableSpace (ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints c.fiber) := c.fiberMetrizable |
| 44 | |
| 45 | instance total_nonempty : Nonempty c.total.left := by |
| 46 | obtain ⟨t, _⟩ := c.mem |
| 47 | exact ⟨t⟩ |
| 48 | |
| 49 | instance base_nonempty : Nonempty c.base.left := |
| 50 | Nonempty.map c.baseProjection.left (total_nonempty c) |
| 51 | |
| 52 | instance base_integral [IsIntegral X.left] : IsIntegral c.base.left := |
| 53 | isIntegral_of_isOpenImmersion c.baseMap.left |
| 54 | |
| 55 | instance total_integral [IsIntegral E.left] : IsIntegral c.total.left := |
| 56 | isIntegral_of_isOpenImmersion c.totalMap.left |
| 57 | |
| 58 | instance base_smooth [Smooth X.hom] : Smooth c.base.hom := by |
| 59 | have h : Smooth (c.baseMap.left ≫ X.hom) := smooth_comp c.baseMap.left X.hom |
| 60 | exact c.baseMap.w ▸ h |
| 61 | |
| 62 | instance total_smooth [Smooth E.hom] : Smooth c.total.hom := by |
| 63 | have h : Smooth (c.totalMap.left ≫ E.hom) := smooth_comp c.totalMap.left E.hom |
| 64 | exact c.totalMap.w ▸ h |
| 65 | |
| 66 | instance base_noetherian [AlgebraicGeometry.IsNoetherian X.left] : AlgebraicGeometry.IsNoetherian c.base.left := |
| 67 | ImmersionNoetherian.BundleCycles.openImmersion_isNoetherian c.baseMap.left |
| 68 | |
| 69 | instance total_noetherian [AlgebraicGeometry.IsNoetherian E.left] : AlgebraicGeometry.IsNoetherian c.total.left := |
| 70 | ImmersionNoetherian.BundleCycles.openImmersion_isNoetherian c.totalMap.left |
| 71 | |
| 72 | instance base_metrizable [MetrizableSpace (ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints X)] : MetrizableSpace (ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints c.base) := |
| 73 | (ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints.isOpenEmbedding_map_of_isOpenImmersion c.baseMap).isEmbedding.metrizableSpace |
| 74 | |
| 75 | instance total_metrizable [MetrizableSpace (ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints E)] : MetrizableSpace (ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints c.total) := |
| 76 | (ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints.isOpenEmbedding_map_of_isOpenImmersion c.totalMap).isEmbedding.metrizableSpace |
| 77 | |
| 78 | theorem point_mem (q : ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints E) (hq : ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints.underlying q = z) : |
| 79 | q ∈ Set.range (ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints.map c.totalMap) := by |
| 80 | rw [ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints.range_map_of_isImmersion] |
| 81 | exact hq.symm ▸ c.mem |
| 82 | |
| 83 | end SchemeOpenProductChart |
| 84 | |
| 85 | end AlgebraicGeometry.Divisors.LineBundles.Open.ProductChart.BundleCycles |
| 86 | |
| 87 | namespace AlgebraicGeometry.Divisors.LineBundles.Open.ProductChart.BundleCycles.SchemeOpenProductChart |
| 88 | open _root_.AlgebraicGeometry |
| 89 | open _root_.CategoryTheory |
| 90 | open _root_.TopologicalSpace |
| 91 | section |
| 92 | |
| 93 | /-! Every open product chart through an inverse-image support point |
| 94 | meets both actual restricted supports. Their dimensions are inherited |
| 95 | from the genuine open immersions. -/ |
| 96 | |
| 97 | variable {E X : Over Foundations.Scheme.ProjectiveSpace.complexBase} {f : E ⟶ X} {z : E.left} (c : SchemeOpenProductChart f z) |
| 98 | (B : IrreducibleCloseds X.left) (C : IrreducibleCloseds E.left) |
| 99 | (hC : (C : Set E.left) = f.left ⁻¹' (B : Set X.left)) (hz : z ∈ (C : Set E.left)) |
| 100 | |
| 101 | include hz in |
| 102 | theorem totalSupport_nonempty : Nonempty (SupportRestriction.BundleCycles.openSupportPullback c.totalMap.left C) := by |
| 103 | obtain ⟨t, ht⟩ := c.mem |
| 104 | apply (SupportRestriction.BundleCycles.openSupportPullback_nonempty_iff c.totalMap.left C).mpr |
| 105 | refine ⟨t, ?_⟩ |
| 106 | change c.totalMap.left t ∈ (C : Set E.left) |
| 107 | rw [ht] |
| 108 | exact hz |
| 109 | |
| 110 | include hC hz in |
| 111 | theorem baseSupport_nonempty : Nonempty (SupportRestriction.BundleCycles.openSupportPullback c.baseMap.left B) := by |
| 112 | obtain ⟨t, ht⟩ := c.mem |
| 113 | apply (SupportRestriction.BundleCycles.openSupportPullback_nonempty_iff c.baseMap.left B).mpr |
| 114 | refine ⟨c.baseProjection.left t, ?_⟩ |
| 115 | have he : f.left (c.totalMap.left t) = c.baseMap.left (c.baseProjection.left t) := |
| 116 | congrArg (fun k : c.total ⟶ X => k.left t) c.square |
| 117 | have hb : f.left z ∈ (B : Set X.left) := (Set.ext_iff.mp hC z).mp hz |
| 118 | change c.baseMap.left (c.baseProjection.left t) ∈ (B : Set X.left) |
| 119 | rw [← he, ht] |
| 120 | exact hb |
| 121 | |
| 122 | end |
| 123 | |
| 124 | /-! Codimension is preserved by an actual open product chart meeting |
| 125 | the support. This follows from the proved dimensions of products and |
| 126 | open immersions, without a constant-rank hypothesis. -/ |
| 127 | |
| 128 | variable {E X : Over Foundations.Scheme.ProjectiveSpace.complexBase} [IsIntegral E.left] [Smooth E.hom] |
| 129 | [IsIntegral X.left] [Smooth X.hom] |
| 130 | {f : E ⟶ X} {z : E.left} (c : SchemeOpenProductChart f z) |
| 131 | (B : IrreducibleCloseds X.left) (C : IrreducibleCloseds E.left) |
| 132 | (hC : (C : Set E.left) = f.left ⁻¹' (B : Set X.left)) (hz : z ∈ (C : Set E.left)) |
| 133 | |
| 134 | include c hC hz in |
| 135 | omit [Smooth E.hom] in |
| 136 | theorem inverseImage_codimension (p : ℕ) |
| 137 | (hp : Foundations.Scheme.SupportDimension.supportTranscendenceDimension B X.hom + p = Foundations.Scheme.TranscendenceDimension.schemeTranscendenceDimension X.hom) : |
| 138 | Foundations.Scheme.SupportDimension.supportTranscendenceDimension C E.hom + p = Foundations.Scheme.TranscendenceDimension.schemeTranscendenceDimension E.hom := by |
| 139 | let := c.totalSupport_nonempty C hz |
| 140 | let := c.baseSupport_nonempty B C hC hz |
| 141 | let A := SupportRestriction.BundleCycles.openRestrictedSupport c.baseMap.left B |
| 142 | let D := SupportRestriction.BundleCycles.openRestrictedSupport c.totalMap.left C |
| 143 | have hA := SupportRestriction.BundleCycles.openRestrictedSupport_coe c.baseMap.left B |
| 144 | have hD := SupportRestriction.BundleCycles.openRestrictedSupport_coe c.totalMap.left C |
| 145 | have hDP := ProductCycleSquare.BundleCycles.openProductSupport_preimage f c.baseMap c.totalMap c.baseProjection c.square B C A D hC hA hD |
| 146 | have he : D = Projection.ReducedSupport.BundleCycles.projectionIrreducibleSupport c.fiber c.base A c.total c.fiberProjection c.baseProjection c.product := |
| 147 | SetLike.coe_injective (hDP.trans |
| 148 | (Projection.ReducedSupport.BundleCycles.projectionIrreducibleSupport_coe c.fiber c.base A c.total c.fiberProjection c.baseProjection c.product).symm) |
| 149 | have ha := SupportOver.BundleCycles.openRestrictedSupportOver_codimension c.baseMap B p hp |
| 150 | have hd : Foundations.Scheme.SupportDimension.supportTranscendenceDimension D c.total.hom + p = Foundations.Scheme.TranscendenceDimension.schemeTranscendenceDimension c.total.hom := by |
| 151 | rw [he] |
| 152 | exact Projection.SupportDimension.BundleCycles.projectionIrreducibleSupport_codimension c.fiber c.base A c.total |
| 153 | c.fiberProjection c.baseProjection c.product p ha |
| 154 | change Foundations.Scheme.SupportDimension.supportTranscendenceDimension (SupportRestriction.BundleCycles.openRestrictedSupport c.totalMap.left C) c.total.hom + p = |
| 155 | Foundations.Scheme.TranscendenceDimension.schemeTranscendenceDimension c.total.hom at hd |
| 156 | rw [SupportOver.BundleCycles.openRestrictedSupportOver_dimension, SupportOver.BundleCycles.openImmersionOver_dimension c.totalMap] at hd |
| 157 | exact hd |
| 158 | |
| 159 | end AlgebraicGeometry.Divisors.LineBundles.Open.ProductChart.BundleCycles.SchemeOpenProductChart |
| 160 | |
| 161 | end |
| 162 | |
| 163 | end OAI |