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.PeriodInvariants.RingSequenceCoverColimit |
| 2 | import OAI.NumberTheory.PadicHodge.PeriodInvariants.WeaklyEtaleAffineIff |
| 3 | import Mathlib.AlgebraicGeometry.AffineScheme |
| 4 | |
| 5 | /-! # Sequence Cover -/ |
| 6 | |
| 7 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Affine.SequenceCover |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! A sequence of affine, faithfully flat, weakly étale scheme maps has |
| 12 | an actual affine covering refinement with compatible projections. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry Opposite |
| 15 | |
| 16 | set_option backward.defeqAttrib.useBackward true |
| 17 | set_option backward.isDefEq.respectTransparency false |
| 18 | |
| 19 | universe u |
| 20 | variable (D : ℕᵒᵖ ⥤ Scheme.{u}) [∀ n, IsAffine (D.obj n)] |
| 21 | (hf : ∀ i j (h : i ≤ j), Flat (D.map (homOfLE h).op) ∧ |
| 22 | Surjective (D.map (homOfLE h).op)) |
| 23 | (hw : ∀ n, WeaklyEtale (D.map (homOfLE (Nat.zero_le n)).op)) |
| 24 | |
| 25 | def rings : ℕ ⥤ CommRingCat.{u} := D.rightOp ⋙ Scheme.Γ |
| 26 | |
| 27 | def point : Scheme.{u} := Spec (colimit (rings D)) |
| 28 | |
| 29 | def projection (n : ℕ) : point D ⟶ D.obj (op n) := |
| 30 | Spec.map (colimit.ι (rings D) n) ≫ (D.obj (op n)).isoSpec.inv |
| 31 | |
| 32 | theorem projection_comp (i j : ℕ) (h : i ≤ j) : |
| 33 | projection D j ≫ D.map (homOfLE h).op = projection D i := by |
| 34 | dsimp only [projection] |
| 35 | rw [Category.assoc, ← Scheme.isoSpec_inv_naturality, ← Category.assoc, ← Spec.map_comp] |
| 36 | have he := colimit.w (rings D) (homOfLE h) |
| 37 | exact congrArg (fun f => Spec.map f ≫ (D.obj (op i)).isoSpec.inv) he |
| 38 | |
| 39 | include hf in |
| 40 | theorem ring_faithfullyFlat (i j : ℕ) (h : i ≤ j) : |
| 41 | ((rings D).map (homOfLE h)).hom.FaithfullyFlat := by |
| 42 | change (D.map (homOfLE h).op).appTop.hom.FaithfullyFlat |
| 43 | exact (Flat.flat_and_surjective_iff_faithfullyFlat_of_isAffine _).mp (hf i j h) |
| 44 | |
| 45 | include hw in |
| 46 | theorem ring_weaklyEtale (n : ℕ) : |
| 47 | PeriodInvariants.WeaklyEtaleRingHom.Property ((rings D).map (homOfLE (Nat.zero_le n))).hom := by |
| 48 | apply (PeriodInvariants.WeaklyEtaleAffineIff.ringHom _ _ _).mp |
| 49 | change WeaklyEtale (Spec.map (D.map (homOfLE (Nat.zero_le n)).op).appTop) |
| 50 | exact (MorphismProperty.arrow_mk_iso_iff (P := @WeaklyEtale) |
| 51 | (arrowIsoSpecΓOfIsAffine (D.map (homOfLE (Nat.zero_le n)).op))).mp (hw n) |
| 52 | |
| 53 | include hf hw in |
| 54 | theorem projection_weaklyEtale : WeaklyEtale (projection D 0) := by |
| 55 | have : WeaklyEtale (Spec.map (colimit.ι (rings D) 0)) := |
| 56 | PeriodInvariants.WeaklyEtaleRingHom.specMap _ |
| 57 | (PeriodInvariants.RingSequenceCoverColimit.weaklyEtale (rings D) (ring_faithfullyFlat D hf) |
| 58 | (ring_weaklyEtale D hw)) |
| 59 | unfold projection |
| 60 | infer_instance |
| 61 | |
| 62 | include hf in |
| 63 | theorem projection_surjective : Surjective (projection D 0) := by |
| 64 | have : Surjective (Spec.map (colimit.ι (rings D) 0)) := |
| 65 | ((flat_and_surjective_SpecMap_iff _).mpr |
| 66 | (PeriodInvariants.RingSequenceCoverColimit.faithfullyFlat (rings D) (ring_faithfullyFlat D hf))).2 |
| 67 | unfold projection |
| 68 | infer_instance |
| 69 | |
| 70 | instance point_affine : IsAffine (point D) := inferInstanceAs (IsAffine (Spec _)) |
| 71 | |
| 72 | theorem projection_quasiCompact : QuasiCompact (projection D 0) := by infer_instance |
| 73 | |
| 74 | end |
| 75 | |
| 76 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Affine.SequenceCover |