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.HilbertScheme.Presentations.Homogeneous.PresentationBaseChange |
| 2 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.LiftedRelationsFlatness |
| 3 | |
| 4 | /-! # Presentation Lifts -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.Homogeneous.PresentationLifts.GradedHilbert |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Flat homogeneous degree quotients lift all specialized relations in that degree; conversely those lifts give tensor exactness. -/ |
| 11 | |
| 12 | open _root_.MvPolynomial TensorProduct |
| 13 | |
| 14 | universe u v z |
| 15 | |
| 16 | variable {R : Type u} [CommRing R] {S : Type v} [CommRing S] [Algebra R S] |
| 17 | variable {n : ℕ} {ι : Type z} [Fintype ι] |
| 18 | |
| 19 | theorem homogeneous_relation_lift_of_flat_quotient |
| 20 | (hS : Function.Surjective (algebraMap R S)) |
| 21 | (g : ι → Hilbert.Polynomial.GradedHilbert.CoordinateRing R n) (N : ℕ) (hg : ∀ i, (g i).IsHomogeneous N) (d : ℕ) |
| 22 | [Module.Flat R (Hilbert.Polynomial.GradedHilbert.DegreeQuotient (RelationPresentation.GradedHilbert.homogeneousGeneratorsIdeal g N hg).toIdeal (d + N))] |
| 23 | (a : ι → Hilbert.Polynomial.GradedHilbert.CoordinateRing S n) (ha : ∀ i, (a i).IsHomogeneous d) |
| 24 | (hrel : SyzygiesFromPolynomialKernel.GradedHilbert.polynomialRelationMap (Finite.SyzygyLifting.GradedHilbert.mapRelationVector (algebraMap R S) g) a = 0) : |
| 25 | ∃ b : ι → Hilbert.Polynomial.GradedHilbert.CoordinateRing R n, (∀ i, (b i).IsHomogeneous d) ∧ |
| 26 | SyzygiesFromPolynomialKernel.GradedHilbert.polynomialRelationMap g b = 0 ∧ Finite.SyzygyLifting.GradedHilbert.mapRelationVector (algebraMap R S) b = a := by |
| 27 | let f := RelationPresentation.GradedHilbert.homogeneousRelationPresentation g N hg d |
| 28 | let : Module.Flat R (Hilbert.Polynomial.GradedHilbert.grading R n (d + N) ⧸ f.range) := |
| 29 | Module.Flat.of_linearEquiv (RelationPresentation.GradedHilbert.homogeneousPresentationCokernelEquiv g N hg d) |
| 30 | let a' : ι → Hilbert.Polynomial.GradedHilbert.grading S n d := fun i => ⟨a i, ha i⟩ |
| 31 | let E := PresentationBaseChange.GradedHilbert.homogeneousVectorBaseChangeEquiv (R := R) (S := S) (n := n) (ι := ι) d |
| 32 | let x := E.symm a' |
| 33 | have hx : f.lTensor S x = 0 := by |
| 34 | apply (CoefficientBaseChange.GradedHilbert.homogeneousPieceBaseChangeEquiv (R := R) (S := S) (n := n) (d + N)).injective |
| 35 | rw [LinearEquiv.map_zero, PresentationBaseChange.GradedHilbert.homogeneousPresentation_baseChange] |
| 36 | change RelationPresentation.GradedHilbert.homogeneousRelationPresentation (Finite.SyzygyLifting.GradedHilbert.mapRelationVector (algebraMap R S) g) N |
| 37 | (fun i => (hg i).map (algebraMap R S)) d (E (E.symm a')) = 0 |
| 38 | rw [LinearEquiv.apply_symm_apply] |
| 39 | exact Subtype.ext hrel |
| 40 | obtain ⟨z, hz⟩ := (LiftedRelationsFlatness.lTensor_relations_exact_of_flat_cokernel f S x).mp hx |
| 41 | obtain ⟨b, rfl⟩ := TensorProduct.mk_surjective (R := R) (M := f.ker) (S := S) hS z |
| 42 | refine ⟨fun i => (b.val i).val, fun i => (b.val i).property, ?_, ?_⟩ |
| 43 | · exact congrArg Subtype.val b.property |
| 44 | · have he := congrArg E hz |
| 45 | change E (f.ker.subtype.lTensor S (1 ⊗ₜ[R] b)) = E x at he |
| 46 | rw [LinearMap.lTensor_tmul] at he |
| 47 | change E (1 ⊗ₜ[R] b.val) = E (E.symm a') at he |
| 48 | rw [LinearEquiv.apply_symm_apply] at he |
| 49 | funext i |
| 50 | have hi := congrArg (fun y : ι → Hilbert.Polynomial.GradedHilbert.grading S n d => (y i).val) he |
| 51 | rw [PresentationBaseChange.GradedHilbert.homogeneousVectorBaseChangeEquiv_tmul, one_smul] at hi |
| 52 | exact hi |
| 53 | |
| 54 | theorem homogeneousPresentation_tensor_exact_of_lifts |
| 55 | (g : ι → Hilbert.Polynomial.GradedHilbert.CoordinateRing R n) (N : ℕ) (hg : ∀ i, (g i).IsHomogeneous N) (d : ℕ) |
| 56 | (hlift : ∀ a : ι → Hilbert.Polynomial.GradedHilbert.CoordinateRing S n, (∀ i, (a i).IsHomogeneous d) → |
| 57 | SyzygiesFromPolynomialKernel.GradedHilbert.polynomialRelationMap (Finite.SyzygyLifting.GradedHilbert.mapRelationVector (algebraMap R S) g) a = 0 → |
| 58 | ∃ b : ι → Hilbert.Polynomial.GradedHilbert.CoordinateRing R n, (∀ i, (b i).IsHomogeneous d) ∧ |
| 59 | SyzygiesFromPolynomialKernel.GradedHilbert.polynomialRelationMap g b = 0 ∧ Finite.SyzygyLifting.GradedHilbert.mapRelationVector (algebraMap R S) b = a) : |
| 60 | Function.Exact ((RelationPresentation.GradedHilbert.homogeneousRelationPresentation g N hg d).ker.subtype.lTensor S) |
| 61 | ((RelationPresentation.GradedHilbert.homogeneousRelationPresentation g N hg d).lTensor S) := by |
| 62 | let f := RelationPresentation.GradedHilbert.homogeneousRelationPresentation g N hg d |
| 63 | let E := PresentationBaseChange.GradedHilbert.homogeneousVectorBaseChangeEquiv (R := R) (S := S) (n := n) (ι := ι) d |
| 64 | have hzero : f.comp f.ker.subtype = 0 := by |
| 65 | apply LinearMap.ext |
| 66 | intro b |
| 67 | exact b.property |
| 68 | intro x |
| 69 | constructor |
| 70 | · intro hx |
| 71 | let a := fun i => (E x i).val |
| 72 | have ha : SyzygiesFromPolynomialKernel.GradedHilbert.polynomialRelationMap (Finite.SyzygyLifting.GradedHilbert.mapRelationVector (algebraMap R S) g) a = 0 := by |
| 73 | have he := PresentationBaseChange.GradedHilbert.homogeneousPresentation_baseChange (S := S) g N hg d x |
| 74 | rw [hx, LinearEquiv.map_zero] at he |
| 75 | exact congrArg Subtype.val he.symm |
| 76 | obtain ⟨b, hb, hbr, hba⟩ := hlift a (fun i => (E x i).property) ha |
| 77 | let b' : ι → Hilbert.Polynomial.GradedHilbert.grading R n d := fun i => ⟨b i, hb i⟩ |
| 78 | have hb' : f b' = 0 := Subtype.ext hbr |
| 79 | refine ⟨1 ⊗ₜ[R] (⟨b', hb'⟩ : f.ker), ?_⟩ |
| 80 | rw [LinearMap.lTensor_tmul] |
| 81 | apply E.injective |
| 82 | funext i |
| 83 | apply Subtype.ext |
| 84 | rw [PresentationBaseChange.GradedHilbert.homogeneousVectorBaseChangeEquiv_tmul, one_smul] |
| 85 | exact congrFun hba i |
| 86 | · rintro ⟨b, rfl⟩ |
| 87 | rw [← LinearMap.lTensor_comp_apply, hzero, LinearMap.lTensor_zero, LinearMap.zero_apply] |
| 88 | |
| 89 | end |
| 90 | |
| 91 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.Homogeneous.PresentationLifts.GradedHilbert |