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.Symmetric.BasisChart |
| 2 | import OAI.AlgebraicGeometry.Divisors.LineBundles.Symmetric.BasisCover |
| 3 | import OAI.AlgebraicGeometry.Divisors.LineBundles.Symmetric.AffineSchemeIso |
| 4 | import OAI.AlgebraicGeometry.Divisors.LineBundles.AffineSpace.SourceRank |
| 5 | |
| 6 | /-! # Basis Affine Chart -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.Divisors.LineBundles.Symmetric.BasisAffineChart.BundleCycles |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! Actual affine-space charts for the projective symmetric spectrum |
| 13 | of a finite free module. -/ |
| 14 | |
| 15 | open _root_.AlgebraicGeometry _root_.CategoryTheory |
| 16 | |
| 17 | variable {R M ι : Type} [CommRing R] [AddCommGroup M] [Module R M] [Fintype ι] |
| 18 | (b : Module.Basis ι R M) (i : ι) |
| 19 | |
| 20 | def symmetricBasisAffineChartMap : |
| 21 | AffineSpace {j : ι // j ≠ i} (Spec (.of R)) ⟶ SymmetricProjective.Scheme.BundleCycles.symmetricProjectiveScheme R M := by |
| 22 | classical |
| 23 | exact (AffineSchemeIso.BundleCycles.symmetricAffineSchemeIso (Pi.basisFun R {j : ι // j ≠ i})).inv ≫ BasisChart.BundleCycles.symmetricBasisChartMap b i |
| 24 | |
| 25 | instance symmetricBasisAffineChartMap_isOpenImmersion : IsOpenImmersion (symmetricBasisAffineChartMap b i) := by |
| 26 | classical |
| 27 | unfold symmetricBasisAffineChartMap |
| 28 | infer_instance |
| 29 | |
| 30 | theorem symmetricBasisAffineChartMap_over : |
| 31 | symmetricBasisAffineChartMap b i ≫ SymmetricProjective.Scheme.BundleCycles.symmetricProjectiveToBase R M = |
| 32 | (AffineSpace {j : ι // j ≠ i} (Spec (.of R)) ↘ Spec (.of R)) := by |
| 33 | classical |
| 34 | unfold symmetricBasisAffineChartMap |
| 35 | rw [Category.assoc, BasisChart.BundleCycles.symmetricBasisChartMap_over, ← AffineSchemeIso.BundleCycles.symmetricAffineSchemeIso_over (Pi.basisFun R {j : ι // j ≠ i}), |
| 36 | Iso.inv_hom_id_assoc] |
| 37 | |
| 38 | theorem symmetricBasisAffineChartMap_opensRange : |
| 39 | (symmetricBasisAffineChartMap b i).opensRange = |
| 40 | Proj.basicOpen (Grading.BundleCycles.symmetricGrading R M) (SymmetricAlgebra.ι R M (b i)) := by |
| 41 | classical |
| 42 | unfold symmetricBasisAffineChartMap |
| 43 | exact (Scheme.Hom.opensRange_comp_of_isIso _ _).trans (BasisChart.BundleCycles.symmetricBasisChartMap_opensRange b i) |
| 44 | |
| 45 | include b in |
| 46 | theorem symmetricProjective_hasAffineSpaceSourceChartsOfRank : |
| 47 | LineBundles.AffineSpace.SourceRank.BundleCycles.HasAffineSpaceSourceChartsOfRank (SymmetricProjective.Scheme.BundleCycles.symmetricProjectiveToBase R M) (Nat.card ι - 1) := by |
| 48 | classical |
| 49 | intro x |
| 50 | obtain ⟨i, y, rfl⟩ := (BasisCover.BundleCycles.symmetricBasisCover b).openCover.exists_eq x |
| 51 | refine ⟨Spec (.of R), 𝟙 _, {j : ι // j ≠ i}, inferInstance, symmetricBasisAffineChartMap b i, |
| 52 | inferInstance, symmetricBasisAffineChartMap_isOpenImmersion b i, ?_, ?_, ?_⟩ |
| 53 | · have hr : Set.range ((BasisCover.BundleCycles.symmetricBasisCover b).f i) = Set.range (symmetricBasisAffineChartMap b i) := |
| 54 | congrArg (fun U : (SymmetricProjective.Scheme.BundleCycles.symmetricProjectiveScheme R M).Opens => (U : Set (SymmetricProjective.Scheme.BundleCycles.symmetricProjectiveScheme R M))) |
| 55 | ((BasisCover.BundleCycles.symmetricBasisCover_opensRange b i).trans (symmetricBasisAffineChartMap_opensRange b i).symm) |
| 56 | exact hr ▸ Set.mem_range_self y |
| 57 | · rw [Category.comp_id] |
| 58 | exact (symmetricBasisAffineChartMap_over b i).symm |
| 59 | · let : Unique {j : ι // j = i} := ⟨⟨i, rfl⟩, fun j => Subtype.ext j.property⟩ |
| 60 | rw [Nat.card_eq_fintype_card, Nat.card_eq_fintype_card, Fintype.card_subtype_compl, |
| 61 | Fintype.card_unique (α := {j : ι // j = i})] |
| 62 | |
| 63 | include b in |
| 64 | theorem symmetricProjective_hasAffineSpaceSourceCharts : |
| 65 | LineBundles.AffineSpace.SourceBase.BundleCycles.HasAffineSpaceSourceCharts (SymmetricProjective.Scheme.BundleCycles.symmetricProjectiveToBase R M) := |
| 66 | (symmetricProjective_hasAffineSpaceSourceChartsOfRank b).forget |
| 67 | |
| 68 | end |
| 69 | |
| 70 | end OAI.AlgebraicGeometry.Divisors.LineBundles.Symmetric.BasisAffineChart.BundleCycles |