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.FlatRank |
| 2 | import Mathlib.AlgebraicGeometry.OpenImmersion |
| 3 | |
| 4 | /-! # Flat Isomorphism Locus -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.Finite.FlatIsomorphismLocus |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! The rank-one open of a finite flat finitely presented morphism |
| 11 | represents its isomorphism condition under every scheme base change. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 14 | |
| 15 | universe u |
| 16 | variable {X Y : Scheme.{u}} (f : X ⟶ Y) |
| 17 | variable [IsFinite f] [Flat f] [LocallyOfFinitePresentation f] |
| 18 | |
| 19 | def finiteFlatIsomorphismOpen : Y.Opens := |
| 20 | ⟨{y | f.finrank y = 1}, f.isLocallyConstant_finrank.isOpen_fiber 1⟩ |
| 21 | |
| 22 | theorem finiteFlatIsomorphismOpen_isClopen : |
| 23 | IsClopen (finiteFlatIsomorphismOpen f : Set Y) := |
| 24 | f.isLocallyConstant_finrank.isClopen_fiber 1 |
| 25 | |
| 26 | theorem finiteFlat_isIso_pullback_iff_range {T : Scheme.{u}} (g : T ⟶ Y) : |
| 27 | IsIso (pullback.snd f g) ↔ Set.range g ⊆ (finiteFlatIsomorphismOpen f : Set Y) := by |
| 28 | rw [Scheme.Hom.isIso_iff_finrank_eq] |
| 29 | constructor |
| 30 | · intro h y hy |
| 31 | obtain ⟨t, rfl⟩ := hy |
| 32 | change f.finrank (g t) = 1 |
| 33 | rw [← Scheme.Hom.finrank_pullback_snd f g t] |
| 34 | exact congrFun h t |
| 35 | · intro h |
| 36 | funext t |
| 37 | change (pullback.snd f g).finrank t = 1 |
| 38 | rw [Scheme.Hom.finrank_pullback_snd] |
| 39 | exact h ⟨t, rfl⟩ |
| 40 | |
| 41 | theorem finiteFlat_isIso_pullback_iff_unique_lift {T : Scheme.{u}} (g : T ⟶ Y) : |
| 42 | IsIso (pullback.snd f g) ↔ |
| 43 | ∃! h : T ⟶ (finiteFlatIsomorphismOpen f).toScheme, |
| 44 | h ≫ (finiteFlatIsomorphismOpen f).ι = g := by |
| 45 | rw [finiteFlat_isIso_pullback_iff_range] |
| 46 | constructor |
| 47 | · intro h |
| 48 | have hr : Set.range g ⊆ Set.range (finiteFlatIsomorphismOpen f).ι := by |
| 49 | rw [Scheme.Opens.range_ι] |
| 50 | exact h |
| 51 | let k := IsOpenImmersion.lift (finiteFlatIsomorphismOpen f).ι g hr |
| 52 | have hk : k ≫ (finiteFlatIsomorphismOpen f).ι = g := IsOpenImmersion.lift_fac _ _ _ |
| 53 | exact ⟨k, hk, fun l hl => (cancel_mono (finiteFlatIsomorphismOpen f).ι).mp (hl.trans hk.symm)⟩ |
| 54 | · rintro ⟨h, hh, _⟩ y ⟨t, rfl⟩ |
| 55 | rw [← hh] |
| 56 | exact (h t).property |
| 57 | |
| 58 | end |
| 59 | |
| 60 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.Finite.FlatIsomorphismLocus |