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.AlgebraicGeometry.Morphisms.Smooth |
| 2 | import Mathlib.RingTheory.DiscreteValuationRing.Basic |
| 3 | import Mathlib.RingTheory.Smooth.AdicCompletion |
| 4 | import Mathlib.RingTheory.LocalRing.ResidueField.Defs |
| 5 | |
| 6 | /-! # DVR Lifting -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.SmoothMorphisms.DVRLifting |
| 9 | |
| 10 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 11 | |
| 12 | universe u |
| 13 | |
| 14 | /-- The affine lifting step, using formal smoothness and adic completeness. -/ |
| 15 | theorem lift_ring_point |
| 16 | (R A : Type u) [CommRing R] [IsLocalRing R] [CommRing A] |
| 17 | [IsAdicComplete (IsLocalRing.maximalIdeal R) R] |
| 18 | (φ : R →+* A) (hφ : φ.Smooth) |
| 19 | (p : A →+* IsLocalRing.ResidueField R) |
| 20 | (hp : p.comp φ = IsLocalRing.residue R) : |
| 21 | ∃ q : A →+* R, q.comp φ = RingHom.id R ∧ |
| 22 | (IsLocalRing.residue R).comp q = p := by |
| 23 | let : Algebra R A := φ.toAlgebra |
| 24 | let : Algebra.Smooth R A := hφ |
| 25 | let p' : A →ₐ[R] R ⧸ IsLocalRing.maximalIdeal R := |
| 26 | { p with commutes' := fun r => RingHom.congr_fun hp r } |
| 27 | obtain ⟨q, hq⟩ := Algebra.FormallySmooth.exists_mkₐ_comp_eq_of_isAdicComplete p' |
| 28 | refine ⟨q.toRingHom, ?_, ?_⟩ |
| 29 | · ext r |
| 30 | exact q.commutes r |
| 31 | · exact congrArg AlgHom.toRingHom hq |
| 32 | |
| 33 | /-- Lifting for an affine smooth scheme. -/ |
| 34 | theorem lift_affine_point |
| 35 | (R : Type u) [CommRing R] [IsLocalRing R] |
| 36 | [IsAdicComplete (IsLocalRing.maximalIdeal R) R] |
| 37 | (A : CommRingCat.{u}) |
| 38 | (f : Spec A ⟶ Spec (CommRingCat.of R)) [Smooth f] |
| 39 | (x : Spec (CommRingCat.of (IsLocalRing.ResidueField R)) ⟶ Spec A) |
| 40 | (hx : x ≫ f = Spec.map (CommRingCat.ofHom (IsLocalRing.residue R))) : |
| 41 | ∃ s : Spec (CommRingCat.of R) ⟶ Spec A, |
| 42 | s ≫ f = 𝟙 (Spec (CommRingCat.of R)) ∧ |
| 43 | Spec.map (CommRingCat.ofHom (IsLocalRing.residue R)) ≫ s = x := by |
| 44 | obtain ⟨φ, rfl⟩ := Spec.map_surjective f |
| 45 | obtain ⟨p, rfl⟩ := Spec.map_surjective x |
| 46 | have hφ : φ.hom.Smooth := |
| 47 | (HasRingHomProperty.Spec_iff (P := @Smooth)).mp inferInstance |
| 48 | have hp : φ ≫ p = CommRingCat.ofHom (IsLocalRing.residue R) := |
| 49 | Spec.map_injective (by simpa only [Spec.map_comp] using hx) |
| 50 | obtain ⟨q, hq, hred⟩ := lift_ring_point R A φ.hom hφ p.hom |
| 51 | (congrArg CommRingCat.Hom.hom hp) |
| 52 | refine ⟨Spec.map (CommRingCat.ofHom q), ?_, ?_⟩ |
| 53 | · rw [← Spec.map_comp, Spec.map_eq_id] |
| 54 | exact CommRingCat.hom_ext hq |
| 55 | · rw [← Spec.map_comp] |
| 56 | exact congrArg Spec.map (CommRingCat.hom_ext hred) |
| 57 | |
| 58 | /-- DVRLifting: a rational point of the special fiber of a smooth scheme over |
| 59 | a complete DVR lifts to a section over the DVR. -/ |
| 60 | theorem lift_special_fiber_point |
| 61 | (R : Type u) [CommRing R] [IsDomain R] |
| 62 | [IsDiscreteValuationRing R] |
| 63 | [IsAdicComplete (IsLocalRing.maximalIdeal R) R] |
| 64 | (X : Scheme.{u}) |
| 65 | (f : X ⟶ Spec (CommRingCat.of R)) |
| 66 | [Smooth f] |
| 67 | (x : Spec (CommRingCat.of (IsLocalRing.ResidueField R)) ⟶ X) |
| 68 | (hx : x ≫ f = |
| 69 | Spec.map (CommRingCat.ofHom (IsLocalRing.residue R))) : |
| 70 | ∃ s : Spec (CommRingCat.of R) ⟶ X, |
| 71 | s ≫ f = 𝟙 (Spec (CommRingCat.of R)) ∧ |
| 72 | Spec.map (CommRingCat.ofHom (IsLocalRing.residue R)) ≫ s = x := by |
| 73 | obtain ⟨A, i, hi, y, hy⟩ := Scheme.exists_Spec_apply_eq (x default) |
| 74 | have hrange : Set.range x ⊆ Set.range i := by |
| 75 | rintro _ ⟨z, rfl⟩ |
| 76 | refine ⟨y, ?_⟩ |
| 77 | simpa only [Subsingleton.elim z default] using hy |
| 78 | let x' := IsOpenImmersion.lift i x hrange |
| 79 | have hx' : x' ≫ i = x := IsOpenImmersion.lift_fac i x hrange |
| 80 | have hxi : x' ≫ (i ≫ f) = |
| 81 | Spec.map (CommRingCat.ofHom (IsLocalRing.residue R)) := by |
| 82 | rw [← Category.assoc, hx', hx] |
| 83 | obtain ⟨s, hs, hred⟩ := lift_affine_point R A (i ≫ f) x' hxi |
| 84 | refine ⟨s ≫ i, ?_, ?_⟩ |
| 85 | · simpa only [Category.assoc] using hs |
| 86 | · rw [← Category.assoc, hred, hx'] |
| 87 | |
| 88 | end OAI.AlgebraicGeometry.SmoothMorphisms.DVRLifting |