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.IntersectionTheory.ProjectionFormula.HomogeneousCoordinateMap |
| 2 | import Mathlib.RingTheory.MvPolynomial.Basic |
| 3 | import Mathlib.LinearAlgebra.FiniteDimensional.Basic |
| 4 | |
| 5 | /-! # Linear Form Basis -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.LinearFormBasis |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | section |
| 12 | |
| 13 | /-! The coordinate variables form the native basis of homogeneous |
| 14 | linear forms; independent partial coordinate systems extend to automorphisms. -/ |
| 15 | |
| 16 | set_option backward.isDefEq.respectTransparency false |
| 17 | set_option backward.isDefEq.respectTransparency.types false |
| 18 | |
| 19 | def coordinate (n : ℕ) (i : Fin (n + 1)) : Foundations.Scheme.ProjectiveSpace.projectiveGrading n 1 := |
| 20 | ⟨MvPolynomial.X i, MvPolynomial.isHomogeneous_X ℂ i⟩ |
| 21 | |
| 22 | def basis (n : ℕ) : Module.Basis (Fin (n + 1)) ℂ (Foundations.Scheme.ProjectiveSpace.projectiveGrading n 1) := |
| 23 | (Module.Basis.span (MvPolynomial.linearIndependent_X (R := ℂ) (σ := Fin (n + 1)))).map |
| 24 | (LinearEquiv.ofEq _ _ MvPolynomial.homogeneousSubmodule_one_eq_span_X.symm) |
| 25 | |
| 26 | theorem basis_apply (n : ℕ) (i : Fin (n + 1)) : basis n i = coordinate n i := by |
| 27 | apply Subtype.ext |
| 28 | simp only [basis, Module.Basis.map_apply, LinearEquiv.coe_ofEq_apply, Module.Basis.coe_span_apply, coordinate] |
| 29 | |
| 30 | instance finite (n : ℕ) : Module.Finite ℂ (Foundations.Scheme.ProjectiveSpace.projectiveGrading n 1) := Module.Finite.of_basis (basis n) |
| 31 | |
| 32 | theorem dimension (n : ℕ) : Module.finrank ℂ (Foundations.Scheme.ProjectiveSpace.projectiveGrading n 1) = n + 1 := by |
| 33 | rw [Module.finrank_eq_card_basis (basis n), Fintype.card_fin] |
| 34 | |
| 35 | theorem extend {n k : ℕ} (L : Fin k → Foundations.Scheme.ProjectiveSpace.projectiveGrading n 1) (hL : LinearIndependent ℂ L) |
| 36 | (ι : Fin k → Fin (n + 1)) (hι : Function.Injective ι) : |
| 37 | ∃ e : (Foundations.Scheme.ProjectiveSpace.projectiveGrading n 1) ≃ₗ[ℂ] (Foundations.Scheme.ProjectiveSpace.projectiveGrading n 1), ∀ i, e (coordinate n (ι i)) = L i := by |
| 38 | let v := fun i => coordinate n (ι i) |
| 39 | have hv : LinearIndependent ℂ v := by |
| 40 | have h := (basis n).linearIndependent.comp ι hι |
| 41 | simpa only [Function.comp_def, basis_apply] using h |
| 42 | let b := Module.Basis.span hv |
| 43 | let c := Module.Basis.span hL |
| 44 | let f := b.equiv c (Equiv.refl (Fin k)) |
| 45 | obtain ⟨e, he⟩ := Submodule.exists_linearEquiv_restrict_eq f |
| 46 | refine ⟨e, fun i => ?_⟩ |
| 47 | have h := he (b i) |
| 48 | have hf : f (b i) = c i := Module.Basis.equiv_apply b i c (Equiv.refl _) |
| 49 | have he' := congrArg (fun a : Submodule.span ℂ (Set.range L) => (a : Foundations.Scheme.ProjectiveSpace.projectiveGrading n 1)) hf |
| 50 | rw [h] at he' |
| 51 | simpa only [b, c, Module.Basis.coe_span_apply] using he' |
| 52 | |
| 53 | end |
| 54 | |
| 55 | /-! Linear maps on degree-one forms extend functorially to the |
| 56 | native graded homogeneous coordinate rings. -/ |
| 57 | |
| 58 | set_option backward.isDefEq.respectTransparency false |
| 59 | set_option backward.isDefEq.respectTransparency.types false |
| 60 | |
| 61 | namespace GradedMap |
| 62 | |
| 63 | open OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.LinearFormBasis |
| 64 | |
| 65 | variable {n m l : ℕ} |
| 66 | |
| 67 | def algebraHom (F : Foundations.Scheme.ProjectiveSpace.projectiveGrading n 1 →ₗ[ℂ] Foundations.Scheme.ProjectiveSpace.projectiveGrading m 1) : |
| 68 | Foundations.Scheme.ProjectiveSpace.homogeneousCoordinateRing n →ₐ[ℂ] Foundations.Scheme.ProjectiveSpace.homogeneousCoordinateRing m := |
| 69 | MvPolynomial.aeval (fun i => (F (coordinate n i)).val) |
| 70 | |
| 71 | theorem algebraHom_X (F : Foundations.Scheme.ProjectiveSpace.projectiveGrading n 1 →ₗ[ℂ] Foundations.Scheme.ProjectiveSpace.projectiveGrading m 1) (i : Fin (n + 1)) : |
| 72 | algebraHom F (MvPolynomial.X i) = (F (coordinate n i)).val := MvPolynomial.aeval_X _ i |
| 73 | |
| 74 | def gradedHom (F : Foundations.Scheme.ProjectiveSpace.projectiveGrading n 1 →ₗ[ℂ] Foundations.Scheme.ProjectiveSpace.projectiveGrading m 1) : |
| 75 | Foundations.Scheme.ProjectiveSpace.projectiveGrading n →+*ᵍ Foundations.Scheme.ProjectiveSpace.projectiveGrading m := |
| 76 | HomogeneousCoordinateMap.ofForms (fun i => (F (coordinate n i)).val) (fun i => (F (coordinate n i)).property) |
| 77 | |
| 78 | theorem gradedHom_X (F : Foundations.Scheme.ProjectiveSpace.projectiveGrading n 1 →ₗ[ℂ] Foundations.Scheme.ProjectiveSpace.projectiveGrading m 1) (i : Fin (n + 1)) : |
| 79 | gradedHom F (MvPolynomial.X i) = (F (coordinate n i)).val := |
| 80 | HomogeneousCoordinateMap.ofForms_X _ _ i |
| 81 | |
| 82 | def onForms (F : Foundations.Scheme.ProjectiveSpace.projectiveGrading n 1 →ₗ[ℂ] Foundations.Scheme.ProjectiveSpace.projectiveGrading m 1) : |
| 83 | Foundations.Scheme.ProjectiveSpace.projectiveGrading n 1 →ₗ[ℂ] Foundations.Scheme.ProjectiveSpace.projectiveGrading m 1 where |
| 84 | toFun p := ⟨gradedHom F p.val, (gradedHom F).map_mem p.property⟩ |
| 85 | map_add' p q := by apply Subtype.ext; exact map_add (gradedHom F) p.val q.val |
| 86 | map_smul' c p := by apply Subtype.ext; exact (algebraHom F).toLinearMap.map_smul c p.val |
| 87 | |
| 88 | theorem onForms_eq (F : Foundations.Scheme.ProjectiveSpace.projectiveGrading n 1 →ₗ[ℂ] Foundations.Scheme.ProjectiveSpace.projectiveGrading m 1) : onForms F = F := by |
| 89 | apply (basis n).ext |
| 90 | intro i |
| 91 | rw [basis_apply] |
| 92 | apply Subtype.ext |
| 93 | exact gradedHom_X F i |
| 94 | |
| 95 | theorem on_form (F : Foundations.Scheme.ProjectiveSpace.projectiveGrading n 1 →ₗ[ℂ] Foundations.Scheme.ProjectiveSpace.projectiveGrading m 1) (p : Foundations.Scheme.ProjectiveSpace.projectiveGrading n 1) : |
| 96 | gradedHom F p.val = (F p).val := |
| 97 | congrArg Subtype.val (DFunLike.congr_fun (onForms_eq F) p) |
| 98 | |
| 99 | theorem algebraHom_comp (F : Foundations.Scheme.ProjectiveSpace.projectiveGrading n 1 →ₗ[ℂ] Foundations.Scheme.ProjectiveSpace.projectiveGrading m 1) |
| 100 | (G : Foundations.Scheme.ProjectiveSpace.projectiveGrading m 1 →ₗ[ℂ] Foundations.Scheme.ProjectiveSpace.projectiveGrading l 1) : |
| 101 | algebraHom (G.comp F) = (algebraHom G).comp (algebraHom F) := by |
| 102 | apply MvPolynomial.algHom_ext |
| 103 | intro i |
| 104 | simp only [AlgHom.comp_apply, algebraHom_X, LinearMap.comp_apply] |
| 105 | exact (on_form G (F (coordinate n i))).symm |
| 106 | |
| 107 | theorem gradedHom_comp (F : Foundations.Scheme.ProjectiveSpace.projectiveGrading n 1 →ₗ[ℂ] Foundations.Scheme.ProjectiveSpace.projectiveGrading m 1) |
| 108 | (G : Foundations.Scheme.ProjectiveSpace.projectiveGrading m 1 →ₗ[ℂ] Foundations.Scheme.ProjectiveSpace.projectiveGrading l 1) : |
| 109 | gradedHom (G.comp F) = (gradedHom G).comp (gradedHom F) := by |
| 110 | apply GradedRingHom.ext |
| 111 | intro p |
| 112 | exact DFunLike.congr_fun (algebraHom_comp F G) p |
| 113 | |
| 114 | theorem gradedHom_id : gradedHom (LinearMap.id : Foundations.Scheme.ProjectiveSpace.projectiveGrading n 1 →ₗ[ℂ] Foundations.Scheme.ProjectiveSpace.projectiveGrading n 1) = |
| 115 | GradedRingHom.id (Foundations.Scheme.ProjectiveSpace.projectiveGrading n) := by |
| 116 | have he : algebraHom (LinearMap.id : Foundations.Scheme.ProjectiveSpace.projectiveGrading n 1 →ₗ[ℂ] Foundations.Scheme.ProjectiveSpace.projectiveGrading n 1) = |
| 117 | AlgHom.id ℂ (Foundations.Scheme.ProjectiveSpace.homogeneousCoordinateRing n) := by |
| 118 | apply MvPolynomial.algHom_ext |
| 119 | intro i |
| 120 | exact MvPolynomial.aeval_X _ i |
| 121 | apply GradedRingHom.ext |
| 122 | intro p |
| 123 | exact DFunLike.congr_fun he p |
| 124 | |
| 125 | end GradedMap |
| 126 | |
| 127 | end |
| 128 | |
| 129 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.LinearFormBasis |