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.PELModuli.IntegralModel.Reduced.OpenRepresentations |
| 2 | |
| 3 | /-! # Base Functor Representation -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.PELModuli.IntegralModel.Open.BaseFunctorRepresentation |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | section |
| 10 | |
| 11 | /-! Test schemes whose structural maps lie in an open base have canonical |
| 12 | factorizations, with an explicit equivalence of relative morphisms. -/ |
| 13 | |
| 14 | set_option backward.isDefEq.respectTransparency false |
| 15 | set_option backward.isDefEq.respectTransparency.types false |
| 16 | open _root_.CategoryTheory _root_.AlgebraicGeometry Opposite |
| 17 | |
| 18 | namespace OpenBaseTest |
| 19 | variable {S : Scheme.{0}} (U : S.Opens) (T : Over S) (hT : ∀ t : T.left, T.hom t ∈ U) |
| 20 | |
| 21 | def lift : T.left ⟶ U.toScheme := IsOpenImmersion.lift U.ι T.hom (by |
| 22 | rw [Scheme.Opens.range_ι] |
| 23 | rintro _ ⟨t, rfl⟩ |
| 24 | exact hT t) |
| 25 | |
| 26 | theorem lift_ι : OpenBaseTest.lift U T hT ≫ U.ι = T.hom := IsOpenImmersion.lift_fac _ _ _ |
| 27 | |
| 28 | def over : Over U.toScheme := Over.mk (OpenBaseTest.lift U T hT) |
| 29 | |
| 30 | def comparison : T ≅ (Over.map U.ι).obj (over U T hT) := |
| 31 | Over.isoMk (Iso.refl T.left) (by |
| 32 | change 𝟙 T.left ≫ (OpenBaseTest.lift U T hT ≫ U.ι) = T.hom |
| 33 | rw [Category.id_comp, lift_ι]) |
| 34 | |
| 35 | def homEquiv (Z : Over U.toScheme) : (T ⟶ (Over.map U.ι).obj Z) ≃ (over U T hT ⟶ Z) where |
| 36 | toFun f := Over.homMk f.left (by |
| 37 | apply (cancel_mono U.ι).mp |
| 38 | rw [Category.assoc] |
| 39 | exact f.w.trans (lift_ι U T hT).symm) |
| 40 | invFun f := Over.homMk f.left (by |
| 41 | change f.left ≫ (Z.hom ≫ U.ι) = T.hom |
| 42 | rw [← Category.assoc, f.w] |
| 43 | exact lift_ι U T hT) |
| 44 | left_inv f := by apply Over.OverMorphism.ext; rfl |
| 45 | right_inv f := by apply Over.OverMorphism.ext; rfl |
| 46 | |
| 47 | theorem homEquiv_comparison (Z : Over U.toScheme) (f : T ⟶ (Over.map U.ι).obj Z) : |
| 48 | (comparison U T hT).hom ≫ (Over.map U.ι).map (homEquiv U T hT Z f) = f := by |
| 49 | apply Over.OverMorphism.ext |
| 50 | exact Category.id_comp _ |
| 51 | |
| 52 | instance reduced [IsReduced T.left] : IsReduced (over U T hT).left := |
| 53 | inferInstanceAs (IsReduced T.left) |
| 54 | |
| 55 | end OpenBaseTest |
| 56 | |
| 57 | end |
| 58 | |
| 59 | /-! A representation over an open base gives a literal reduced local |
| 60 | representation of the original functor, on all tests mapping into that open. -/ |
| 61 | |
| 62 | set_option backward.isDefEq.respectTransparency false |
| 63 | set_option backward.isDefEq.respectTransparency.types false |
| 64 | open _root_.CategoryTheory _root_.AlgebraicGeometry Opposite |
| 65 | |
| 66 | variable {S : Scheme.{0}} (F : (Over S)ᵒᵖ ⥤ Type) (U : S.Opens) |
| 67 | |
| 68 | def reducedOpenRepresentationOfBase (Z : Over U.toScheme) [IsReduced Z.left] |
| 69 | (u : F.obj (op ((Over.map U.ι).obj Z))) |
| 70 | (h : ∀ (T : Over U.toScheme) [IsReduced T.left], Function.Bijective |
| 71 | (fun f : T ⟶ Z => F.map ((Over.map U.ι).map f).op u)) : Reduced.OpenRepresentations.ReducedOpenRepresentation F U where |
| 72 | space := (Over.map U.ι).obj Z |
| 73 | reduced := inferInstanceAs (IsReduced Z.left) |
| 74 | mapsTo z := (Z.hom z).property |
| 75 | sectionValue := u |
| 76 | classifies T _ hT := by |
| 77 | let e := OpenBaseTest.homEquiv U T hT Z |
| 78 | let q := OpenBaseTest.comparison U T hT |
| 79 | have hb := (ConcreteCategory.bijective_of_isIso (F.map q.hom.op)).comp |
| 80 | ((h (OpenBaseTest.over U T hT)).comp e.bijective) |
| 81 | convert hb using 1 |
| 82 | funext f |
| 83 | change F.map f.op u = F.map q.hom.op (F.map ((Over.map U.ι).map (e f)).op u) |
| 84 | rw [← F.map_comp_apply] |
| 85 | exact congrArg (fun a : T ⟶ (Over.map U.ι).obj Z => F.map a.op u) |
| 86 | (OpenBaseTest.homEquiv_comparison U T hT Z f).symm |
| 87 | |
| 88 | theorem representation_bijective_of_iso {C : Type*} [Category C] |
| 89 | {F G : Cᵒᵖ ⥤ Type} (e : F ≅ G) (Z : C) (u : F.obj (op Z)) (T : C) |
| 90 | (h : Function.Bijective (fun f : T ⟶ Z => F.map f.op u)) : |
| 91 | Function.Bijective (fun f : T ⟶ Z => G.map f.op (e.hom.app (op Z) u)) := by |
| 92 | have hb := (ConcreteCategory.bijective_of_isIso (e.hom.app (op T))).comp h |
| 93 | convert hb using 1 |
| 94 | funext f |
| 95 | exact (ConcreteCategory.congr_hom (e.hom.naturality f.op) u).symm |
| 96 | |
| 97 | end |
| 98 | |
| 99 | end OAI.AlgebraicGeometry.PELModuli.IntegralModel.Open.BaseFunctorRepresentation |