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.NumberTheory.PadicHodge.IntegralComparison.StandardEtaleLift |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.StandardEtaleBaseChange |
| 3 | import OAI.NumberTheory.PadicHodge.IntegralComparison.SurjectiveBaseChange |
| 4 | import Mathlib.RingTheory.Smooth.Flat |
| 5 | |
| 6 | /-! # Standard Etale Lift Algebra -/ |
| 7 | |
| 8 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.StandardEtaleLiftAlgebra |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! The actual lifted standard etale algebra is flat and has its original special fibre. -/ |
| 13 | |
| 14 | open _root_.Polynomial |
| 15 | |
| 16 | universe u v |
| 17 | |
| 18 | open scoped TensorProduct |
| 19 | |
| 20 | private def baseChangeEquiv {R : Type u} [CommRing R] (S : Type v) |
| 21 | [CommRing S] [Algebra R S] (Q : StandardEtalePair R) : |
| 22 | S ⊗[R] Q.Ring ≃ₐ[S] (Q.map (algebraMap R S)).Ring := |
| 23 | ((StandardEtaleBaseChange.presentation Q).baseChange (T := S)).equivRing |
| 24 | |
| 25 | private def baseChangeMap {R : Type u} [CommRing R] (S : Type v) |
| 26 | [CommRing S] [Algebra R S] (Q : StandardEtalePair R) : |
| 27 | Q.Ring →+* (Q.map (algebraMap R S)).Ring := |
| 28 | (baseChangeEquiv S Q).toRingHom.comp Algebra.TensorProduct.includeRight.toRingHom |
| 29 | |
| 30 | private theorem baseChangeMap_surjective {R : Type u} [CommRing R] (S : Type v) |
| 31 | [CommRing S] [Algebra R S] (Q : StandardEtalePair R) |
| 32 | (h : Function.Surjective (algebraMap R S)) : Function.Surjective (baseChangeMap S Q) := by |
| 33 | apply (baseChangeEquiv S Q).surjective.comp |
| 34 | intro x |
| 35 | obtain ⟨z, hz⟩ := (SurjectiveBaseChange.quotientEquiv S Q.Ring h).surjective x |
| 36 | obtain ⟨a, rfl⟩ := Ideal.Quotient.mk_surjective z |
| 37 | exact ⟨a, (SurjectiveBaseChange.quotientEquiv_mk S Q.Ring h a).symm.trans hz⟩ |
| 38 | |
| 39 | private theorem baseChangeMap_base {R : Type u} [CommRing R] (S : Type v) |
| 40 | [CommRing S] [Algebra R S] (Q : StandardEtalePair R) (r : R) : |
| 41 | baseChangeMap S Q (algebraMap R Q.Ring r) = |
| 42 | algebraMap S (Q.map (algebraMap R S)).Ring (algebraMap R S r) := by |
| 43 | change baseChangeEquiv S Q (1 ⊗ₜ[R] algebraMap R Q.Ring r) = _ |
| 44 | rw [← Algebra.TensorProduct.algebraMap_apply', |
| 45 | IsScalarTower.algebraMap_eq R S (S ⊗[R] Q.Ring), RingHom.comp_apply] |
| 46 | exact (baseChangeEquiv S Q).commutes _ |
| 47 | |
| 48 | variable {R : Type u} [CommRing R] (S : Type v) [CommRing S] [Algebra R S] |
| 49 | (h : Function.Surjective (algebraMap R S)) (P : StandardEtalePair S) |
| 50 | |
| 51 | abbrev Ring := (StandardEtaleLift.pair (algebraMap R S) h P).Ring |
| 52 | |
| 53 | instance etale : Algebra.Etale R (StandardEtaleLiftAlgebra.Ring S h P) := inferInstanceAs |
| 54 | (Algebra.Etale R (StandardEtaleLift.pair (algebraMap R S) h P).Ring) |
| 55 | |
| 56 | instance flat : Module.Flat R (StandardEtaleLiftAlgebra.Ring S h P) := Algebra.Smooth.flat R (StandardEtaleLiftAlgebra.Ring S h P) |
| 57 | |
| 58 | def reduction : StandardEtaleLiftAlgebra.Ring S h P →+* P.Ring := |
| 59 | (StandardEtaleLift.residueEquiv (algebraMap R S) h P).toRingHom.comp |
| 60 | (baseChangeMap S (StandardEtaleLift.pair (algebraMap R S) h P)) |
| 61 | |
| 62 | theorem reduction_surjective : Function.Surjective (reduction S h P) := |
| 63 | (StandardEtaleLift.residueEquiv (algebraMap R S) h P).surjective.comp |
| 64 | (baseChangeMap_surjective S (StandardEtaleLift.pair (algebraMap R S) h P) h) |
| 65 | |
| 66 | theorem reduction_base (r : R) : reduction S h P (algebraMap R (StandardEtaleLiftAlgebra.Ring S h P) r) = |
| 67 | algebraMap S P.Ring (algebraMap R S r) := by |
| 68 | change StandardEtaleLift.residueEquiv (algebraMap R S) h P |
| 69 | (baseChangeMap S (StandardEtaleLift.pair (algebraMap R S) h P) |
| 70 | (algebraMap R (StandardEtaleLiftAlgebra.Ring S h P) r)) = _ |
| 71 | rw [baseChangeMap_base] |
| 72 | exact (StandardEtaleLift.residueEquiv (algebraMap R S) h P).commutes _ |
| 73 | |
| 74 | theorem reduction_kernel : RingHom.ker (reduction S h P) = |
| 75 | (RingHom.ker (algebraMap R S)).map (algebraMap R (StandardEtaleLiftAlgebra.Ring S h P)) := by |
| 76 | have h₁ : RingHom.ker (reduction S h P) = |
| 77 | RingHom.ker (baseChangeMap S (StandardEtaleLift.pair (algebraMap R S) h P)) := |
| 78 | RingHom.ker_comp_of_injective _ |
| 79 | (show Function.Injective (StandardEtaleLift.residueEquiv (algebraMap R S) h P).toRingHom from |
| 80 | (StandardEtaleLift.residueEquiv (algebraMap R S) h P).injective) |
| 81 | have h₂ : RingHom.ker (baseChangeMap S |
| 82 | (StandardEtaleLift.pair (algebraMap R S) h P)) = |
| 83 | RingHom.ker (Algebra.TensorProduct.includeRight (R := R) (A := S) (B := StandardEtaleLiftAlgebra.Ring S h P)).toRingHom := |
| 84 | RingHom.ker_comp_of_injective _ |
| 85 | (show Function.Injective (baseChangeEquiv S |
| 86 | (StandardEtaleLift.pair (algebraMap R S) h P)).toRingHom from |
| 87 | (baseChangeEquiv S (StandardEtaleLift.pair (algebraMap R S) h P)).injective) |
| 88 | exact h₁.trans (h₂.trans (SurjectiveBaseChange.kernel S (StandardEtaleLiftAlgebra.Ring S h P) h)) |
| 89 | |
| 90 | end |
| 91 | |
| 92 | end OAI.NumberTheory.PadicHodge.IntegralComparison.StandardEtaleLiftAlgebra |