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.OpenImmersion |
| 2 | import Mathlib.AlgebraicGeometry.Restrict |
| 3 | import Mathlib.CategoryTheory.Subfunctor.Basic |
| 4 | |
| 5 | /-! # Open Unit Locus -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.OpenUnitLocus |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! |
| 12 | The unit locus of a global section is represented by its principal open. |
| 13 | This provides the geometric open domains for Grassmannian chart transitions. |
| 14 | -/ |
| 15 | |
| 16 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.AlgebraicGeometry.Scheme |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | theorem isUnit_iff_basicOpen_eq_top (X : Scheme.{u}) (s : Γ(X, ⊤)) : |
| 21 | IsUnit s ↔ X.basicOpen s = ⊤ := by |
| 22 | constructor |
| 23 | · exact X.basicOpen_of_isUnit |
| 24 | · intro h |
| 25 | apply X.toRingedSpace.isUnit_of_isUnit_germ ⊤ s |
| 26 | intro x hx |
| 27 | apply (Scheme.mem_basicOpen X s x hx).mp |
| 28 | rw [h] |
| 29 | trivial |
| 30 | |
| 31 | theorem isUnit_appTop_iff_range_subset {T X : Scheme.{u}} |
| 32 | (f : T ⟶ X) (s : Γ(X, ⊤)) : |
| 33 | IsUnit (f.appTop s) ↔ Set.range f ⊆ (X.basicOpen s : Set X) := by |
| 34 | rw [isUnit_iff_basicOpen_eq_top, ← Scheme.preimage_basicOpen_top] |
| 35 | constructor |
| 36 | · intro h x hx |
| 37 | obtain ⟨t, rfl⟩ := hx |
| 38 | change t ∈ f ⁻¹ᵁ X.basicOpen s |
| 39 | rw [h] |
| 40 | trivial |
| 41 | · intro h |
| 42 | apply top_unique |
| 43 | intro t _ |
| 44 | exact h ⟨t, rfl⟩ |
| 45 | |
| 46 | /-- The condition that a section becomes invertible after pullback. -/ |
| 47 | def unitSubfunctor (X : Scheme.{u}) (s : Γ(X, ⊤)) : Subfunctor (yoneda.obj X) where |
| 48 | obj T := {f | IsUnit (f.appTop s)} |
| 49 | map a f hf := by |
| 50 | change IsUnit ((a.unop ≫ f).appTop s) |
| 51 | exact hf.map a.unop.appTop.hom |
| 52 | |
| 53 | /-- Principal opens represent invertibility conditions over every test scheme. -/ |
| 54 | theorem unit_locus_representable (X : Scheme.{u}) (s : Γ(X, ⊤)) : |
| 55 | ∃ (U : Scheme.{u}) (j : U ⟶ X), IsOpenImmersion j ∧ |
| 56 | ∃ e : yoneda.obj U ≅ (unitSubfunctor X s).toFunctor, |
| 57 | e.hom ≫ (unitSubfunctor X s).ι = yoneda.map j := by |
| 58 | let U : X.Opens := X.basicOpen s |
| 59 | let j : U.toScheme ⟶ X := U.ι |
| 60 | have hj : IsUnit (j.appTop s) := by |
| 61 | apply (isUnit_appTop_iff_range_subset j s).mpr |
| 62 | change Set.range U.ι ⊆ (U : Set X) |
| 63 | rw [Scheme.Opens.range_ι] |
| 64 | let t : yoneda.obj U.toScheme ⟶ (unitSubfunctor X s).toFunctor := |
| 65 | { app := fun T => ↾fun y => ⟨y ≫ j, hj.map y.appTop.hom⟩ |
| 66 | naturality := by |
| 67 | intro T V a |
| 68 | apply ConcreteCategory.hom_ext |
| 69 | intro y |
| 70 | apply Subtype.ext |
| 71 | exact Category.assoc _ _ _ } |
| 72 | have : IsIso t := by |
| 73 | apply (NatTrans.isIso_iff_isIso_app t).mpr |
| 74 | intro T |
| 75 | apply (isIso_iff_bijective (t.app T)).mpr |
| 76 | constructor |
| 77 | · intro y z h |
| 78 | apply (cancel_mono j).mp |
| 79 | exact congrArg Subtype.val h |
| 80 | · intro x |
| 81 | let f : T.unop ⟶ X := x.val |
| 82 | have hx : Set.range f ⊆ Set.range j := by |
| 83 | change Set.range f ⊆ Set.range U.ι |
| 84 | rw [Scheme.Opens.range_ι] |
| 85 | exact (isUnit_appTop_iff_range_subset f s).mp x.property |
| 86 | exact ⟨IsOpenImmersion.lift j f hx, |
| 87 | Subtype.ext (IsOpenImmersion.lift_fac j f hx)⟩ |
| 88 | exact ⟨U.toScheme, j, inferInstance, asIso t, rfl⟩ |
| 89 | |
| 90 | end |
| 91 | |
| 92 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.OpenUnitLocus |