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.AbelianModuli.HilbertConstruction.Tensor.LocalizationExactness |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Local.ResidueExactness |
| 3 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Iterated.TensorExactness |
| 4 | import Mathlib.RingTheory.Flat.Localization |
| 5 | |
| 6 | /-! # Projective Field Exactness -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Finite.ProjectiveFieldExactness |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! A short complex of finite projective modules that is exact after |
| 13 | all field-valued scalar maps is exact over the original ring and after |
| 14 | every coefficient-ring extension. -/ |
| 15 | open _root_.CategoryTheory |
| 16 | open scoped TensorProduct |
| 17 | universe u |
| 18 | open OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Local.ResidueExactness.LocalSectionLifting |
| 19 | variable {R : Type u} [CommRing R] |
| 20 | variable (C : ShortComplex (ModuleCat.{u} R)) |
| 21 | variable [Module.Finite R C.X₁] [Module.Projective R C.X₁] |
| 22 | variable [Module.Finite R C.X₂] [Module.Projective R C.X₂] |
| 23 | variable [Module.Finite R C.X₃] [Module.Projective R C.X₃] |
| 24 | |
| 25 | theorem finiteProjectiveShortComplex_exact_of_field_tests |
| 26 | (h : ∀ (K : Type u) [Field K] (q : R →+* K), |
| 27 | (C.map (ModuleCat.extendScalars q)).Exact) : C.Exact := by |
| 28 | apply Tensor.LocalizationExactness.shortComplex_exact_of_tensor_localizations C |
| 29 | intro I _ |
| 30 | let A := Localization.AtPrime I |
| 31 | let T := HilbertConstruction.Module.BaseChangeComplex.LocalSectionLifting.moduleBaseChangeComplex R A C |
| 32 | have : Module.Finite A T.X₁ := inferInstanceAs (Module.Finite A (A ⊗[R] C.X₁)) |
| 33 | have : Module.Finite A T.X₂ := inferInstanceAs (Module.Finite A (A ⊗[R] C.X₂)) |
| 34 | have : Module.Finite A T.X₃ := inferInstanceAs (Module.Finite A (A ⊗[R] C.X₃)) |
| 35 | have : Module.Flat A T.X₁ := inferInstanceAs (Module.Flat A (A ⊗[R] C.X₁)) |
| 36 | have : Module.Flat A T.X₂ := inferInstanceAs (Module.Flat A (A ⊗[R] C.X₂)) |
| 37 | have : Module.Flat A T.X₃ := inferInstanceAs (Module.Flat A (A ⊗[R] C.X₃)) |
| 38 | have : Module.Free A T.X₁ := Module.free_of_flat_of_isLocalRing |
| 39 | have : Module.Free A T.X₂ := Module.free_of_flat_of_isLocalRing |
| 40 | have : Module.Free A T.X₃ := Module.free_of_flat_of_isLocalRing |
| 41 | apply Local.ResidueExactness.LocalSectionLifting.finiteFreeShortComplex_exact_of_residue_exact T |
| 42 | exact (Iterated.TensorExactness.iterated_tensor_exact_iff_composite (A := A) |
| 43 | (B := IsLocalRing.ResidueField A) C).mpr |
| 44 | (h (IsLocalRing.ResidueField A) |
| 45 | ((algebraMap A (IsLocalRing.ResidueField A)).comp (algebraMap R A))) |
| 46 | |
| 47 | theorem finiteProjectiveShortComplex_universal_exact_of_field_tests |
| 48 | (h : ∀ (K : Type u) [Field K] (q : R →+* K), |
| 49 | (C.map (ModuleCat.extendScalars q)).Exact) |
| 50 | (B : Type u) [CommRing B] [Algebra R B] : |
| 51 | (HilbertConstruction.Module.BaseChangeComplex.LocalSectionLifting.moduleBaseChangeComplex R B C).Exact := by |
| 52 | let T := HilbertConstruction.Module.BaseChangeComplex.LocalSectionLifting.moduleBaseChangeComplex R B C |
| 53 | have : Module.Finite B T.X₁ := inferInstanceAs (Module.Finite B (B ⊗[R] C.X₁)) |
| 54 | have : Module.Finite B T.X₂ := inferInstanceAs (Module.Finite B (B ⊗[R] C.X₂)) |
| 55 | have : Module.Finite B T.X₃ := inferInstanceAs (Module.Finite B (B ⊗[R] C.X₃)) |
| 56 | have : Module.Projective B T.X₁ := inferInstanceAs (Module.Projective B (B ⊗[R] C.X₁)) |
| 57 | have : Module.Projective B T.X₂ := inferInstanceAs (Module.Projective B (B ⊗[R] C.X₂)) |
| 58 | have : Module.Projective B T.X₃ := inferInstanceAs (Module.Projective B (B ⊗[R] C.X₃)) |
| 59 | apply finiteProjectiveShortComplex_exact_of_field_tests T |
| 60 | intro K _ q |
| 61 | let : Algebra B K := q.toAlgebra |
| 62 | have hi : (HilbertConstruction.Module.BaseChangeComplex.LocalSectionLifting.moduleBaseChangeComplex B K T).Exact := |
| 63 | (Iterated.TensorExactness.iterated_tensor_exact_iff_composite (A := B) (B := K) C).mpr |
| 64 | (h K (q.comp (algebraMap R B))) |
| 65 | exact (ShortComplex.exact_iff_of_iso |
| 66 | (T.mapNatIso (Scalar.FunctorComparison.ScalarFunctorComparison.isoOfHom B K q))).mp hi |
| 67 | |
| 68 | end |
| 69 | |
| 70 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Finite.ProjectiveFieldExactness |