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.DualCoordinateConormalBasis |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.ConormalKoszulPurity |
| 3 | |
| 4 | /-! # Ring Transported Conormal Basis -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.RingTransportedConormalBasis |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! A ring isomorphism transports generators with dual derivations to |
| 11 | a matching basis of the actual conormal module. Restricting derivations |
| 12 | to the integers is sufficient for this basis certificate. -/ |
| 13 | |
| 14 | set_option backward.isDefEq.respectTransparency false |
| 15 | set_option backward.isDefEq.respectTransparency.types false |
| 16 | |
| 17 | universe u v w |
| 18 | |
| 19 | variable {k : Type u} {R : Type v} {S : Type w} |
| 20 | [CommRing k] [CommRing R] [CommRing S] [Algebra k S] |
| 21 | (e : R ≃+* S) |
| 22 | |
| 23 | def derivation (D : Derivation k S S) : Derivation ℤ R R where |
| 24 | toLinearMap := |
| 25 | (e.symm.toAddMonoidHom.comp (D.toLinearMap.toAddMonoidHom.comp e.toAddMonoidHom)).toIntLinearMap |
| 26 | map_one_eq_zero' := by |
| 27 | change e.symm (D (e 1)) = 0 |
| 28 | simp only [map_one, Derivation.map_one_eq_zero, map_zero] |
| 29 | leibniz' a b := by |
| 30 | change e.symm (D (e (a * b))) = a * e.symm (D (e b)) + b * e.symm (D (e a)) |
| 31 | simp only [map_mul, Derivation.leibniz, smul_eq_mul, map_add, RingEquiv.symm_apply_apply] |
| 32 | |
| 33 | @[simp] |
| 34 | theorem derivation_apply (D : Derivation k S S) (x : R) : derivation e D x = e.symm (D (e x)) := rfl |
| 35 | |
| 36 | variable {n : ℕ} (I : Ideal R) (z : Fin n → S) (D : Fin n → Derivation k S S) |
| 37 | (hD : ∀ i j, D i (z j) = if i = j then 1 else 0) |
| 38 | (hI : I.map e.toRingHom = Ideal.span (Set.range z)) |
| 39 | |
| 40 | include hI in |
| 41 | theorem generates : Ideal.span (Set.range (fun i => e.symm (z i))) = I := by |
| 42 | have h := congrArg (fun J : Ideal S => J.map e.symm.toRingHom) hI |
| 43 | have he : e.symm.toRingHom.comp e.toRingHom = RingHom.id R := by |
| 44 | ext x |
| 45 | exact e.symm_apply_apply x |
| 46 | rw [Ideal.map_map, he, Ideal.map_id, Ideal.map_span, ← Set.range_comp] at h |
| 47 | simpa only [Function.comp_def, RingEquiv.toRingHom_eq_coe, |
| 48 | RingEquiv.coe_toRingHom] using h.symm |
| 49 | |
| 50 | def vectors (i : Fin n) : I := |
| 51 | ⟨e.symm (z i), generates e I z hI ▸ Ideal.subset_span (Set.mem_range_self i)⟩ |
| 52 | |
| 53 | include hD hI in |
| 54 | theorem coordinates (i j : Fin n) : |
| 55 | derivation e (D i) (vectors e I z hI j).val = if i = j then 1 else 0 := by |
| 56 | change e.symm (D i (e (e.symm (z j)))) = _ |
| 57 | rw [RingEquiv.apply_symm_apply, hD] |
| 58 | split_ifs <;> simp only [map_one, map_zero] |
| 59 | |
| 60 | def basis : Module.Basis (Fin n) (R ⧸ I) I.Cotangent := |
| 61 | DualCoordinateConormalBasis.basis (k := ℤ) I (vectors e I z hI) |
| 62 | (fun i => derivation e (D i)) (coordinates e I z D hD hI) (generates e I z hI) |
| 63 | |
| 64 | theorem basis_apply (i : Fin n) : |
| 65 | basis e I z D hD hI i = I.toCotangent (vectors e I z hI i) := |
| 66 | DualCoordinateConormalBasis.basis_apply _ _ _ _ _ i |
| 67 | |
| 68 | end |
| 69 | |
| 70 | end OAI.NumberTheory.PadicHodge.IntegralComparison.RingTransportedConormalBasis |