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.StandardEtaleLiftAlgebra |
| 2 | import Mathlib.RingTheory.Polynomial.Basic |
| 3 | |
| 4 | /-! # Standard Etale Lift -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Polynomial.StandardEtaleLift |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Lift an actual standard étale coordinate algebra through a |
| 11 | surjective coefficient map. The resulting smooth algebra has exactly |
| 12 | the prescribed quotient, including its coefficient action. -/ |
| 13 | |
| 14 | universe u v |
| 15 | |
| 16 | variable (R S : Type u) [CommRing R] [CommRing S] [Algebra R S] |
| 17 | (h : Function.Surjective (algebraMap R S)) |
| 18 | (σ : Type v) (C : Type u) [Finite σ] [CommRing C] |
| 19 | [Algebra S C] [Algebra (MvPolynomial σ S) C] |
| 20 | [IsScalarTower S (MvPolynomial σ S) C] |
| 21 | (P : StandardEtalePresentation (MvPolynomial σ S) C) |
| 22 | |
| 23 | instance polynomialAlgebra : Algebra (MvPolynomial σ R) (MvPolynomial σ S) := |
| 24 | (MvPolynomial.map (algebraMap R S)).toAlgebra |
| 25 | |
| 26 | omit [Finite σ] in |
| 27 | include h in |
| 28 | theorem polynomial_surjective : |
| 29 | Function.Surjective (algebraMap (MvPolynomial σ R) (MvPolynomial σ S)) := |
| 30 | MvPolynomial.map_surjective (algebraMap R S) h |
| 31 | |
| 32 | abbrev Ring := StandardEtaleLiftAlgebra.Ring (MvPolynomial σ S) |
| 33 | (polynomial_surjective R S h σ) P.P |
| 34 | |
| 35 | instance coefficientAlgebra : Algebra R (Ring R S h σ C P) := |
| 36 | ((algebraMap (MvPolynomial σ R) (Ring R S h σ C P)).comp MvPolynomial.C).toAlgebra |
| 37 | |
| 38 | instance coefficientTower : IsScalarTower R (MvPolynomial σ R) (Ring R S h σ C P) := |
| 39 | IsScalarTower.of_algebraMap_eq (fun _ => rfl) |
| 40 | |
| 41 | instance smooth : Algebra.Smooth R (Ring R S h σ C P) := by |
| 42 | let : Fintype σ := Fintype.ofFinite σ |
| 43 | let : Algebra.Smooth R (MvPolynomial σ R) := ⟨inferInstance, inferInstance⟩ |
| 44 | exact Algebra.Smooth.comp R (MvPolynomial σ R) (Ring R S h σ C P) |
| 45 | |
| 46 | instance flat : Module.Flat R (Ring R S h σ C P) := Algebra.Smooth.flat R (Ring R S h σ C P) |
| 47 | |
| 48 | def reduction : Ring R S h σ C P →+* C := |
| 49 | P.equivRing.symm.toRingHom.comp |
| 50 | (StandardEtaleLiftAlgebra.reduction (MvPolynomial σ S) (polynomial_surjective R S h σ) P.P) |
| 51 | |
| 52 | omit [Finite σ] [Algebra S C] [IsScalarTower S (MvPolynomial σ S) C] in |
| 53 | theorem reduction_surjective : Function.Surjective (reduction R S h σ C P) := |
| 54 | P.equivRing.symm.surjective.comp |
| 55 | (StandardEtaleLiftAlgebra.reduction_surjective (MvPolynomial σ S) |
| 56 | (polynomial_surjective R S h σ) P.P) |
| 57 | |
| 58 | omit [Finite σ] in |
| 59 | theorem reduction_base (r : R) : |
| 60 | reduction R S h σ C P (algebraMap R (Ring R S h σ C P) r) = |
| 61 | algebraMap S C (algebraMap R S r) := by |
| 62 | change P.equivRing.symm |
| 63 | (StandardEtaleLiftAlgebra.reduction (MvPolynomial σ S) (polynomial_surjective R S h σ) P.P |
| 64 | (algebraMap (MvPolynomial σ R) (Ring R S h σ C P) (MvPolynomial.C r))) = _ |
| 65 | rw [StandardEtaleLiftAlgebra.reduction_base, P.equivRing.symm.commutes] |
| 66 | change algebraMap (MvPolynomial σ S) C (MvPolynomial.map (algebraMap R S) (MvPolynomial.C r)) = _ |
| 67 | rw [MvPolynomial.map_C] |
| 68 | exact (IsScalarTower.algebraMap_apply S (MvPolynomial σ S) C (algebraMap R S r)).symm |
| 69 | |
| 70 | omit [Finite σ] [Algebra S C] [IsScalarTower S (MvPolynomial σ S) C] in |
| 71 | theorem reduction_kernel : RingHom.ker (reduction R S h σ C P) = |
| 72 | (RingHom.ker (algebraMap R S)).map (algebraMap R (Ring R S h σ C P)) := by |
| 73 | have he : RingHom.ker (reduction R S h σ C P) = |
| 74 | RingHom.ker (StandardEtaleLiftAlgebra.reduction (MvPolynomial σ S) |
| 75 | (polynomial_surjective R S h σ) P.P) := |
| 76 | RingHom.ker_comp_of_injective _ (show Function.Injective P.equivRing.symm.toRingHom from |
| 77 | P.equivRing.symm.injective) |
| 78 | rw [he, StandardEtaleLiftAlgebra.reduction_kernel] |
| 79 | change (RingHom.ker (MvPolynomial.map (algebraMap R S))).map |
| 80 | (algebraMap (MvPolynomial σ R) (Ring R S h σ C P)) = _ |
| 81 | rw [MvPolynomial.ker_map, Ideal.map_map] |
| 82 | rfl |
| 83 | |
| 84 | def quotientEquiv : |
| 85 | (Ring R S h σ C P ⧸ (RingHom.ker (algebraMap R S)).map |
| 86 | (algebraMap R (Ring R S h σ C P))) ≃+* C := |
| 87 | (Ideal.quotEquivOfEq (reduction_kernel R S h σ C P).symm).trans |
| 88 | (RingHom.quotientKerEquivOfSurjective (reduction_surjective R S h σ C P)) |
| 89 | |
| 90 | omit [Finite σ] [Algebra S C] [IsScalarTower S (MvPolynomial σ S) C] in |
| 91 | theorem quotientEquiv_mk (a : Ring R S h σ C P) : |
| 92 | quotientEquiv R S h σ C P |
| 93 | (Ideal.Quotient.mk ((RingHom.ker (algebraMap R S)).map |
| 94 | (algebraMap R (Ring R S h σ C P))) a) = reduction R S h σ C P a := by |
| 95 | change (RingHom.quotientKerEquivOfSurjective (reduction_surjective R S h σ C P)) |
| 96 | ((Ideal.quotEquivOfEq (reduction_kernel R S h σ C P).symm) (Ideal.Quotient.mk _ a)) = _ |
| 97 | rw [Ideal.quotEquivOfEq_mk] |
| 98 | rfl |
| 99 | |
| 100 | end |
| 101 | |
| 102 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Polynomial.StandardEtaleLift |