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.FreeRelative.Powers |
| 2 | |
| 3 | /-! # Universal -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.Crystalline.Cohomology.FreeRelative.Universal.FreeRelativeUniversal |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! |
| 10 | # Universal property of the relative free PD algebra over arbitrary bases |
| 11 | |
| 12 | Choosing target PD-ideal elements for all coordinates determines a unique |
| 13 | genuine PD algebra map. Both the base and target may have torsion. |
| 14 | -/ |
| 15 | |
| 16 | open OAI.AlgebraicGeometry.Crystalline.Cohomology.Multivariable.DividedAlgebra.MultivariableDividedAlgebra |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | variable (R σ : Type u) [CommRing R] |
| 21 | (I : Ideal R) (δ : DividedPowers I) |
| 22 | (A : Type u) [CommRing A] [Algebra R A] |
| 23 | (J : Ideal A) (ε : DividedPowers J) |
| 24 | (hbase : DividedPowers.IsDPMorphism δ ε (algebraMap R A)) |
| 25 | (x : σ → A) (hx : ∀ i, x i ∈ J) |
| 26 | |
| 27 | local notation "G" => DividedPowerAlgebra R (σ →₀ R) |
| 28 | local notation "IG" => OAI.AlgebraicGeometry.Crystalline.Cohomology.Multivariable.DividedPowers.MultivariableDividedPowers.ideal R σ I |
| 29 | local notation "γ" => OAI.AlgebraicGeometry.Crystalline.Cohomology.FreeRelative.Powers.FreeRelativePowers.dividedPowers R σ I δ |
| 30 | |
| 31 | include hx in |
| 32 | theorem linearCombination_mem (a : σ →₀ R) : Finsupp.linearCombination R x a ∈ J := by |
| 33 | classical |
| 34 | change (∑ i ∈ a.support, a i • x i) ∈ J |
| 35 | exact Submodule.sum_mem J (fun i _ => Submodule.smul_of_tower_mem J _ (hx i)) |
| 36 | |
| 37 | def lift : G →ₐ[R] A := |
| 38 | DividedPowerAlgebra.lift ε (Finsupp.linearCombination R x) (linearCombination_mem R σ A J x hx) |
| 39 | |
| 40 | theorem lift_generator (n : ℕ) (i : σ) : |
| 41 | FreeRelativeUniversal.lift R σ A J ε x hx (Multivariable.DividedAlgebra.MultivariableDividedAlgebra.generator R σ n i) = ε.dpow n (x i) := by |
| 42 | change DividedPowerAlgebra.lift _ _ _ (DividedPowerAlgebra.dp R n (Finsupp.single i (1 : R))) = _ |
| 43 | rw [DividedPowerAlgebra.lift_apply_dp, Finsupp.linearCombination_single, one_smul] |
| 44 | |
| 45 | theorem lift_coordinate (i : σ) : FreeRelativeUniversal.lift R σ A J ε x hx (Multivariable.DividedAlgebra.MultivariableDividedAlgebra.generator R σ 1 i) = x i := by |
| 46 | rw [lift_generator, ε.dpow_one (hx i)] |
| 47 | |
| 48 | include hbase in |
| 49 | theorem lift_isDPMorphism : DividedPowers.IsDPMorphism γ ε (FreeRelativeUniversal.lift R σ A J ε x hx).toRingHom := by |
| 50 | apply DividedPowers.IsDPMorphism.on_span γ ε |
| 51 | (f := (FreeRelativeUniversal.lift R σ A J ε x hx).toRingHom) (S := Multivariable.DividedPowers.MultivariableDividedPowers.generators R σ I) rfl |
| 52 | · intro a ha |
| 53 | rcases ha with ⟨a, rfl⟩ | ⟨⟨n, i⟩, rfl⟩ |
| 54 | · change FreeRelativeUniversal.lift R σ A J ε x hx (algebraMap R G a) ∈ J |
| 55 | rw [AlgHom.commutes] |
| 56 | exact hbase.ideal_comp (Ideal.mem_map_of_mem _ a.property) |
| 57 | · change FreeRelativeUniversal.lift R σ A J ε x hx (Multivariable.DividedAlgebra.MultivariableDividedAlgebra.generator R σ (n + 1) i) ∈ J |
| 58 | rw [lift_generator] |
| 59 | exact ε.dpow_mem (Nat.succ_ne_zero n) (hx i) |
| 60 | · intro n a ha |
| 61 | rcases ha with ⟨a, rfl⟩ | ⟨⟨m, i⟩, rfl⟩ |
| 62 | · have heq := (Powers.FreeRelativePowers.base_isDPMorphism R σ I δ).dpow_comp |
| 63 | (n := n) a a.property |
| 64 | change FreeRelativeUniversal.lift R σ A J ε x hx ((γ).dpow n (algebraMap R G a)) = |
| 65 | ε.dpow n (FreeRelativeUniversal.lift R σ A J ε x hx (algebraMap R G a)) |
| 66 | rw [heq, AlgHom.commutes, AlgHom.commutes] |
| 67 | exact (hbase.dpow_comp a a.property).symm |
| 68 | · change FreeRelativeUniversal.lift R σ A J ε x hx ((γ).dpow n (Multivariable.DividedAlgebra.MultivariableDividedAlgebra.generator R σ (m + 1) i)) = |
| 69 | ε.dpow n (FreeRelativeUniversal.lift R σ A J ε x hx (Multivariable.DividedAlgebra.MultivariableDividedAlgebra.generator R σ (m + 1) i)) |
| 70 | rw [Powers.FreeRelativePowers.generator_dpow, map_smul, lift_generator, lift_generator, |
| 71 | ε.dpow_comp (Nat.succ_ne_zero m) (hx i), Nat.cast_smul_eq_nsmul, nsmul_eq_mul] |
| 72 | |
| 73 | theorem lift_unique (g : G →ₐ[R] A) (hg : DividedPowers.IsDPMorphism γ ε g.toRingHom) |
| 74 | (hX : ∀ i, g (Multivariable.DividedAlgebra.MultivariableDividedAlgebra.generator R σ 1 i) = x i) : g = FreeRelativeUniversal.lift R σ A J ε x hx := by |
| 75 | classical |
| 76 | have hgen (n : ℕ) (i : σ) : g (Multivariable.DividedAlgebra.MultivariableDividedAlgebra.generator R σ n i) = FreeRelativeUniversal.lift R σ A J ε x hx (Multivariable.DividedAlgebra.MultivariableDividedAlgebra.generator R σ n i) := by |
| 77 | rw [← Powers.FreeRelativePowers.coordinate_dpow R σ I δ n i] |
| 78 | have hgi : g ((γ).dpow n (Multivariable.DividedAlgebra.MultivariableDividedAlgebra.generator R σ 1 i)) = ε.dpow n (g (Multivariable.DividedAlgebra.MultivariableDividedAlgebra.generator R σ 1 i)) := |
| 79 | hg.map_dpow (Multivariable.DividedPowers.MultivariableDividedPowers.positive_generator_mem R σ I i 1 one_ne_zero) |
| 80 | rw [hgi, hX, Powers.FreeRelativePowers.coordinate_dpow, lift_generator] |
| 81 | apply AlgHom.ext |
| 82 | intro a |
| 83 | obtain ⟨f, rfl⟩ := Multivariable.DividedAlgebra.MultivariableDividedAlgebra.fromCoefficients_surjective R σ a |
| 84 | induction f using Finsupp.induction_linear with |
| 85 | | zero => simp |
| 86 | | add f g hf hg => simp only [map_add, hf, hg] |
| 87 | | single d a => |
| 88 | rw [Multivariable.DividedAlgebra.MultivariableDividedAlgebra.fromCoefficients_single, map_smul, map_smul] |
| 89 | congr 1 |
| 90 | change g (d.prod (fun i n => Multivariable.DividedAlgebra.MultivariableDividedAlgebra.generator R σ n i)) = |
| 91 | FreeRelativeUniversal.lift R σ A J ε x hx (d.prod (fun i n => Multivariable.DividedAlgebra.MultivariableDividedAlgebra.generator R σ n i)) |
| 92 | simp only [Finsupp.prod, map_prod, hgen] |
| 93 | |
| 94 | include hbase hx in |
| 95 | theorem existsUnique_lift : ∃! g : G →ₐ[R] A, |
| 96 | DividedPowers.IsDPMorphism γ ε g.toRingHom ∧ ∀ i, g (Multivariable.DividedAlgebra.MultivariableDividedAlgebra.generator R σ 1 i) = x i := by |
| 97 | refine ⟨FreeRelativeUniversal.lift R σ A J ε x hx, ⟨lift_isDPMorphism R σ I δ A J ε hbase x hx, |
| 98 | lift_coordinate R σ A J ε x hx⟩, ?_⟩ |
| 99 | intro g hg |
| 100 | exact lift_unique R σ I δ A J ε x hx g hg.1 hg.2 |
| 101 | |
| 102 | end |
| 103 | |
| 104 | end OAI.AlgebraicGeometry.Crystalline.Cohomology.FreeRelative.Universal.FreeRelativeUniversal |