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.Open.BaseActionGluing |
| 2 | import Mathlib.AlgebraicGeometry.Properties |
| 3 | |
| 4 | /-! # Action Matching Compatibility -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.PELModuli.IntegralModel.Open.ActionMatchingCompatibility |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | section |
| 11 | |
| 12 | /-! Evaluation at the tautological point of a source overlap. This turns |
| 13 | equal restricted actions into equal actual morphisms on that overlap. -/ |
| 14 | |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | set_option backward.isDefEq.respectTransparency.types false |
| 17 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 18 | |
| 19 | namespace OpenActionOverlap |
| 20 | variable {S : Scheme.{0}} (C : S.OpenCover) {g : ℕ} (A : AbelianModuli.HilbertConstruction.Abelian.Schemes.AbelianScheme g S) (i j : C.I₀) |
| 21 | |
| 22 | def source : Scheme := pullback (pullback.fst A.scheme.hom (C.f i)) |
| 23 | (pullback.fst A.scheme.hom (C.f j)) |
| 24 | |
| 25 | def sourceLeft : source C A i j ⟶ pullback A.scheme.hom (C.f i) := pullback.fst _ _ |
| 26 | def sourceRight : source C A i j ⟶ pullback A.scheme.hom (C.f j) := pullback.snd _ _ |
| 27 | |
| 28 | def test : Over S := Over.mk |
| 29 | ((sourceLeft C A i j ≫ pullback.fst A.scheme.hom (C.f i)) ≫ A.scheme.hom) |
| 30 | |
| 31 | instance test_reduced [IsReduced A.scheme.left] : IsReduced (test C A i j).left := by |
| 32 | have : IsReduced (pullback A.scheme.hom (C.f i)) := |
| 33 | isReduced_of_isOpenImmersion (pullback.fst A.scheme.hom (C.f i)) |
| 34 | exact isReduced_of_isOpenImmersion (pullback.fst |
| 35 | (pullback.fst A.scheme.hom (C.f i)) (pullback.fst A.scheme.hom (C.f j))) |
| 36 | |
| 37 | def testLeft : test C A i j ⟶ Over.mk (C.f i) := Over.homMk |
| 38 | (sourceLeft C A i j ≫ pullback.snd A.scheme.hom (C.f i)) (by |
| 39 | change (_ ≫ pullback.snd A.scheme.hom (C.f i)) ≫ C.f i = _ |
| 40 | rw [Category.assoc, ← pullback.condition, ← Category.assoc] |
| 41 | rfl) |
| 42 | |
| 43 | def testRight : test C A i j ⟶ Over.mk (C.f j) := Over.homMk |
| 44 | (sourceRight C A i j ≫ pullback.snd A.scheme.hom (C.f j)) (by |
| 45 | change (_ ≫ pullback.snd A.scheme.hom (C.f j)) ≫ C.f j = _ |
| 46 | rw [Category.assoc, ← pullback.condition, ← Category.assoc] |
| 47 | exact congrArg (fun q => q ≫ A.scheme.hom) (pullback.condition |
| 48 | (f := pullback.fst A.scheme.hom (C.f i)) (g := pullback.fst A.scheme.hom (C.f j))).symm) |
| 49 | |
| 50 | def evaluation : source C A i j ⟶ pullback A.scheme.hom (test C A i j).hom := |
| 51 | pullback.lift (sourceLeft C A i j ≫ pullback.fst A.scheme.hom (C.f i)) |
| 52 | (𝟙 _) (Category.id_comp _).symm |
| 53 | |
| 54 | theorem evaluation_snd : evaluation C A i j ≫ pullback.snd A.scheme.hom (test C A i j).hom = |
| 55 | 𝟙 (source C A i j) := pullback.lift_snd _ _ _ |
| 56 | |
| 57 | theorem evaluation_left : evaluation C A i j ≫ EndomorphismFamiliesId.EndomorphismFamilies.familyMap A (testLeft C A i j) = |
| 58 | sourceLeft C A i j := by |
| 59 | apply pullback.hom_ext |
| 60 | · rw [Category.assoc, EndomorphismFamiliesId.EndomorphismFamilies.familyMap_fst] |
| 61 | exact pullback.lift_fst _ _ _ |
| 62 | · rw [Category.assoc, EndomorphismFamiliesId.EndomorphismFamilies.familyMap_snd, ← Category.assoc] |
| 63 | rw [evaluation_snd, Category.id_comp] |
| 64 | rfl |
| 65 | |
| 66 | theorem evaluation_right : evaluation C A i j ≫ EndomorphismFamiliesId.EndomorphismFamilies.familyMap A (testRight C A i j) = |
| 67 | sourceRight C A i j := by |
| 68 | apply pullback.hom_ext |
| 69 | · rw [Category.assoc, EndomorphismFamiliesId.EndomorphismFamilies.familyMap_fst] |
| 70 | exact (pullback.lift_fst _ _ _).trans (pullback.condition |
| 71 | (f := pullback.fst A.scheme.hom (C.f i)) (g := pullback.fst A.scheme.hom (C.f j))) |
| 72 | · rw [Category.assoc, EndomorphismFamiliesId.EndomorphismFamilies.familyMap_snd, ← Category.assoc] |
| 73 | rw [evaluation_snd, Category.id_comp] |
| 74 | rfl |
| 75 | |
| 76 | theorem endomorphism_equality (ri : Finite.Actions.GroupEndRing (A.pullback (C.f i))) |
| 77 | (rj : Finite.Actions.GroupEndRing (A.pullback (C.f j))) |
| 78 | (h : EndomorphismFamiliesId.EndomorphismFamilies.restrict A (testLeft C A i j) ri = EndomorphismFamiliesId.EndomorphismFamilies.restrict A (testRight C A i j) rj) : |
| 79 | sourceLeft C A i j ≫ EndomorphismFamiliesId.EndomorphismFamilies.endHom A (T := Over.mk (C.f i)) ri ≫ pullback.fst A.scheme.hom (C.f i) = |
| 80 | sourceRight C A i j ≫ EndomorphismFamiliesId.EndomorphismFamilies.endHom A (T := Over.mk (C.f j)) rj ≫ pullback.fst A.scheme.hom (C.f j) := by |
| 81 | have he : EndomorphismFamiliesId.EndomorphismFamilies.familyMap A (testLeft C A i j) ≫ EndomorphismFamiliesId.EndomorphismFamilies.endHom A (T := Over.mk (C.f i)) ri ≫ pullback.fst A.scheme.hom (C.f i) = |
| 82 | EndomorphismFamiliesId.EndomorphismFamilies.familyMap A (testRight C A i j) ≫ EndomorphismFamiliesId.EndomorphismFamilies.endHom A (T := Over.mk (C.f j)) rj ≫ pullback.fst A.scheme.hom (C.f j) := |
| 83 | (EndomorphismFamiliesId.EndomorphismFamilies.restrict_fst A (testLeft C A i j) ri).symm.trans |
| 84 | ((congrArg (fun r => EndomorphismFamiliesId.EndomorphismFamilies.endHom A r ≫ pullback.fst A.scheme.hom (test C A i j).hom) h).trans |
| 85 | (EndomorphismFamiliesId.EndomorphismFamilies.restrict_fst A (testRight C A i j) rj)) |
| 86 | have he' := congrArg (fun q => evaluation C A i j ≫ q) he |
| 87 | simpa only [← Category.assoc, evaluation_left, evaluation_right] using he' |
| 88 | |
| 89 | end OpenActionOverlap |
| 90 | |
| 91 | end |
| 92 | |
| 93 | /-! Matching actual action-functor values imply the literal source-overlap |
| 94 | equations needed for effective gluing. -/ |
| 95 | |
| 96 | set_option backward.isDefEq.respectTransparency false |
| 97 | set_option backward.isDefEq.respectTransparency.types false |
| 98 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 99 | |
| 100 | variable {S : Scheme.{0}} (C : S.OpenCover) {g : ℕ} (A : AbelianModuli.HilbertConstruction.Abelian.Schemes.AbelianScheme g S) |
| 101 | [IsReduced A.scheme.left] {R : Type} [CommRing R] |
| 102 | (ρ : ∀ i, AbelianModuli.ReferenceFamily.ActionData.IntegralAction R (A.pullback (C.f i))) |
| 103 | (hmatch : ∀ i j (T : Over S) [IsReduced T.left] |
| 104 | (f : T ⟶ Over.mk (C.f i)) (h : T ⟶ Over.mk (C.f j)), |
| 105 | Integral.ActionScheme.restrictIntegralAction A (ρ i) f = Integral.ActionScheme.restrictIntegralAction A (ρ j) h) |
| 106 | |
| 107 | include hmatch in |
| 108 | theorem openAction_matching_compatible (a : R) : |
| 109 | BaseGroupReflection.OpenBaseMorphismCompatible C (fun i => (ρ i).map a) := by |
| 110 | intro i j |
| 111 | let T := OpenActionOverlap.test C A i j |
| 112 | let f := OpenActionOverlap.testLeft C A i j |
| 113 | let h := OpenActionOverlap.testRight C A i j |
| 114 | have he := congrArg |
| 115 | (fun σ : AbelianModuli.ReferenceFamily.ActionData.IntegralAction R (A.pullback T.hom) => Finite.Actions.ringHomOfIntegralAction _ σ a) |
| 116 | (hmatch i j T f h) |
| 117 | exact OpenActionOverlap.endomorphism_equality C A i j |
| 118 | (Finite.Actions.ringHomOfIntegralAction (A.pullback (C.f i)) (ρ i) a) |
| 119 | (Finite.Actions.ringHomOfIntegralAction (A.pullback (C.f j)) (ρ j) a) he |
| 120 | |
| 121 | include hmatch in |
| 122 | theorem existsUnique_action_of_reduced_matching : |
| 123 | ∃! σ : AbelianModuli.ReferenceFamily.ActionData.IntegralAction R A, ∀ i, σ.pullback (C.f i) = ρ i := |
| 124 | BaseActionGluing.existsUnique_integralAction_of_open_base_cover C A ρ (openAction_matching_compatible C A ρ hmatch) |
| 125 | |
| 126 | end |
| 127 | |
| 128 | end OAI.AlgebraicGeometry.PELModuli.IntegralModel.Open.ActionMatchingCompatibility |