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.Projective.ParameterInfinity |
| 2 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Affine.ParameterComparison |
| 3 | |
| 4 | /-! # Parameter Fiber -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Projective.ParameterFiber |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! The positive divisor of a dominant projective-line parameter |
| 11 | is supported on the actual scalar fiber, including on singular schemes. -/ |
| 12 | |
| 13 | set_option backward.isDefEq.respectTransparency false |
| 14 | set_option backward.isDefEq.respectTransparency.types false |
| 15 | |
| 16 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 17 | open scoped _root_.Polynomial |
| 18 | |
| 19 | open OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Projective.FamilyIs.MatrixParameterOpen |
| 20 | |
| 21 | theorem range_affine : Set.range FamilyIs.MatrixParameterOpen.affine = (Foundations.Scheme.ProjectiveCoordinateCover.projectiveCoordinateOpen 1 0 : Set (Foundations.Scheme.ProjectiveSpace.projectiveSpace 1)) := by |
| 22 | let e := Scheme.Spec.mapIso FamilyIs.MatrixParameterOpen.chartEquiv.toRingEquiv.toCommRingCatIso.op |
| 23 | change Set.range ((Foundations.Scheme.ProjectiveCoordinateCover.projectiveCoordinateOpen 1 0).ι ∘ |
| 24 | (Foundations.Scheme.ProjectiveChart.projectiveCoordinateIsoSpec 1 0).inv ∘ e.hom) = _ |
| 25 | rw [Set.range_comp, Set.range_comp, e.hom.surjective.range_eq, Set.image_univ, |
| 26 | (Foundations.Scheme.ProjectiveChart.projectiveCoordinateIsoSpec 1 0).inv.surjective.range_eq, Set.image_univ] |
| 27 | ext x |
| 28 | constructor |
| 29 | · rintro ⟨y, rfl⟩ |
| 30 | exact y.property |
| 31 | · intro hx |
| 32 | exact ⟨⟨x, hx⟩, rfl⟩ |
| 33 | |
| 34 | def point (a : ℂ) : Foundations.Scheme.ProjectiveSpace.projectiveSpace 1 := FamilyIs.MatrixParameterOpen.affine (Affine.ParameterFiber.point ℂ a) |
| 35 | |
| 36 | theorem point_mem (a : ℂ) : point a ∈ Foundations.Scheme.ProjectiveCoordinateCover.projectiveCoordinateOpen 1 0 := |
| 37 | Affine.ProjectiveParameter.contained _ |
| 38 | |
| 39 | def shift (x : Foundations.Scheme.ProjectiveSpace.projectiveSpace 1) (hx : x ∈ Foundations.Scheme.ProjectiveCoordinateCover.projectiveCoordinateOpen 1 0) (a : ℂ) : |
| 40 | (Foundations.Scheme.ProjectiveSpace.projectiveSpace 1).presheaf.stalk x := |
| 41 | letI := Stalk.PointAlgebra.scalarAlgebra (Foundations.Scheme.ProjectiveSpace.projectiveSpaceToBase 1) x |
| 42 | PointJets.StalkFractions.fraction 1 x |
| 43 | (LineParameter.RationalFractions.coordinate 1 1) |
| 44 | (LineParameter.RationalFractions.coordinate 1 0) hx - |
| 45 | algebraMap ℂ ((Foundations.Scheme.ProjectiveSpace.projectiveSpace 1).presheaf.stalk x) a |
| 46 | |
| 47 | theorem map_shift {Z : Scheme} (t : Z ⟶ Foundations.Scheme.ProjectiveSpace.projectiveSpace 1) |
| 48 | (x : Z) (hx : t x ∈ Foundations.Scheme.ProjectiveCoordinateCover.projectiveCoordinateOpen 1 0) (a : ℂ) : |
| 49 | t.stalkMap x (shift (t x) hx a) = ParameterGerms.shiftedGerm t x hx a := by |
| 50 | let := Stalk.PointAlgebra.scalarAlgebra (Foundations.Scheme.ProjectiveSpace.projectiveSpaceToBase 1) (t x) |
| 51 | let := Stalk.PointAlgebra.scalarAlgebra (t ≫ Foundations.Scheme.ProjectiveSpace.projectiveSpaceToBase 1) x |
| 52 | rw [shift, map_sub, ParameterGerms.shiftedGerm] |
| 53 | exact congrArg (fun c => ParameterGerms.finiteGerm t x hx - c) |
| 54 | ((Stalk.ScalarMaps.stalk t (Foundations.Scheme.ProjectiveSpace.projectiveSpaceToBase 1) x).commutes a) |
| 55 | |
| 56 | theorem shift_isUnit (x : Foundations.Scheme.ProjectiveSpace.projectiveSpace 1) (hx : x ∈ Foundations.Scheme.ProjectiveCoordinateCover.projectiveCoordinateOpen 1 0) (a : ℂ) : |
| 57 | IsUnit (shift x hx a) ↔ x ≠ point a := by |
| 58 | obtain ⟨y, rfl⟩ := (Set.ext_iff.mp range_affine x).mpr hx |
| 59 | rw [← isUnit_map_iff (FamilyIs.MatrixParameterOpen.affine.stalkMap y).hom, map_shift, Affine.ParameterComparison.affine_shift, |
| 60 | Affine.ParameterFiber.toStalk_unit, not_congr (Affine.ParameterFiber.mem_iff ℂ y a)] |
| 61 | exact (not_congr FamilyIs.MatrixParameterOpen.affine.isOpenEmbedding.injective.eq_iff).symm |
| 62 | |
| 63 | theorem shiftedGerm_isUnit {Z : Scheme} (t : Z ⟶ Foundations.Scheme.ProjectiveSpace.projectiveSpace 1) |
| 64 | (x : Z) (hx : t x ∈ Foundations.Scheme.ProjectiveCoordinateCover.projectiveCoordinateOpen 1 0) (a : ℂ) : |
| 65 | IsUnit (ParameterGerms.shiftedGerm t x hx a) ↔ t x ≠ point a := by |
| 66 | rw [← map_shift, isUnit_map_iff (t.stalkMap x).hom, shift_isUnit] |
| 67 | |
| 68 | variable {Z : Scheme} [IsIntegral Z] [AlgebraicGeometry.IsNoetherian Z] |
| 69 | (t : Z ⟶ Foundations.Scheme.ProjectiveSpace.projectiveSpace 1) (hη : t (genericPoint Z) = genericPoint (Foundations.Scheme.ProjectiveSpace.projectiveSpace 1)) |
| 70 | |
| 71 | theorem positive_zero (a : ℂ) (x : Z) (hx : t x ≠ point a) : |
| 72 | letI := Foundations.Scheme.FunctionFieldScalar.functionFieldScalarAlgebra (t ≫ Foundations.Scheme.ProjectiveSpace.projectiveSpaceToBase 1) |
| 73 | PositiveCycle.positivePart (Affine.DivisorNorm.rationalPrincipalDivisor Z |
| 74 | (LineParameter.pullback t hη - algebraMap ℂ Z.functionField a)) x = 0 := by |
| 75 | let := Foundations.Scheme.FunctionFieldScalar.functionFieldScalarAlgebra (t ≫ Foundations.Scheme.ProjectiveSpace.projectiveSpaceToBase 1) |
| 76 | by_cases hf : t x ∈ Foundations.Scheme.ProjectiveCoordinateCover.projectiveCoordinateOpen 1 0 |
| 77 | · rw [← ParameterGerms.shiftedGerm_field t hη x hf a, |
| 78 | PositiveCycle.positivePart_apply, Affine.DivisorNorm.rationalPrincipalDivisor_apply, |
| 79 | UnitDivisorSupport.order_zero Z x x (specializes_refl x) _ |
| 80 | ((shiftedGerm_isUnit t x hf a).mpr hx), Int.cast_zero, max_self] |
| 81 | · exact ParameterInfinity.positive_zero t hη x hf a |
| 82 | |
| 83 | theorem positive_support (a : ℂ) : |
| 84 | letI := Foundations.Scheme.FunctionFieldScalar.functionFieldScalarAlgebra (t ≫ Foundations.Scheme.ProjectiveSpace.projectiveSpaceToBase 1) |
| 85 | ∀ x ∈ (PositiveCycle.positivePart (Affine.DivisorNorm.rationalPrincipalDivisor Z |
| 86 | (LineParameter.pullback t hη - algebraMap ℂ Z.functionField a))).support, |
| 87 | t x = point a := by |
| 88 | let := Foundations.Scheme.FunctionFieldScalar.functionFieldScalarAlgebra (t ≫ Foundations.Scheme.ProjectiveSpace.projectiveSpaceToBase 1) |
| 89 | intro x hx |
| 90 | by_contra hn |
| 91 | exact Finsupp.mem_support_iff.mp hx (positive_zero t hη a x hn) |
| 92 | |
| 93 | end |
| 94 | |
| 95 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Projective.ParameterFiber |