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.LaurentResidueNaturality |
| 2 | |
| 3 | /-! # Laurent Polynomial Action -/ |
| 4 | |
| 5 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.LaurentPolynomialAction |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Homogeneous polynomial multiplication on the actual allowed Laurent |
| 10 | modules of the projective coordinate intersections. The maps commute |
| 11 | with enlarging an intersection and agree with ambient Laurent multiplication. -/ |
| 12 | |
| 13 | open _root_.MvPolynomial |
| 14 | |
| 15 | open OAI.NumberTheory.PadicHodge.IntegralComparison.LaurentResiduePairing |
| 16 | |
| 17 | universe u |
| 18 | |
| 19 | variable {σ : Type} [Fintype σ] (C : Type u) [CommRing C] |
| 20 | |
| 21 | abbrev Allowed (d : ℤ) {n : ℕ} (a : Fin (n + 1) → σ) := |
| 22 | {e : AlgebraicGeometry.SheafCohomology.Projective.LaurentWeight.MvPolynomial.HomogeneousLaurentExponent σ d // e.IsAllowedOn a} |
| 23 | |
| 24 | def shift (m : ℕ) (d : ℤ) {n : ℕ} (a : Fin (n + 1) → σ) |
| 25 | (e : AlgebraicGeometry.SheafCohomology.Projective.LaurentZeroCoefficients.MvPolynomial.NonnegativeLaurentWeight σ (m : ℤ)) (f : Allowed d a) : |
| 26 | Allowed ((m : ℤ) + d) a := |
| 27 | ⟨⟨e.val.val + f.val.val, by |
| 28 | rw [map_add, e.val.property, f.val.property]⟩, by |
| 29 | intro i hi |
| 30 | apply f.property |
| 31 | have he := e.property i |
| 32 | change e.val.val i + f.val.val i < 0 at hi |
| 33 | change f.val.val i < 0 |
| 34 | omega⟩ |
| 35 | |
| 36 | def monomial (m : ℕ) (d : ℤ) {n : ℕ} (a : Fin (n + 1) → σ) |
| 37 | (e : AlgebraicGeometry.SheafCohomology.Projective.LaurentZeroCoefficients.MvPolynomial.NonnegativeLaurentWeight σ (m : ℤ)) : |
| 38 | AddMonoidAlgebra C (Allowed d a) →ₗ[C] |
| 39 | AddMonoidAlgebra C (Allowed ((m : ℤ) + d) a) := |
| 40 | AddMonoidAlgebra.mapDomainLinearMap C C (shift m d a e) |
| 41 | |
| 42 | def polynomial (m : ℕ) (d : ℤ) {n : ℕ} (a : Fin (n + 1) → σ) |
| 43 | (P : homogeneousSubmodule σ C m) : |
| 44 | AddMonoidAlgebra C (Allowed d a) →ₗ[C] |
| 45 | AddMonoidAlgebra C (Allowed ((m : ℤ) + d) a) := |
| 46 | ∑ e : AlgebraicGeometry.SheafCohomology.Projective.LaurentZeroCoefficients.MvPolynomial.NonnegativeLaurentWeight σ (m : ℤ), |
| 47 | AlgebraicGeometry.SheafCohomology.Projective.NonnegativeLaurentPolynomials.MvPolynomial.homogeneousPolynomialCoefficientsEquiv C m P e • monomial C m d a e |
| 48 | |
| 49 | def ambient (d : ℤ) {n : ℕ} (a : Fin (n + 1) → σ) : |
| 50 | AddMonoidAlgebra C (Allowed d a) →ₗ[C] AddMonoidAlgebra C (σ →₀ ℤ) := |
| 51 | AddMonoidAlgebra.mapDomainLinearMap C C (fun e => e.val.val) |
| 52 | |
| 53 | omit [Fintype σ] in |
| 54 | theorem ambient_injective (d : ℤ) {n : ℕ} (a : Fin (n + 1) → σ) : |
| 55 | Function.Injective (ambient C d a) := by |
| 56 | apply AddMonoidAlgebra.mapDomain_injective |
| 57 | intro e f h |
| 58 | exact Subtype.ext (Subtype.ext h) |
| 59 | |
| 60 | omit [Fintype σ] in |
| 61 | theorem ambient_monomial (m : ℕ) (d : ℤ) {n : ℕ} (a : Fin (n + 1) → σ) |
| 62 | (e : AlgebraicGeometry.SheafCohomology.Projective.LaurentZeroCoefficients.MvPolynomial.NonnegativeLaurentWeight σ (m : ℤ)) (x : AddMonoidAlgebra C (Allowed d a)) : |
| 63 | ambient C ((m : ℤ) + d) a (monomial C m d a e x) = |
| 64 | AddMonoidAlgebra.single e.val.val 1 * ambient C d a x := by |
| 65 | have h : (ambient C ((m : ℤ) + d) a).comp (monomial C m d a e) = |
| 66 | (LinearMap.mulLeft C (AddMonoidAlgebra.single e.val.val 1)).comp (ambient C d a) := by |
| 67 | apply AddMonoidAlgebra.lhom_ext' |
| 68 | intro f |
| 69 | apply LinearMap.ext |
| 70 | intro c |
| 71 | simp only [LinearMap.comp_apply, AddMonoidAlgebra.lsingle_apply, |
| 72 | ambient, monomial, AddMonoidAlgebra.mapDomainLinearMap_single, |
| 73 | LinearMap.mulLeft_apply, AddMonoidAlgebra.single_mul_single, one_mul] |
| 74 | rfl |
| 75 | exact LinearMap.congr_fun h x |
| 76 | |
| 77 | theorem ambient_polynomial (m : ℕ) (d : ℤ) {n : ℕ} (a : Fin (n + 1) → σ) |
| 78 | (P : homogeneousSubmodule σ C m) (x : AddMonoidAlgebra C (Allowed d a)) : |
| 79 | ambient C ((m : ℤ) + d) a (polynomial C m d a P x) = |
| 80 | LaurentResiduePairing.polynomialMap σ C P.val * ambient C d a x := by |
| 81 | classical |
| 82 | simp only [polynomial, LinearMap.sum_apply, LinearMap.smul_apply, |
| 83 | map_sum, map_smul, ambient_monomial, LaurentResiduePairing.polynomialMap_homogeneous, Finset.sum_mul] |
| 84 | apply Finset.sum_congr rfl |
| 85 | intro e _ |
| 86 | rw [← smul_mul_assoc, AddMonoidAlgebra.smul_single, smul_eq_mul, mul_one] |
| 87 | |
| 88 | def enlarge (d : ℤ) {n k : ℕ} (a : Fin (n + 1) → σ) (b : Fin (k + 1) → σ) |
| 89 | (h : Set.range a ⊆ Set.range b) : Allowed d a → Allowed d b := |
| 90 | fun e => ⟨e.val, fun _ hi => h (e.property hi)⟩ |
| 91 | |
| 92 | def restriction (d : ℤ) {n k : ℕ} (a : Fin (n + 1) → σ) (b : Fin (k + 1) → σ) |
| 93 | (h : Set.range a ⊆ Set.range b) : |
| 94 | AddMonoidAlgebra C (Allowed d a) →ₗ[C] AddMonoidAlgebra C (Allowed d b) := |
| 95 | AddMonoidAlgebra.mapDomainLinearMap C C (enlarge d a b h) |
| 96 | |
| 97 | omit [Fintype σ] in |
| 98 | theorem ambient_restriction (d : ℤ) {n k : ℕ} (a : Fin (n + 1) → σ) |
| 99 | (b : Fin (k + 1) → σ) (h : Set.range a ⊆ Set.range b) |
| 100 | (x : AddMonoidAlgebra C (Allowed d a)) : |
| 101 | ambient C d b (restriction C d a b h x) = ambient C d a x := by |
| 102 | have heq : (ambient C d b).comp (restriction C d a b h) = ambient C d a := by |
| 103 | rw [ambient, restriction, ← AddMonoidAlgebra.mapDomainLinearMap_comp] |
| 104 | rfl |
| 105 | exact LinearMap.congr_fun heq x |
| 106 | |
| 107 | theorem polynomial_restriction (m : ℕ) (d : ℤ) {n k : ℕ} |
| 108 | (a : Fin (n + 1) → σ) (b : Fin (k + 1) → σ) |
| 109 | (h : Set.range a ⊆ Set.range b) (P : homogeneousSubmodule σ C m) |
| 110 | (x : AddMonoidAlgebra C (Allowed d a)) : |
| 111 | restriction C ((m : ℤ) + d) a b h (polynomial C m d a P x) = |
| 112 | polynomial C m d b P (restriction C d a b h x) := by |
| 113 | apply ambient_injective C ((m : ℤ) + d) b |
| 114 | rw [ambient_restriction, ambient_polynomial, ambient_polynomial, ambient_restriction] |
| 115 | |
| 116 | end |
| 117 | |
| 118 | end OAI.NumberTheory.PadicHodge.IntegralComparison.LaurentPolynomialAction |