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.FieldBaseChangeReduced |
| 2 | import OAI.AlgebraicGeometry.AbelianScheme.TateComparison.GeometricExt |
| 3 | import Mathlib.AlgebraicGeometry.Sites.Fpqc |
| 4 | |
| 5 | /-! # Field Geometric Descent -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.AbelianScheme.TateComparison.FieldGeometricDescent |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Effective descent across an arbitrary characteristic-zero field |
| 12 | extension from compatibility on actual geometric points. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 15 | |
| 16 | universe u |
| 17 | variable {k L : Type u} [Field k] [CharZero k] [Field L] |
| 18 | (p : Spec (.of L) ⟶ Spec (.of k)) (A B : Over (Spec (.of k))) |
| 19 | |
| 20 | abbrev fieldSource : Over (Spec (.of k)) := |
| 21 | Over.mk (pullback.fst A.hom p ≫ A.hom) |
| 22 | |
| 23 | def fieldSourceProjection : fieldSource p A ⟶ A := Over.homMk (pullback.fst A.hom p) rfl |
| 24 | |
| 25 | theorem fieldGeometricDescent [IsIntegral (pullback A.hom p)] [IsSeparated B.hom] |
| 26 | (ν : fieldSource p A ⟶ B) |
| 27 | (hν : ∀ (Ω : Type u) [Field Ω] [IsAlgClosed Ω] |
| 28 | (b : Spec (.of Ω) ⟶ Spec (.of k)) (x y : Over.mk b ⟶ fieldSource p A), |
| 29 | x ≫ fieldSourceProjection p A = y ≫ fieldSourceProjection p A → x ≫ ν = y ≫ ν) : |
| 30 | ∃! d : A ⟶ B, fieldSourceProjection p A ≫ d = ν := by |
| 31 | have : Flat p := by |
| 32 | obtain ⟨φ, rfl⟩ := Spec.map_surjective p |
| 33 | rw [Flat.SpecMap_iff] |
| 34 | exact RingHom.Flat.of_isField (Field.toIsField k) φ.hom |
| 35 | have : Surjective p := ⟨Function.surjective_to_subsingleton _⟩ |
| 36 | have : QuasiCompact p := ⟨fun _ _ _ => (Set.toFinite _).isCompact⟩ |
| 37 | let U := fieldSource p A |
| 38 | let π := fieldSourceProjection p A |
| 39 | have : IsIntegral U.left := inferInstanceAs (IsIntegral (pullback A.hom p)) |
| 40 | let R : Over (Spec (.of k)) := Over.mk (pullback.fst π.left π.left ≫ U.hom) |
| 41 | have : IsReduced (pullback (π.left ≫ A.hom) p) := FieldBaseChangeReduced.charZero_fieldBaseChange_reduced U.hom p |
| 42 | let e : R.left ≅ pullback (π.left ≫ A.hom) p := pullbackRightPullbackFstIso A.hom p π.left |
| 43 | have : IsReduced R.left := isReduced_of_isOpenImmersion e.hom |
| 44 | let r₁ : R ⟶ U := Over.homMk (pullback.fst π.left π.left) rfl |
| 45 | let r₂ : R ⟶ U := Over.homMk (pullback.snd π.left π.left) (by |
| 46 | change pullback.snd π.left π.left ≫ U.hom = pullback.fst π.left π.left ≫ U.hom |
| 47 | rw [← π.w, ← Category.assoc, ← Category.assoc, pullback.condition]) |
| 48 | have hr : r₁ ≫ π = r₂ ≫ π := Over.OverMorphism.ext pullback.condition |
| 49 | have hpair : r₁ ≫ ν = r₂ ≫ ν := by |
| 50 | apply GeometricExt.over_hom_ext_geometric |
| 51 | intro Ω _ _ b z |
| 52 | apply hν Ω b (z ≫ r₁) (z ≫ r₂) |
| 53 | exact (Category.assoc z r₁ π).trans |
| 54 | ((congrArg (fun a => z ≫ a) hr).trans (Category.assoc z r₂ π).symm) |
| 55 | have hc : ∀ {W : Scheme.{u}} (x y : W ⟶ U.left), x ≫ π.left = y ≫ π.left → |
| 56 | x ≫ ν.left = y ≫ ν.left := by |
| 57 | intro W x y hxy |
| 58 | let t := pullback.lift x y hxy |
| 59 | have hs : pullback.fst π.left π.left ≫ ν.left = pullback.snd π.left π.left ≫ ν.left := |
| 60 | congrArg Over.Hom.left hpair |
| 61 | have h := congrArg (fun a => t ≫ a) hs |
| 62 | simpa only [t, Category.assoc, pullback.lift_fst_assoc, |
| 63 | pullback.lift_snd_assoc] using h |
| 64 | have : Flat π.left := inferInstanceAs (Flat (pullback.fst A.hom p)) |
| 65 | have : Surjective π.left := inferInstanceAs (Surjective (pullback.fst A.hom p)) |
| 66 | have : QuasiCompact π.left := inferInstanceAs (QuasiCompact (pullback.fst A.hom p)) |
| 67 | let d₀ := EffectiveEpi.desc π.left ν.left hc |
| 68 | have hd : π.left ≫ d₀ = ν.left := EffectiveEpi.fac _ _ _ |
| 69 | have hb : d₀ ≫ B.hom = A.hom := by |
| 70 | apply (cancel_epi π.left).mp |
| 71 | rw [← Category.assoc, hd, ν.w, π.w] |
| 72 | let d : A ⟶ B := Over.homMk d₀ hb |
| 73 | refine ⟨d, Over.OverMorphism.ext hd, ?_⟩ |
| 74 | intro e he |
| 75 | apply Over.OverMorphism.ext |
| 76 | apply (cancel_epi π.left).mp |
| 77 | exact (congrArg Over.Hom.left he).trans hd.symm |
| 78 | |
| 79 | end |
| 80 | |
| 81 | end OAI.AlgebraicGeometry.AbelianScheme.TateComparison.FieldGeometricDescent |