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.EtaleCoordinates |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.SmoothProper.ZeroFrames |
| 3 | |
| 4 | /-! # Etale Cover -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.SmoothProper.EtaleCover |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! |
| 11 | # IntegralComparison: a native finite affine cover of a smooth proper scheme by étale coordinate charts |
| 12 | -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 15 | |
| 16 | universe u |
| 17 | |
| 18 | variable (k : Type u) [Field k] (X : Over (Spec (CommRingCat.of k))) |
| 19 | [IsProper X.hom] [Smooth X.hom] |
| 20 | |
| 21 | def localizers (i : (ProperAffineCover.cover X.hom).I₀) : |
| 22 | Finset (ProperAffineCover.coordinateRing X.hom i) := |
| 23 | (IntegralComparison.Smooth.EtaleCoordinates.exists_finite_cover k (ProperAffineCover.coordinateRing X.hom i)).choose |
| 24 | |
| 25 | theorem localizers_coordinates (i : (ProperAffineCover.cover X.hom).I₀) |
| 26 | (r : ProperAffineCover.coordinateRing X.hom i) (hr : r ∈ localizers k X i) : |
| 27 | IntegralComparison.Smooth.EtaleCoordinates.HasCoordinates k (ProperAffineCover.coordinateRing X.hom i) r := |
| 28 | (IntegralComparison.Smooth.EtaleCoordinates.exists_finite_cover k (ProperAffineCover.coordinateRing X.hom i)).choose_spec.1 r hr |
| 29 | |
| 30 | theorem localizers_span (i : (ProperAffineCover.cover X.hom).I₀) : |
| 31 | Ideal.span (Set.range (fun r : localizers k X i => r.val)) = ⊤ := by |
| 32 | have he : Set.range (fun r : localizers k X i => r.val) = (localizers k X i : Set _) := by |
| 33 | ext a |
| 34 | exact ⟨fun ⟨b, hb⟩ => hb ▸ b.property, fun ha => ⟨⟨a, ha⟩, rfl⟩⟩ |
| 35 | rw [he] |
| 36 | exact (IntegralComparison.Smooth.EtaleCoordinates.exists_finite_cover k (ProperAffineCover.coordinateRing X.hom i)).choose_spec.2 |
| 37 | |
| 38 | abbrev Index := Σ i : (ProperAffineCover.cover X.hom).I₀, localizers k X i |
| 39 | |
| 40 | instance index_fintype : Fintype (Index k X) := inferInstanceAs (Fintype (Σ i, localizers k X i)) |
| 41 | |
| 42 | def coordinateRing (a : Index k X) : CommRingCat.{u} := CommRingCat.of (Localization.Away a.2.val) |
| 43 | |
| 44 | instance coordinateAlgebra (a : Index k X) : Algebra k (coordinateRing k X a) := |
| 45 | inferInstanceAs (Algebra k (Localization.Away a.2.val)) |
| 46 | |
| 47 | def localizationMap (a : Index k X) : |
| 48 | ProperAffineCover.coordinateRing X.hom a.1 ⟶ coordinateRing k X a := |
| 49 | ConcreteCategory.ofHom (C := CommRingCat) |
| 50 | (X := ProperAffineCover.coordinateRing X.hom a.1) (Y := coordinateRing k X a) |
| 51 | (algebraMap (ProperAffineCover.coordinateRing X.hom a.1) (Localization.Away a.2.val)) |
| 52 | |
| 53 | def chartMap (a : Index k X) : Spec (coordinateRing k X a) ⟶ X.left := |
| 54 | Spec.map (localizationMap k X a) ≫ ProperAffineCover.chartMap X.hom a.1 |
| 55 | |
| 56 | instance chartMap_open (a : Index k X) : IsOpenImmersion (chartMap k X a) := by |
| 57 | let : IsOpenImmersion (Spec.map (localizationMap k X a)) := |
| 58 | inferInstanceAs (IsOpenImmersion (Spec.map (CommRingCat.ofHom |
| 59 | (algebraMap (ProperAffineCover.coordinateRing X.hom a.1) (Localization.Away a.2.val))))) |
| 60 | unfold chartMap |
| 61 | infer_instance |
| 62 | |
| 63 | theorem chartMap_over (a : Index k X) : chartMap k X a ≫ X.hom = |
| 64 | Spec.map (CommRingCat.ofHom (algebraMap k (coordinateRing k X a))) := by |
| 65 | let b : CommRingCat.of k ⟶ ProperAffineCover.coordinateRing X.hom a.1 := |
| 66 | ConcreteCategory.ofHom (C := CommRingCat) (X := CommRingCat.of k) |
| 67 | (Y := ProperAffineCover.coordinateRing X.hom a.1) |
| 68 | (algebraMap k (ProperAffineCover.coordinateRing X.hom a.1)) |
| 69 | have hbase : ProperAffineCover.chartMap X.hom a.1 ≫ X.hom = Spec.map b := |
| 70 | ProperAffineCover.chartMap_over X.hom a.1 |
| 71 | have hb : b ≫ localizationMap k X a = CommRingCat.ofHom (algebraMap k (coordinateRing k X a)) := by |
| 72 | apply CommRingCat.hom_ext |
| 73 | exact (IsScalarTower.algebraMap_eq k (ProperAffineCover.coordinateRing X.hom a.1) |
| 74 | (Localization.Away a.2.val)).symm |
| 75 | exact (Category.assoc _ _ _).trans |
| 76 | ((congrArg (fun t => Spec.map (localizationMap k X a) ≫ t) |
| 77 | hbase).trans |
| 78 | ((Spec.map_comp b (localizationMap k X a)).symm.trans (congrArg Spec.map hb))) |
| 79 | |
| 80 | theorem covers (z : X.left) : ∃ a : Index k X, z ∈ Set.range (chartMap k X a) := by |
| 81 | have hz : z ∈ (⨆ i, (ProperAffineCover.chartMap X.hom i).opensRange : X.left.Opens) := by |
| 82 | rw [ProperAffineCover.chartMaps_cover] |
| 83 | trivial |
| 84 | obtain ⟨i, y, rfl⟩ := TopologicalSpace.Opens.mem_iSup.mp hz |
| 85 | let V := Scheme.affineOpenCoverOfSpanRangeEqTop (fun r : localizers k X i => r.val) (localizers_span k X i) |
| 86 | obtain ⟨r, t, ht⟩ := V.openCover.exists_eq y |
| 87 | refine ⟨⟨i, r⟩, t, ?_⟩ |
| 88 | change (ProperAffineCover.chartMap X.hom i) ((V.f r) t) = (ProperAffineCover.chartMap X.hom i) y |
| 89 | exact congrArg (ProperAffineCover.chartMap X.hom i) ht |
| 90 | |
| 91 | def affineCover : X.left.AffineOpenCover where |
| 92 | I₀ := Index k X |
| 93 | X := coordinateRing k X |
| 94 | f := chartMap k X |
| 95 | idx z := (EtaleCover.covers k X z).choose |
| 96 | covers z := (EtaleCover.covers k X z).choose_spec |
| 97 | |
| 98 | instance affineCover_fintype : Fintype (affineCover k X).I₀ := index_fintype k X |
| 99 | |
| 100 | def coordinateIndex (a : Index k X) : Type u := |
| 101 | (localizers_coordinates k X a.1 a.2.val a.2.property).choose |
| 102 | |
| 103 | instance coordinateIndex_fintype (a : Index k X) : Fintype (coordinateIndex k X a) := |
| 104 | (localizers_coordinates k X a.1 a.2.val a.2.property).choose_spec.choose |
| 105 | |
| 106 | instance polynomialAlgebra (a : Index k X) : |
| 107 | Algebra (MvPolynomial (coordinateIndex k X a) k) (coordinateRing k X a) := |
| 108 | (localizers_coordinates k X a.1 a.2.val a.2.property).choose_spec.choose_spec.choose |
| 109 | |
| 110 | instance coordinateTower (a : Index k X) : |
| 111 | IsScalarTower k (MvPolynomial (coordinateIndex k X a) k) (coordinateRing k X a) := |
| 112 | (localizers_coordinates k X a.1 a.2.val a.2.property).choose_spec.choose_spec.choose_spec.1 |
| 113 | |
| 114 | instance coordinateEtale (a : Index k X) : |
| 115 | Algebra.Etale (MvPolynomial (coordinateIndex k X a) k) (coordinateRing k X a) := |
| 116 | (localizers_coordinates k X a.1 a.2.val a.2.property).choose_spec.choose_spec.choose_spec.2 |
| 117 | |
| 118 | end |
| 119 | |
| 120 | end OAI.NumberTheory.PadicHodge.IntegralComparison.SmoothProper.EtaleCover |