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.AbelianModuli.ReferenceFamily.SchemeSplitting |
| 2 | import Mathlib.AlgebraicGeometry.Sites.Fpqc |
| 3 | import Mathlib.AlgebraicGeometry.Morphisms.FlatDescent |
| 4 | |
| 5 | /-! # Etale Descent Local -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.EtaleDescentLocal.EtaleDescent |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Effective descent of actual morphisms and isomorphisms through the |
| 12 | constructed etale covers. Compatibility is equality on the actual kernel |
| 13 | pair, rather than an unexplained descent predicate. -/ |
| 14 | |
| 15 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 16 | |
| 17 | variable {S S' : Scheme} (u : S' ⟶ S) |
| 18 | [Flat u] [Surjective u] [LocallyOfFinitePresentation u] |
| 19 | {X Y : Over S} |
| 20 | |
| 21 | /-- Forget the local base change of the target after a local morphism. -/ |
| 22 | def localUnderlyingMap (h : (Over.pullback u).obj X ⟶ (Over.pullback u).obj Y) : |
| 23 | (pullback X.hom u) ⟶ Y.left := |
| 24 | h.left ≫ pullback.fst Y.hom u |
| 25 | |
| 26 | def Compatible (h : (Over.pullback u).obj X ⟶ (Over.pullback u).obj Y) : Prop := |
| 27 | pullback.fst (pullback.fst X.hom u) (pullback.fst X.hom u) ≫ localUnderlyingMap u h = |
| 28 | pullback.snd (pullback.fst X.hom u) (pullback.fst X.hom u) ≫ localUnderlyingMap u h |
| 29 | |
| 30 | /-- An overlap-compatible local morphism descends uniquely, as a morphism |
| 31 | over the original base. -/ |
| 32 | theorem exists_unique_morphism |
| 33 | (h : (Over.pullback u).obj X ⟶ (Over.pullback u).obj Y) (hc : Compatible u h) : |
| 34 | ∃! q : X ⟶ Y, (Over.pullback u).map q = h := by |
| 35 | let π := pullback.fst X.hom u |
| 36 | have hcoeq : ∀ {W : Scheme} (a b : W ⟶ pullback X.hom u), a ≫ π = b ≫ π → |
| 37 | a ≫ localUnderlyingMap u h = b ≫ localUnderlyingMap u h := by |
| 38 | intro W a b hab |
| 39 | let l := pullback.lift a b hab |
| 40 | have hl := congrArg (fun k => l ≫ k) hc |
| 41 | simpa only [Compatible, localUnderlyingMap, l, π, Category.assoc, |
| 42 | pullback.lift_fst_assoc, pullback.lift_snd_assoc] using hl |
| 43 | let q := EffectiveEpi.desc π (localUnderlyingMap u h) hcoeq |
| 44 | have hq : π ≫ q = localUnderlyingMap u h := EffectiveEpi.fac _ _ _ |
| 45 | have hbase : q ≫ Y.hom = X.hom := by |
| 46 | apply (cancel_epi π).mp |
| 47 | rw [← Category.assoc, hq] |
| 48 | change (h.left ≫ pullback.fst Y.hom u) ≫ Y.hom = pullback.fst X.hom u ≫ X.hom |
| 49 | rw [Category.assoc, pullback.condition] |
| 50 | have hw : h.left ≫ pullback.snd Y.hom u = pullback.snd X.hom u := h.w |
| 51 | rw [← Category.assoc, hw, pullback.condition] |
| 52 | let q' : X ⟶ Y := Over.homMk q hbase |
| 53 | have hmap : (Over.pullback u).map q' = h := by |
| 54 | apply Over.OverMorphism.ext |
| 55 | apply pullback.hom_ext |
| 56 | · exact (pullback.lift_fst _ _ _).trans hq |
| 57 | · exact (pullback.lift_snd _ _ _).trans h.w.symm |
| 58 | refine ⟨q', hmap, ?_⟩ |
| 59 | intro r hr |
| 60 | exact (Over.pullback u).map_injective (hr.trans hmap.symm) |
| 61 | |
| 62 | /-- Compatible local isomorphisms descend effectively. The inverse is |
| 63 | descended as an actual morphism and the two inverse laws are proved by |
| 64 | faithfulness of pullback. -/ |
| 65 | theorem exists_unique_iso |
| 66 | (e : (Over.pullback u).obj X ≅ (Over.pullback u).obj Y) |
| 67 | (hh : Compatible u e.hom) (hi : Compatible u e.inv) : |
| 68 | ∃! q : X ≅ Y, (Over.pullback u).mapIso q = e := by |
| 69 | obtain ⟨f, hf, _⟩ := exists_unique_morphism u e.hom hh |
| 70 | obtain ⟨g, hg, _⟩ := exists_unique_morphism u e.inv hi |
| 71 | have hfg : f ≫ g = 𝟙 X := by |
| 72 | apply (Over.pullback u).map_injective |
| 73 | rw [(Over.pullback u).map_comp, hf, hg, (Over.pullback u).map_id, e.hom_inv_id] |
| 74 | have hgf : g ≫ f = 𝟙 Y := by |
| 75 | apply (Over.pullback u).map_injective |
| 76 | rw [(Over.pullback u).map_comp, hg, hf, (Over.pullback u).map_id, e.inv_hom_id] |
| 77 | let q : X ≅ Y := ⟨f, g, hfg, hgf⟩ |
| 78 | refine ⟨q, Iso.ext hf, ?_⟩ |
| 79 | intro r hr |
| 80 | apply Iso.ext |
| 81 | apply (Over.pullback u).map_injective |
| 82 | exact (congrArg Iso.hom hr).trans hf.symm |
| 83 | |
| 84 | end |
| 85 | |
| 86 | end OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.EtaleDescentLocal.EtaleDescent |