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.HilbertScheme.Presentations.Finite.FlatIsomorphismLocus |
| 2 | import Mathlib.AlgebraicGeometry.Morphisms.Proper |
| 3 | |
| 4 | /-! # Finite Flat Isomorphism Locus -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.Proper.FiniteFlatIsomorphismLocus |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Over a proper parameterized target, the condition that a finite flat |
| 11 | morphism becomes an isomorphism on the whole family is represented by an open. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 14 | |
| 15 | universe u |
| 16 | variable {X Y B : Scheme.{u}} (f : X ⟶ Y) (q : Y ⟶ B) |
| 17 | variable [IsFinite f] [Flat f] [LocallyOfFinitePresentation f] [IsProper q] |
| 18 | |
| 19 | def properFiniteFlatIsomorphismOpen : B.Opens := |
| 20 | ⟨(q '' (Finite.FlatIsomorphismLocus.finiteFlatIsomorphismOpen f : Set Y)ᶜ)ᶜ, |
| 21 | (q.isClosedMap _ (Finite.FlatIsomorphismLocus.finiteFlatIsomorphismOpen f).isOpen.isClosed_compl).isOpen_compl⟩ |
| 22 | |
| 23 | theorem mem_properFiniteFlatIsomorphismOpen (b : B) : |
| 24 | b ∈ properFiniteFlatIsomorphismOpen f q ↔ ∀ y : Y, q y = b → f.finrank y = 1 := by |
| 25 | constructor |
| 26 | · intro h y hy |
| 27 | by_contra hn |
| 28 | exact h ⟨y, hn, hy⟩ |
| 29 | · intro h |
| 30 | rintro ⟨y, hy, he⟩ |
| 31 | exact hy (h y he) |
| 32 | |
| 33 | theorem properFiniteFlat_isIso_pullback_iff_range {T : Scheme.{u}} (g : T ⟶ B) : |
| 34 | IsIso (pullback.snd f (pullback.fst q g)) ↔ |
| 35 | Set.range g ⊆ (properFiniteFlatIsomorphismOpen f q : Set B) := by |
| 36 | rw [Finite.FlatIsomorphismLocus.finiteFlat_isIso_pullback_iff_range, Scheme.Pullback.range_fst] |
| 37 | constructor |
| 38 | · intro h b hb |
| 39 | obtain ⟨t, rfl⟩ := hb |
| 40 | apply (mem_properFiniteFlatIsomorphismOpen f q (g t)).mpr |
| 41 | intro y hy |
| 42 | exact h ⟨t, hy.symm⟩ |
| 43 | · intro h y hy |
| 44 | obtain ⟨t, ht⟩ := hy |
| 45 | exact (mem_properFiniteFlatIsomorphismOpen f q (g t)).mp (h ⟨t, rfl⟩) y ht.symm |
| 46 | |
| 47 | theorem properFiniteFlat_isIso_pullback_iff_unique_lift {T : Scheme.{u}} (g : T ⟶ B) : |
| 48 | IsIso (pullback.snd f (pullback.fst q g)) ↔ |
| 49 | ∃! h : T ⟶ (properFiniteFlatIsomorphismOpen f q).toScheme, |
| 50 | h ≫ (properFiniteFlatIsomorphismOpen f q).ι = g := by |
| 51 | rw [properFiniteFlat_isIso_pullback_iff_range] |
| 52 | constructor |
| 53 | · intro h |
| 54 | have hr : Set.range g ⊆ Set.range (properFiniteFlatIsomorphismOpen f q).ι := by |
| 55 | rw [Scheme.Opens.range_ι] |
| 56 | exact h |
| 57 | let k := IsOpenImmersion.lift (properFiniteFlatIsomorphismOpen f q).ι g hr |
| 58 | have hk : k ≫ (properFiniteFlatIsomorphismOpen f q).ι = g := IsOpenImmersion.lift_fac _ _ _ |
| 59 | exact ⟨k, hk, fun l hl => |
| 60 | (cancel_mono (properFiniteFlatIsomorphismOpen f q).ι).mp (hl.trans hk.symm)⟩ |
| 61 | · rintro ⟨h, hh, _⟩ b ⟨t, rfl⟩ |
| 62 | rw [← hh] |
| 63 | exact (h t).property |
| 64 | |
| 65 | end |
| 66 | |
| 67 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.Proper.FiniteFlatIsomorphismLocus |