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.PELModuli.IntegralModel.ArithmeticCoefficientLocalization |
| 2 | |
| 3 | /-! # Arithmetic Base Maps -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.PELModuli.CMPoints.ArithmeticBaseMaps |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | section |
| 10 | |
| 11 | /-! Enlarge an existing arithmetic localization while retaining its |
| 12 | field, embedding, and actual map from the original arithmetic base. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 15 | |
| 16 | variable {K : Type} [Field K] [NumberField K] {κ : K →+* ℂ} |
| 17 | (B : IntegralModel.Base.ArithmeticBaseExtension K κ) (D : ℕ) (hD : D ≠ 0) (hdiv : B.denominator ∣ D) |
| 18 | |
| 19 | def arithmeticEnlargementRingHom : B.R →+* (B.withDenominator D hD).R := |
| 20 | IsLocalization.Away.lift (B.denominator : NumberField.RingOfIntegers B.extension.carrier) |
| 21 | (g := algebraMap (NumberField.RingOfIntegers B.extension.carrier) (B.withDenominator D hD).R) |
| 22 | (by simpa only [map_natCast] using (B.withDenominator D hD).divisor_isUnit B.denominator hdiv) |
| 23 | |
| 24 | theorem arithmeticEnlargementRingHom_integers (a : NumberField.RingOfIntegers B.extension.carrier) : |
| 25 | arithmeticEnlargementRingHom B D hD hdiv |
| 26 | (algebraMap (NumberField.RingOfIntegers B.extension.carrier) B.R a) = |
| 27 | algebraMap (NumberField.RingOfIntegers B.extension.carrier) (B.withDenominator D hD).R a := |
| 28 | IsLocalization.Away.lift_eq _ _ a |
| 29 | |
| 30 | theorem arithmeticEnlargementRingHom_field : |
| 31 | (B.withDenominator D hD).toField.comp (arithmeticEnlargementRingHom B D hD hdiv) = B.toField := by |
| 32 | apply IsLocalization.ringHom_ext (Submonoid.powers |
| 33 | (B.denominator : NumberField.RingOfIntegers B.extension.carrier)) |
| 34 | ext a |
| 35 | change (B.withDenominator D hD).toField |
| 36 | (arithmeticEnlargementRingHom B D hD hdiv |
| 37 | (algebraMap (NumberField.RingOfIntegers B.extension.carrier) B.R a)) = |
| 38 | B.toField (algebraMap (NumberField.RingOfIntegers B.extension.carrier) B.R a) |
| 39 | rw [arithmeticEnlargementRingHom_integers] |
| 40 | exact (ArithmeticGeometry.Models.Algebra.Constructions.Foundations.integersAwayToField_algebraMap _ _ _ a).trans |
| 41 | (ArithmeticGeometry.Models.Algebra.Constructions.Foundations.integersAwayToField_algebraMap _ _ _ a).symm |
| 42 | |
| 43 | def arithmeticEnlargement : (B.withDenominator D hD).base ⟶ B.base := |
| 44 | Spec.map (CommRingCat.ofHom (arithmeticEnlargementRingHom B D hD hdiv)) |
| 45 | |
| 46 | theorem arithmeticEnlargement_generic : |
| 47 | (B.withDenominator D hD).generic ≫ arithmeticEnlargement B D hD hdiv = B.generic := by |
| 48 | change Spec.map (CommRingCat.ofHom (B.withDenominator D hD).toField) ≫ |
| 49 | Spec.map (CommRingCat.ofHom (arithmeticEnlargementRingHom B D hD hdiv)) = _ |
| 50 | rw [← Spec.map_comp] |
| 51 | exact congrArg (fun f => Spec.map (CommRingCat.ofHom f)) |
| 52 | (arithmeticEnlargementRingHom_field B D hD hdiv) |
| 53 | |
| 54 | theorem arithmeticEnlargement_complex : |
| 55 | (B.withDenominator D hD).complexPoint ≫ arithmeticEnlargement B D hD hdiv = B.complexPoint := by |
| 56 | change (Spec.map (CommRingCat.ofHom B.embedding) ≫ (B.withDenominator D hD).generic) ≫ _ = _ |
| 57 | rw [Category.assoc, arithmeticEnlargement_generic] |
| 58 | rfl |
| 59 | |
| 60 | end |
| 61 | |
| 62 | /-! Actual maps of arithmetic bases induced by specified field maps. -/ |
| 63 | |
| 64 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 65 | |
| 66 | variable {K L : Type} [Field K] [NumberField K] [Field L] [NumberField L] |
| 67 | {κ : K →+* ℂ} {κL : L →+* ℂ} |
| 68 | (B : IntegralModel.Base.ArithmeticBaseExtension K κ) (C : IntegralModel.Base.ArithmeticBaseExtension L κL) |
| 69 | (i : B.extension.carrier →+* C.extension.carrier) (hdiv : B.denominator ∣ C.denominator) |
| 70 | |
| 71 | def arithmeticBaseRingHom : B.R →+* C.R := |
| 72 | IsLocalization.Away.lift (B.denominator : NumberField.RingOfIntegers B.extension.carrier) |
| 73 | (g := (algebraMap (NumberField.RingOfIntegers C.extension.carrier) C.R).comp |
| 74 | (NumberField.RingOfIntegers.mapRingHom i)) |
| 75 | (by simpa only [RingHom.comp_apply, map_natCast] using C.divisor_isUnit B.denominator hdiv) |
| 76 | |
| 77 | theorem arithmeticBaseRingHom_integers (a : NumberField.RingOfIntegers B.extension.carrier) : |
| 78 | arithmeticBaseRingHom B C i hdiv |
| 79 | (algebraMap (NumberField.RingOfIntegers B.extension.carrier) B.R a) = |
| 80 | algebraMap (NumberField.RingOfIntegers C.extension.carrier) C.R |
| 81 | (NumberField.RingOfIntegers.mapRingHom i a) := |
| 82 | IsLocalization.Away.lift_eq _ _ a |
| 83 | |
| 84 | theorem arithmeticBaseRingHom_field : |
| 85 | C.toField.comp (arithmeticBaseRingHom B C i hdiv) = i.comp B.toField := by |
| 86 | apply IsLocalization.ringHom_ext (Submonoid.powers |
| 87 | (B.denominator : NumberField.RingOfIntegers B.extension.carrier)) |
| 88 | apply RingHom.ext |
| 89 | intro a |
| 90 | change C.toField (arithmeticBaseRingHom B C i hdiv (algebraMap _ B.R a)) = |
| 91 | i (B.toField (algebraMap _ B.R a)) |
| 92 | rw [arithmeticBaseRingHom_integers] |
| 93 | exact (ArithmeticGeometry.Models.Algebra.Constructions.Foundations.integersAwayToField_algebraMap _ _ _ _).trans |
| 94 | (congrArg i (ArithmeticGeometry.Models.Algebra.Constructions.Foundations.integersAwayToField_algebraMap _ _ _ a)).symm |
| 95 | |
| 96 | def arithmeticBaseMap : C.base ⟶ B.base := |
| 97 | Spec.map (CommRingCat.ofHom (arithmeticBaseRingHom B C i hdiv)) |
| 98 | |
| 99 | theorem arithmeticBaseMap_generic : |
| 100 | C.generic ≫ arithmeticBaseMap B C i hdiv = Spec.map (CommRingCat.ofHom i) ≫ B.generic := by |
| 101 | change Spec.map (CommRingCat.ofHom C.toField) ≫ |
| 102 | Spec.map (CommRingCat.ofHom (arithmeticBaseRingHom B C i hdiv)) = |
| 103 | Spec.map (CommRingCat.ofHom i) ≫ Spec.map (CommRingCat.ofHom B.toField) |
| 104 | rw [← Spec.map_comp, ← Spec.map_comp] |
| 105 | exact congrArg (fun f => Spec.map (CommRingCat.ofHom f)) (arithmeticBaseRingHom_field B C i hdiv) |
| 106 | |
| 107 | theorem arithmeticBaseMap_complex (hi : C.embedding.comp i = B.embedding) : |
| 108 | C.complexPoint ≫ arithmeticBaseMap B C i hdiv = B.complexPoint := by |
| 109 | change (Spec.map (CommRingCat.ofHom C.embedding) ≫ C.generic) ≫ _ = _ |
| 110 | rw [Category.assoc, arithmeticBaseMap_generic, ← Category.assoc, ← Spec.map_comp] |
| 111 | exact congrArg (fun f => Spec.map (CommRingCat.ofHom f) ≫ B.generic) hi |
| 112 | |
| 113 | theorem arithmeticBaseRingHom_enlarge (D : ℕ) (hD : D ≠ 0) (hCD : C.denominator ∣ D) : |
| 114 | (arithmeticEnlargementRingHom C D hD hCD).comp (arithmeticBaseRingHom B C i hdiv) = |
| 115 | arithmeticBaseRingHom B (C.withDenominator D hD) i (hdiv.trans hCD) := by |
| 116 | apply RingHom.ext |
| 117 | intro a |
| 118 | apply (C.withDenominator D hD).toField_injective |
| 119 | exact (RingHom.congr_fun (arithmeticEnlargementRingHom_field C D hD hCD) |
| 120 | (arithmeticBaseRingHom B C i hdiv a)).trans |
| 121 | ((RingHom.congr_fun (arithmeticBaseRingHom_field B C i hdiv) a).trans |
| 122 | (RingHom.congr_fun (arithmeticBaseRingHom_field B (C.withDenominator D hD) i |
| 123 | (hdiv.trans hCD)) a).symm) |
| 124 | |
| 125 | theorem arithmeticBaseMap_enlarge (D : ℕ) (hD : D ≠ 0) (hCD : C.denominator ∣ D) : |
| 126 | arithmeticEnlargement C D hD hCD ≫ arithmeticBaseMap B C i hdiv = |
| 127 | arithmeticBaseMap B (C.withDenominator D hD) i (hdiv.trans hCD) := by |
| 128 | dsimp only [arithmeticEnlargement, arithmeticBaseMap] |
| 129 | rw [← Spec.map_comp] |
| 130 | exact congrArg (fun f => Spec.map (CommRingCat.ofHom f)) |
| 131 | (arithmeticBaseRingHom_enlarge B C i hdiv D hD hCD) |
| 132 | |
| 133 | end |
| 134 | |
| 135 | end OAI.AlgebraicGeometry.PELModuli.CMPoints.ArithmeticBaseMaps |