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.Smooth.PullbackModule |
| 2 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Tor.TorRestriction |
| 3 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Open.SupportTor |
| 4 | |
| 5 | /-! # Pullback Euler -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Smooth.PullbackEuler |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! One-sided smooth base change for the actual support Tor Euler |
| 12 | characteristic, with the native residue-degree weight. -/ |
| 13 | |
| 14 | set_option backward.isDefEq.respectTransparency false |
| 15 | set_option backward.isDefEq.respectTransparency.types false |
| 16 | |
| 17 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.TopologicalSpace |
| 18 | |
| 19 | theorem congr (R : Type) [CommRing R] {M M' N N' : ModuleCat R} |
| 20 | (eM : M ≅ M') (eN : N ≅ N') (d : ℕ) : |
| 21 | Tor.Euler.euler R M N d = Tor.Euler.euler R M' N' d := by |
| 22 | unfold Tor.Euler.euler ExactLength.rationalLength |
| 23 | simp_rw [Open.SupportTor.length_iso R eM eN] |
| 24 | |
| 25 | theorem residue_length {X Y : Scheme} (f : X ⟶ Y) (x : X) : |
| 26 | letI : Algebra (Y.presheaf.stalk (f x)) (X.presheaf.stalk x) := (f.stalkMap x).hom.toAlgebra |
| 27 | letI : IsLocalHom (algebraMap (Y.presheaf.stalk (f x)) (X.presheaf.stalk x)) := f.toLRSHom.prop x |
| 28 | (Module.length (IsLocalRing.ResidueField (Y.presheaf.stalk (f x))) |
| 29 | (IsLocalRing.ResidueField (X.presheaf.stalk x))).toNat = f.residueDegree x := by |
| 30 | let : Algebra (Y.presheaf.stalk (f x)) (X.presheaf.stalk x) := (f.stalkMap x).hom.toAlgebra |
| 31 | let : IsLocalHom (algebraMap (Y.presheaf.stalk (f x)) (X.presheaf.stalk x)) := f.toLRSHom.prop x |
| 32 | rw [Module.length_eq_rank, Cardinal.toNat_toENat] |
| 33 | change Module.finrank (IsLocalRing.ResidueField (Y.presheaf.stalk (f x))) |
| 34 | (IsLocalRing.ResidueField (X.presheaf.stalk x)) = _ |
| 35 | unfold Scheme.Hom.residueDegree |
| 36 | apply @Algebra.finrank_eq_of_equiv_equiv |
| 37 | (IsLocalRing.ResidueField (Y.presheaf.stalk (f x))) |
| 38 | (IsLocalRing.ResidueField (X.presheaf.stalk x)) _ _ inferInstance |
| 39 | (Y.residueField (f x)) (X.residueField x) _ _ (f.residueFieldMap x).hom.toAlgebra |
| 40 | (RingEquiv.refl _) (RingEquiv.refl _) |
| 41 | ext t |
| 42 | obtain ⟨r, rfl⟩ := IsLocalRing.residue_surjective t |
| 43 | rfl |
| 44 | |
| 45 | theorem euler {X Y : Scheme} [IsLocallyNoetherian Y] (f : X ⟶ Y) [Smooth f] |
| 46 | [GeometricallyIntegral f] (A : IrreducibleCloseds X) (B : IrreducibleCloseds Y) |
| 47 | (x : X) (hxA : x ∈ (A : Set X)) (hxB : f x ∈ (B : Set Y)) (d : ℕ) : |
| 48 | Tor.Euler.euler (Y.presheaf.stalk (f x)) (CycleClass.Thom.IntersectionGeometry.localSupportModule Y B (f x) hxB) |
| 49 | ((ModuleCat.restrictScalars (f.stalkMap x).hom).obj (CycleClass.Thom.IntersectionGeometry.localSupportModule X A x hxA)) d = |
| 50 | Tor.Euler.euler (X.presheaf.stalk x) |
| 51 | (CycleClass.Thom.IntersectionGeometry.localSupportModule X (Divisors.LineBundles.Integral.PulledSupport.BundleCycles.integralPulledSupport f B) x (PullbackModule.mem f B x hxB)) |
| 52 | (CycleClass.Thom.IntersectionGeometry.localSupportModule X A x hxA) d * (f.residueDegree x : ℚ) := by |
| 53 | let R := Y.presheaf.stalk (f x) |
| 54 | let S := X.presheaf.stalk x |
| 55 | let : Algebra R S := (f.stalkMap x).hom.toAlgebra |
| 56 | let : Module.Flat R S := Flat.stalkMap f x |
| 57 | let : IsLocalHom (algebraMap R S) := f.toLRSHom.prop x |
| 58 | let N := CycleClass.Thom.IntersectionGeometry.localSupportModule X A x hxA |
| 59 | let : Module R N := Module.compHom N (algebraMap R S) |
| 60 | let : IsScalarTower R S N := IsScalarTower.of_compHom R S N |
| 61 | have h := Tor.TorRestriction.euler R S N (CycleClass.Thom.IntersectionGeometry.localSupportModule Y B (f x) hxB) d |
| 62 | rw [residue_length f x] at h |
| 63 | exact h.trans (congrArg (fun a : ℚ => a * (f.residueDegree x : ℚ)) |
| 64 | (congr S (PullbackModule.equiv f B x hxB).toModuleIso (Iso.refl N) d)) |
| 65 | |
| 66 | end |
| 67 | |
| 68 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Smooth.PullbackEuler |