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.AbelianScheme.TateComparison.GeometricExt |
| 2 | import Mathlib.AlgebraicGeometry.Geometrically.Reduced |
| 3 | import Mathlib.RingTheory.Unramified.Field |
| 4 | |
| 5 | /-! # Etale -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.AbelianScheme.TateComparison.Etale |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Reducedness and geometric-point lifting for the actual etale cover |
| 12 | used to descend the local trace maps. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 15 | |
| 16 | theorem etale_field_source_reduced {k : Type} [Field k] {Y : Scheme.{0}} |
| 17 | (p : Y ⟶ Spec (.of k)) [Etale p] : IsReduced Y := by |
| 18 | have hred (i : Y.affineCover.I₀) : IsReduced (Y.affineCover.X i) := by |
| 19 | let R := Γ(Y.affineCover.X i, ⊤) |
| 20 | let pi := Y.affineCover.f i ≫ p |
| 21 | have : Etale pi := inferInstanceAs (Etale (Y.affineCover.f i ≫ p)) |
| 22 | let α : k →+* R := pi.appTop.hom.comp (Scheme.ΓSpecIso (.of k)).inv.hom |
| 23 | have hi : Function.Surjective (Scheme.ΓSpecIso (.of k)).inv.hom := by |
| 24 | exact (ConcreteCategory.bijective_of_isIso (Scheme.ΓSpecIso (.of k)).inv).2 |
| 25 | have hα : α.FormallyUnramified := RingHom.FormallyUnramified.comp |
| 26 | (RingHom.FormallyUnramified.of_surjective hi) |
| 27 | (HasRingHomProperty.appTop (P := @FormallyUnramified) pi inferInstance) |
| 28 | let : Algebra k R := α.toAlgebra |
| 29 | have : Algebra.FormallyUnramified k R := hα |
| 30 | have hfinite : α.FiniteType := |
| 31 | (HasRingHomProperty.appTop (P := @LocallyOfFiniteType) pi inferInstance).comp |
| 32 | (RingHom.FiniteType.of_surjective _ hi) |
| 33 | have : Algebra.FiniteType k R := (RingHom.finiteType_algebraMap).mp hfinite |
| 34 | have : _root_.IsReduced R := Algebra.FormallyUnramified.isReduced_of_field k R |
| 35 | exact isReduced_of_isAffine_isReduced (Y.affineCover.X i) |
| 36 | let := hred |
| 37 | exact IsReduced.of_openCover Y Y.affineCover |
| 38 | |
| 39 | theorem etale_geometricallyReduced {X Y : Scheme.{0}} (p : X ⟶ Y) |
| 40 | [Etale p] : GeometricallyReduced p := by |
| 41 | constructor |
| 42 | intro k _ y Z fst snd hcart |
| 43 | have : Etale snd := MorphismProperty.of_isPullback hcart inferInstance |
| 44 | exact etale_field_source_reduced snd |
| 45 | |
| 46 | theorem etale_source_reduced {X Y : Scheme.{0}} (p : X ⟶ Y) |
| 47 | [Etale p] [IsReduced Y] [IsLocallyNoetherian Y] : IsReduced X := by |
| 48 | have := etale_geometricallyReduced p |
| 49 | exact GeometricallyReduced.isReduced_of_flat_of_isLocallyNoetherian p |
| 50 | |
| 51 | /-- Surjectivity and etaleness give a lift over the same algebraically |
| 52 | closed field, rather than requiring an unspecified field extension. -/ |
| 53 | theorem etale_surjective_geometric_lift {B : Scheme.{0}} {X Y : Over B} |
| 54 | (p : X ⟶ Y) [Etale p.left] [Surjective p.left] |
| 55 | {k : Type} [Field k] [IsAlgClosed k] (b : Spec (.of k) ⟶ B) (x : Over.mk b ⟶ Y) : |
| 56 | ∃ a : Over.mk b ⟶ X, a ≫ p = x := by |
| 57 | let s : pullback p.left x.left ⟶ Spec (.of k) := pullback.snd p.left x.left |
| 58 | have : Etale s := inferInstanceAs (Etale (pullback.snd p.left x.left)) |
| 59 | have : Surjective s := inferInstanceAs (Surjective (pullback.snd p.left x.left)) |
| 60 | have : JacobsonSpace (pullback p.left x.left : Scheme) := LocallyOfFiniteType.jacobsonSpace s |
| 61 | obtain ⟨z₀, _⟩ := s.surjective (default : Spec (.of k)) |
| 62 | obtain ⟨z, _, hz⟩ := nonempty_inter_closedPoints (Z := Set.univ) ⟨z₀, trivial⟩ |
| 63 | isOpen_univ.isLocallyClosed |
| 64 | let a₀ := pointOfClosedPoint s z hz |
| 65 | have ha : a₀ ≫ s = 𝟙 _ := pointOfClosedPoint_comp s z hz |
| 66 | let a : Over.mk b ⟶ X := Over.homMk (a₀ ≫ pullback.fst p.left x.left) (by |
| 67 | calc |
| 68 | _ = a₀ ≫ pullback.fst p.left x.left ≫ p.left ≫ Y.hom := by |
| 69 | rw [p.w] |
| 70 | simp only [Category.assoc] |
| 71 | _ = a₀ ≫ s ≫ x.left ≫ Y.hom := by |
| 72 | rw [← Category.assoc (pullback.fst p.left x.left), pullback.condition] |
| 73 | simp only [s, Category.assoc] |
| 74 | _ = b := by |
| 75 | rw [← Category.assoc a₀, ha, Category.id_comp, x.w] |
| 76 | rfl) |
| 77 | refine ⟨a, ?_⟩ |
| 78 | apply Over.OverMorphism.ext |
| 79 | change (a₀ ≫ pullback.fst p.left x.left) ≫ p.left = x.left |
| 80 | rw [Category.assoc, pullback.condition, ← Category.assoc, ha, Category.id_comp] |
| 81 | |
| 82 | end |
| 83 | |
| 84 | end OAI.AlgebraicGeometry.AbelianScheme.TateComparison.Etale |