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 Mathlib.RingTheory.Etale.Kaehler |
| 2 | import OAI.AlgebraicGeometry.Resolution.Blowups.DifferentialIdealTransform |
| 3 | |
| 4 | /-! # Derivation -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.Resolution.Blowups.Etale.Derivation.Construction |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Extension of derivations across étale coordinate changes. -/ |
| 11 | |
| 12 | open TensorProduct |
| 13 | |
| 14 | variable {k R S : Type*} [CommRing k] [CommRing R] [CommRing S] |
| 15 | variable [Algebra k R] [Algebra k S] [Algebra R S] [IsScalarTower k R S] |
| 16 | variable [Algebra.FormallyEtale R S] |
| 17 | |
| 18 | /-- A derivation with values in the étale algebra extends to that algebra, |
| 19 | using the actual base-change isomorphism of Kähler differential modules. -/ |
| 20 | def extendEtaleDerivation (D : Derivation k R S) : Derivation k S S := |
| 21 | ((LinearMap.liftBaseChange S D.liftKaehlerDifferential).comp |
| 22 | (KaehlerDifferential.tensorKaehlerEquivOfFormallyEtale k R S).symm.toLinearMap).compDer |
| 23 | (KaehlerDifferential.D k S) |
| 24 | |
| 25 | /-- The extension agrees with the original derivation on base elements. -/ |
| 26 | theorem extendEtaleDerivation_algebraMap (D : Derivation k R S) (r : R) : |
| 27 | extendEtaleDerivation D (algebraMap R S r) = D r := by |
| 28 | change LinearMap.liftBaseChange S D.liftKaehlerDifferential |
| 29 | ((KaehlerDifferential.tensorKaehlerEquivOfFormallyEtale k R S).symm |
| 30 | (KaehlerDifferential.D k S (algebraMap R S r))) = D r |
| 31 | rw [KaehlerDifferential.tensorKaehlerEquivOfFormallyEtale_symm_D_algebraMap, |
| 32 | LinearMap.liftBaseChange_tmul, one_smul, Derivation.liftKaehlerDifferential_comp_D] |
| 33 | |
| 34 | /-- In particular, a derivation of the base ring extends after mapping its |
| 35 | values into the étale algebra. -/ |
| 36 | def extendEtaleRingDerivation (D : Derivation k R R) : Derivation k S S := |
| 37 | extendEtaleDerivation ((Algebra.linearMap R S).compDer D) |
| 38 | |
| 39 | theorem extendEtaleRingDerivation_algebraMap (D : Derivation k R R) (r : R) : |
| 40 | extendEtaleRingDerivation (S := S) D (algebraMap R S r) = algebraMap R S (D r) := |
| 41 | extendEtaleDerivation_algebraMap ((Algebra.linearMap R S).compDer D) r |
| 42 | |
| 43 | /-- A derivation on an étale algebra is determined by its restriction to |
| 44 | the original algebra. -/ |
| 45 | theorem etaleDerivation_ext (D E : Derivation k S S) |
| 46 | (h : ∀ r : R, D (algebraMap R S r) = E (algebraMap R S r)) : D = E := by |
| 47 | have hlin : D.liftKaehlerDifferential = E.liftKaehlerDifferential := by |
| 48 | apply (KaehlerDifferential.isBaseChange_of_formallyEtale k R S).algHom_ext' |
| 49 | apply Derivation.liftKaehlerDifferential_unique |
| 50 | apply Derivation.ext |
| 51 | intro r |
| 52 | change D.liftKaehlerDifferential |
| 53 | (KaehlerDifferential.map k k R S (KaehlerDifferential.D k R r)) = |
| 54 | E.liftKaehlerDifferential |
| 55 | (KaehlerDifferential.map k k R S (KaehlerDifferential.D k R r)) |
| 56 | rw [KaehlerDifferential.map_D, Derivation.liftKaehlerDifferential_comp_D, |
| 57 | Derivation.liftKaehlerDifferential_comp_D] |
| 58 | exact h r |
| 59 | apply Derivation.ext |
| 60 | intro s |
| 61 | rw [← Derivation.liftKaehlerDifferential_comp_D D s, |
| 62 | ← Derivation.liftKaehlerDifferential_comp_D E s, hlin] |
| 63 | |
| 64 | theorem existsUnique_etaleDerivation_extension (D : Derivation k R S) : |
| 65 | ∃! E : Derivation k S S, ∀ r : R, E (algebraMap R S r) = D r := by |
| 66 | refine ⟨extendEtaleDerivation D, extendEtaleDerivation_algebraMap D, ?_⟩ |
| 67 | intro E hE |
| 68 | apply etaleDerivation_ext (R := R) |
| 69 | intro r |
| 70 | rw [hE, extendEtaleDerivation_algebraMap] |
| 71 | |
| 72 | omit [Algebra k R] [Algebra k S] [IsScalarTower k R S] in |
| 73 | /-- First differential ideals map into the corresponding differential ideals |
| 74 | after an étale coordinate change. -/ |
| 75 | theorem firstDifferentialIdeal_map_le_of_etale (J : Ideal R) : |
| 76 | (DifferentialIdealTransform.Construction.firstDifferentialIdeal J).map (algebraMap R S) ≤ |
| 77 | DifferentialIdealTransform.Construction.firstDifferentialIdeal (J.map (algebraMap R S)) := by |
| 78 | rw [Ideal.map_le_iff_le_comap] |
| 79 | apply sup_le |
| 80 | · intro r hr |
| 81 | exact DifferentialIdealTransform.Construction.le_firstDifferentialIdeal _ (Ideal.mem_map_of_mem _ hr) |
| 82 | · apply Ideal.span_le.mpr |
| 83 | rintro r ⟨⟨D, p⟩, rfl⟩ |
| 84 | change algebraMap R S (D p.val) ∈ DifferentialIdealTransform.Construction.firstDifferentialIdeal (J.map (algebraMap R S)) |
| 85 | rw [← extendEtaleRingDerivation_algebraMap (k := ℤ) (S := S) D p.val] |
| 86 | exact DifferentialIdealTransform.Construction.derivation_mem_firstDifferentialIdeal _ (extendEtaleRingDerivation (S := S) D) |
| 87 | (Ideal.mem_map_of_mem _ p.property) |
| 88 | |
| 89 | omit [Algebra k R] [Algebra k S] [IsScalarTower k R S] in |
| 90 | /-- The differential equation used for persistence stays in the same-order |
| 91 | differential ideal after an étale coordinate change. -/ |
| 92 | theorem iteratedDifferentialIdeal_map_le_of_etale (J : Ideal R) (n : ℕ) : |
| 93 | (DifferentialIdealTransform.Construction.iteratedDifferentialIdeal J n).map (algebraMap R S) ≤ |
| 94 | DifferentialIdealTransform.Construction.iteratedDifferentialIdeal (J.map (algebraMap R S)) n := by |
| 95 | induction n generalizing J with |
| 96 | | zero => exact le_rfl |
| 97 | | succ n ih => |
| 98 | exact (ih (DifferentialIdealTransform.Construction.firstDifferentialIdeal J)).trans |
| 99 | (DifferentialIdealTransform.Construction.iteratedDifferentialIdeal_mono n (firstDifferentialIdeal_map_le_of_etale J)) |
| 100 | |
| 101 | end |
| 102 | |
| 103 | end OAI.AlgebraicGeometry.Resolution.Blowups.Etale.Derivation.Construction |