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.ArithmeticGeometry.Models.SpreadingOut.Projective |
| 2 | import OAI.ArithmeticGeometry.Models.SpreadingOut.Affine |
| 3 | import OAI.ArithmeticGeometry.Models.FoundationsPullback |
| 4 | import Mathlib.RingTheory.TensorProduct.MvPolynomial |
| 5 | |
| 6 | /-! # Projective Embedding -/ |
| 7 | |
| 8 | namespace OAI.ArithmeticGeometry.Models.SpreadingOut.ProjectiveEmbedding.Construction |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! Affine finite-type schemes embed in standard affine charts of the |
| 13 | generic fibers of proper projective-space models. -/ |
| 14 | |
| 15 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 16 | |
| 17 | universe u |
| 18 | |
| 19 | open OAI.ArithmeticGeometry.Models.SpreadingOut.Projective.Construction.ProjectiveConstruction |
| 20 | |
| 21 | def projectiveModel (R : Type u) [CommRing R] (n : ℕ) : Over (Spec (.of R)) := |
| 22 | Over.mk (Projective.Construction.ProjectiveConstruction.projectiveSpaceToBase (K := R) n) |
| 23 | |
| 24 | instance (R : Type u) [CommRing R] (n : ℕ) : IsProper (projectiveModel R n).hom := |
| 25 | Projective.Construction.ProjectiveConstruction.projectiveSpace_proper n |
| 26 | |
| 27 | def projectiveChartHom (R : Type u) [CommRing R] (n : ℕ) (i : Fin (n + 1)) : |
| 28 | Affine.Construction.affineOver R (Projective.Construction.ProjectiveConstruction.projectiveChartPolynomial (K := R) n i) ⟶ projectiveModel R n := |
| 29 | Over.homMk (Projective.Construction.ProjectiveConstruction.projectiveAffineChartMap (K := R) n i) |
| 30 | (Projective.Construction.ProjectiveConstruction.projectiveAffineChartMap_over n i) |
| 31 | |
| 32 | instance (R : Type u) [CommRing R] (n : ℕ) (i : Fin (n + 1)) : |
| 33 | IsOpenImmersion (projectiveChartHom R n i).left := |
| 34 | inferInstanceAs (IsOpenImmersion (Projective.Construction.ProjectiveConstruction.projectiveAffineChartMap (K := R) n i)) |
| 35 | |
| 36 | def projectiveGenericChartIso |
| 37 | (R K : Type u) [CommRing R] [CommRing K] [Algebra R K] (n : ℕ) (i : Fin (n + 1)) : |
| 38 | (Over.pullback (Spec.map (CommRingCat.ofHom (algebraMap R K)))).obj |
| 39 | (Affine.Construction.affineOver R (Projective.Construction.ProjectiveConstruction.projectiveChartPolynomial (K := R) n i)) ≅ |
| 40 | Affine.Construction.affineOver K (Projective.Construction.ProjectiveConstruction.projectiveChartPolynomial (K := K) n i) := |
| 41 | Affine.Construction.baseChangeAffineIso R K _ ≪≫ Affine.Construction.affineOverIso (MvPolynomial.algebraTensorAlgEquiv R K) |
| 42 | |
| 43 | def projectiveGenericChartHom |
| 44 | (R K : Type u) [CommRing R] [CommRing K] [Algebra R K] (n : ℕ) (i : Fin (n + 1)) : |
| 45 | Affine.Construction.affineOver K (Projective.Construction.ProjectiveConstruction.projectiveChartPolynomial (K := K) n i) ⟶ |
| 46 | (Over.pullback (Spec.map (CommRingCat.ofHom (algebraMap R K)))).obj |
| 47 | (projectiveModel R n) := |
| 48 | (projectiveGenericChartIso R K n i).inv ≫ |
| 49 | (Over.pullback (Spec.map (CommRingCat.ofHom (algebraMap R K)))).map |
| 50 | (projectiveChartHom R n i) |
| 51 | |
| 52 | theorem projectiveGenericChartHom_openImmersion |
| 53 | (R K : Type u) [CommRing R] [CommRing K] [Algebra R K] (n : ℕ) (i : Fin (n + 1)) : |
| 54 | IsOpenImmersion (projectiveGenericChartHom R K n i).left := by |
| 55 | let g := Spec.map (CommRingCat.ofHom (algebraMap R K)) |
| 56 | let e := projectiveGenericChartIso R K n i |
| 57 | have : IsIso e.inv.left := inferInstanceAs (IsIso ((Over.forget _).map e.inv)) |
| 58 | have : IsOpenImmersion ((Over.pullback g).map (projectiveChartHom R n i)).left := |
| 59 | MorphismProperty.of_isPullback |
| 60 | (FoundationsPullback.Constructions.pullback_over_map_isPullback g (projectiveChartHom R n i)).flip |
| 61 | inferInstance |
| 62 | change IsOpenImmersion (e.inv.left ≫ ((Over.pullback g).map (projectiveChartHom R n i)).left) |
| 63 | infer_instance |
| 64 | |
| 65 | theorem affine_finiteType_has_projective_chart_embedding |
| 66 | (K A : Type u) [CommRing K] [CommRing A] [Algebra K A] [Algebra.FiniteType K A] : |
| 67 | ∃ (n : ℕ) (i : Affine.Construction.affineOver K A ⟶ |
| 68 | Affine.Construction.affineOver K (Projective.Construction.ProjectiveConstruction.projectiveChartPolynomial (K := K) n 0)), |
| 69 | IsClosedImmersion i.left := by |
| 70 | obtain ⟨n, φ, hφ⟩ := Algebra.FiniteType.iff_quotient_mvPolynomial''.mp |
| 71 | (inferInstance : Algebra.FiniteType K A) |
| 72 | let e := MvPolynomial.renameEquiv K |
| 73 | (Fintype.equivFinOfCardEq (Projective.Construction.ProjectiveConstruction.projectiveChartCoordinate_card n 0)) |
| 74 | let ψ := φ.comp e.toAlgHom |
| 75 | have hψ : Function.Surjective ψ := hφ.comp e.surjective |
| 76 | let j := Spec.map (CommRingCat.ofHom ψ.toRingHom) |
| 77 | let i : Affine.Construction.affineOver K A ⟶ Affine.Construction.affineOver K (Projective.Construction.ProjectiveConstruction.projectiveChartPolynomial (K := K) n 0) := |
| 78 | Over.homMk j (by |
| 79 | change Spec.map (CommRingCat.ofHom ψ.toRingHom) ≫ |
| 80 | Spec.map (CommRingCat.ofHom (algebraMap K _)) = |
| 81 | Spec.map (CommRingCat.ofHom (algebraMap K A)) |
| 82 | rw [← Spec.map_comp] |
| 83 | exact congrArg (fun f ↦ Spec.map (CommRingCat.ofHom f)) ψ.comp_algebraMap) |
| 84 | exact ⟨n, i, IsClosedImmersion.spec_of_surjective (CommRingCat.ofHom ψ.toRingHom) hψ⟩ |
| 85 | |
| 86 | end |
| 87 | |
| 88 | end OAI.ArithmeticGeometry.Models.SpreadingOut.ProjectiveEmbedding.Construction |