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.Crystalline.Cohomology.Multivariable.Primitive |
| 2 | |
| 3 | /-! # Constants -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.Crystalline.Cohomology.Multivariable.Constants.MultivariableConstants |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! |
| 10 | # The constant part of the multivariable divided-power algebra |
| 11 | |
| 12 | Composing every coordinate's coefficient projection retains exactly |
| 13 | the coefficient of the zero divided monomial. |
| 14 | -/ |
| 15 | |
| 16 | open OAI.AlgebraicGeometry.Crystalline.Cohomology.Multivariable.DividedAlgebra.MultivariableDividedAlgebra OAI.AlgebraicGeometry.Crystalline.Cohomology.Multivariable.Primitive.MultivariablePrimitive Classical |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | variable (R σ K : Type u) [CommRing R] [Field K] [CharZero K] [Algebra R K] |
| 21 | (h : Function.Injective (algebraMap R K)) |
| 22 | |
| 23 | local notation "G" => DividedPowerAlgebra R (σ →₀ R) |
| 24 | |
| 25 | def constantCoefficient : G →ₗ[R] R := |
| 26 | (Finsupp.lapply 0).comp (DividedAlgebra.MultivariableDividedAlgebra.coefficientEquiv R σ K h).symm.toLinearMap |
| 27 | |
| 28 | def constants : R →ₗ[R] G := Algebra.linearMap R G |
| 29 | |
| 30 | theorem monomial_zero : DividedAlgebra.MultivariableDividedAlgebra.monomial R σ 0 = 1 := by |
| 31 | simp [DividedAlgebra.MultivariableDividedAlgebra.monomial] |
| 32 | |
| 33 | theorem constantCoefficient_monomial (d : σ →₀ ℕ) : |
| 34 | constantCoefficient R σ K h (DividedAlgebra.MultivariableDividedAlgebra.monomial R σ d) = if d = 0 then 1 else 0 := by |
| 35 | change (DividedAlgebra.MultivariableDividedAlgebra.coefficientEquiv R σ K h).symm (DividedAlgebra.MultivariableDividedAlgebra.monomial R σ d) 0 = _ |
| 36 | rw [Primitive.MultivariablePrimitive.coefficients_monomial] |
| 37 | by_cases hd : d = 0 |
| 38 | · subst d |
| 39 | simp only [Finsupp.single_eq_same, ite_true] |
| 40 | · rw [Finsupp.single_eq_of_ne (Ne.symm hd), ite_eq_right hd] |
| 41 | |
| 42 | theorem constantCoefficient_one : constantCoefficient R σ K h 1 = 1 := by |
| 43 | rw [← monomial_zero R σ, constantCoefficient_monomial, ite_eq_left rfl] |
| 44 | |
| 45 | theorem constantCoefficient_constants : |
| 46 | (constantCoefficient R σ K h).comp (constants R σ) = LinearMap.id := by |
| 47 | apply LinearMap.ext |
| 48 | intro r |
| 49 | change constantCoefficient R σ K h (algebraMap R G r) = r |
| 50 | rw [Algebra.algebraMap_eq_smul_one, map_smul, constantCoefficient_one, smul_eq_mul, mul_one] |
| 51 | |
| 52 | def successive : List σ → Module.End R G |
| 53 | | [] => LinearMap.id |
| 54 | | i :: l => (successive l).comp (Primitive.MultivariablePrimitive.projection R σ K h i) |
| 55 | |
| 56 | theorem successive_monomial (l : List σ) (d : σ →₀ ℕ) : |
| 57 | MultivariableConstants.successive R σ K h l (DividedAlgebra.MultivariableDividedAlgebra.monomial R σ d) = |
| 58 | if ∀ i ∈ l, d i = 0 then DividedAlgebra.MultivariableDividedAlgebra.monomial R σ d else 0 := by |
| 59 | induction l with |
| 60 | | nil => simp [MultivariableConstants.successive] |
| 61 | | cons i l ih => |
| 62 | change MultivariableConstants.successive R σ K h l (Primitive.MultivariablePrimitive.projection R σ K h i _) = _ |
| 63 | rw [Primitive.MultivariablePrimitive.projection_monomial] |
| 64 | by_cases hi : d i = 0 |
| 65 | · rw [ite_eq_left hi, ih] |
| 66 | congr 1 |
| 67 | simp only [List.mem_cons, forall_eq_or_imp, hi, true_and] |
| 68 | · rw [ite_eq_right hi, map_zero, ite_eq_right] |
| 69 | exact fun hf => hi (hf i List.mem_cons_self) |
| 70 | |
| 71 | theorem successive_eq_constants (l : List σ) (hl : ∀ i, i ∈ l) : |
| 72 | MultivariableConstants.successive R σ K h l = (constants R σ).comp (constantCoefficient R σ K h) := by |
| 73 | apply LinearMap.ext_on (DividedAlgebra.MultivariableDividedAlgebra.span_monomial_eq_top R σ) |
| 74 | rintro _ ⟨d, rfl⟩ |
| 75 | change MultivariableConstants.successive R σ K h l (DividedAlgebra.MultivariableDividedAlgebra.monomial R σ d) = |
| 76 | constants R σ (constantCoefficient R σ K h (DividedAlgebra.MultivariableDividedAlgebra.monomial R σ d)) |
| 77 | rw [successive_monomial, constantCoefficient_monomial] |
| 78 | by_cases hd : d = 0 |
| 79 | · subst d |
| 80 | rw [ite_eq_left (show ∀ i ∈ l, (0 : σ →₀ ℕ) i = 0 from fun _ _ => rfl), |
| 81 | ite_eq_left rfl, monomial_zero] |
| 82 | exact (map_one (algebraMap R G)).symm |
| 83 | · have hn : ¬ ∀ i ∈ l, d i = 0 := fun hf => hd (Finsupp.ext (fun i => hf i (hl i))) |
| 84 | rw [ite_eq_right hn, ite_eq_right hd, map_zero] |
| 85 | |
| 86 | end |
| 87 | |
| 88 | end OAI.AlgebraicGeometry.Crystalline.Cohomology.Multivariable.Constants.MultivariableConstants |