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.OneSidedTor |
| 2 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Open.SupportTor |
| 3 | import Mathlib.RingTheory.TensorProduct.Quotient |
| 4 | import Mathlib.RingTheory.Unramified.LocalRing |
| 5 | |
| 6 | /-! # Transverse Euler -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Flat.TransverseEuler |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! The local transverse intersection calculation: a quotient pulled |
| 13 | back through a flat algebra has no higher Tor against another algebra |
| 14 | flat over the same base. An unramified local closed fiber has length one. -/ |
| 15 | |
| 16 | set_option backward.isDefEq.respectTransparency false |
| 17 | |
| 18 | open _root_.CategoryTheory |
| 19 | open scoped TensorProduct |
| 20 | |
| 21 | universe u |
| 22 | |
| 23 | variable (R S T : Type u) [CommRing R] [CommRing S] [CommRing T] |
| 24 | [Algebra R S] [Algebra S T] [Algebra R T] [IsScalarTower R S T] |
| 25 | [Module.Flat R S] [Module.Flat R T] |
| 26 | |
| 27 | def quotientEquiv (I : Ideal R) : |
| 28 | (S ⧸ I.map (algebraMap R S)) ≃ₗ[S] S ⊗[R] (R ⧸ I) := |
| 29 | (Algebra.TensorProduct.quotIdealMapEquivTensorQuot S I).toLinearEquiv |
| 30 | |
| 31 | theorem higher_length (I : Ideal R) (n : ℕ) : |
| 32 | Module.length S (((Tor (ModuleCat S) (n + 1)).obj |
| 33 | (.of S (S ⧸ I.map (algebraMap R S)))).obj (.of S T)) = 0 := by |
| 34 | rw [Open.SupportTor.length_iso S (quotientEquiv R S I).toModuleIso |
| 35 | (Iso.refl (.of S T))] |
| 36 | exact OneSidedTor.higher_length R S (.of R (R ⧸ I)) (.of S T) n |
| 37 | |
| 38 | theorem euler_length (I : Ideal R) (d : ℕ) : |
| 39 | (∑ i ∈ Finset.range (d + 1), (-1 : ℚ) ^ i * |
| 40 | (Module.length S (((Tor (ModuleCat S) i).obj |
| 41 | (.of S (S ⧸ I.map (algebraMap R S)))).obj (.of S T))).toNat) = |
| 42 | (Module.length S (T ⧸ I.map (algebraMap R T))).toNat := by |
| 43 | have he (i : ℕ) := Open.SupportTor.length_iso S (quotientEquiv R S I).toModuleIso |
| 44 | (Iso.refl (.of S T)) i |
| 45 | simp_rw [he] |
| 46 | trans ((Module.length S (T ⊗[R] (R ⧸ I))).toNat : ℚ) |
| 47 | · exact OneSidedTor.euler_length R S (.of R (R ⧸ I)) (.of S T) d |
| 48 | exact congrArg (fun l : ℕ∞ => (l.toNat : ℚ)) |
| 49 | ((Algebra.TensorProduct.quotIdealMapEquivTensorQuot T I).symm.toLinearEquiv.restrictScalars S).length_eq |
| 50 | |
| 51 | theorem euler_one [IsLocalRing R] [IsLocalRing T] |
| 52 | (hST : Function.Surjective (algebraMap S T)) |
| 53 | (hmax : (IsLocalRing.maximalIdeal R).map (algebraMap R T) = IsLocalRing.maximalIdeal T) |
| 54 | (d : ℕ) : |
| 55 | (∑ i ∈ Finset.range (d + 1), (-1 : ℚ) ^ i * |
| 56 | (Module.length S (((Tor (ModuleCat S) i).obj |
| 57 | (.of S (S ⧸ (IsLocalRing.maximalIdeal R).map (algebraMap R S)))).obj (.of S T))).toNat) = 1 := by |
| 58 | rw [euler_length, hmax, Module.length_eq_of_surjective hST] |
| 59 | have hl : Module.length T (T ⧸ IsLocalRing.maximalIdeal T) = 1 := by |
| 60 | rw [Module.length_eq_of_surjective (M := T ⧸ IsLocalRing.maximalIdeal T) |
| 61 | (show Function.Surjective (algebraMap T (T ⧸ IsLocalRing.maximalIdeal T)) from |
| 62 | Ideal.Quotient.mk_surjective)] |
| 63 | exact Module.length_eq_one (IsLocalRing.ResidueField T) (IsLocalRing.ResidueField T) |
| 64 | rw [hl] |
| 65 | norm_num |
| 66 | |
| 67 | theorem euler_one_of_unramified [IsLocalRing R] [IsLocalRing T] |
| 68 | [IsLocalHom (algebraMap R T)] [Algebra.EssFiniteType R T] |
| 69 | [Algebra.FormallyUnramified R T] (hST : Function.Surjective (algebraMap S T)) (d : ℕ) : |
| 70 | (∑ i ∈ Finset.range (d + 1), (-1 : ℚ) ^ i * |
| 71 | (Module.length S (((Tor (ModuleCat S) i).obj |
| 72 | (.of S (S ⧸ (IsLocalRing.maximalIdeal R).map (algebraMap R S)))).obj (.of S T))).toNat) = 1 := |
| 73 | euler_one R S T hST Algebra.FormallyUnramified.map_maximalIdeal d |
| 74 | |
| 75 | end |
| 76 | |
| 77 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Flat.TransverseEuler |