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.AbelianScheme.CartierDuality.FppfEpimorphisms |
| 2 | import OAI.AlgebraicGeometry.AbelianScheme.CartierDuality.SheafKernels |
| 3 | import Mathlib.CategoryTheory.Abelian.Exact |
| 4 | |
| 5 | /-! # Quotient Representability -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.AbelianScheme.CartierDuality |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! |
| 12 | # CartierDuality: native finite locally free quotients represent the actual fppf cokernel |
| 13 | -/ |
| 14 | |
| 15 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.CategoryTheory.Limits |
| 16 | open scoped _root_.CategoryTheory.MonObj _root_.CategoryTheory.Obj |
| 17 | |
| 18 | attribute [local instance] Over.cartesianMonoidalCategory |
| 19 | |
| 20 | universe u |
| 21 | |
| 22 | namespace QuotientRepresentability.Construction.Exactness |
| 23 | |
| 24 | /-- An epimorphism whose kernel is specified is its cokernel in an abelian category. -/ |
| 25 | def cokernelOfKernelEpi {C : Type*} [Category* C] [Abelian C] {X Y Z : C} |
| 26 | (f : X ⟶ Y) (g : Y ⟶ Z) (w : f ≫ g = 0) |
| 27 | (h : IsLimit (KernelFork.ofι f w)) [Epi g] : IsColimit (CokernelCofork.ofπ g w) := by |
| 28 | let K : ShortComplex C := ShortComplex.mk f g w |
| 29 | have he : K.Exact := K.exact_of_f_is_kernel h |
| 30 | exact he.gIsCokernel |
| 31 | |
| 32 | end QuotientRepresentability.Construction.Exactness |
| 33 | |
| 34 | variable {S : Scheme.{u}} {G H : Grp (Over S)} [IsCommMonObj G.X] [IsCommMonObj H.X] |
| 35 | {i : H ⟶ G} (D : IntrinsicQuotients.Construction.Schemes.NativeFiniteLocallyFreeQuotient i) |
| 36 | |
| 37 | /-- The actual represented sheaf morphism of the native quotient projection. -/ |
| 38 | def IntrinsicQuotients.Construction.Schemes.NativeFiniteLocallyFreeQuotient.sheafProjection : |
| 39 | CommutativeSheavesAb.Construction.Schemes.representedFppfAb S G ⟶ @CommutativeSheavesAb.Construction.Schemes.representedFppfAb S D.quotient D.commutative := |
| 40 | @RepresentedMorphisms.Construction.Schemes.representedFppfAbMap S G D.quotient inferInstance D.commutative D.projection |
| 41 | |
| 42 | omit [IsCommMonObj H.X] in |
| 43 | /-- The native quotient projection is an epimorphism of fppf sheaves. -/ |
| 44 | theorem IntrinsicQuotients.Construction.Schemes.NativeFiniteLocallyFreeQuotient.sheafProjection_epi : Epi D.sheafProjection := |
| 45 | @FppfEpimorphisms.Construction.Schemes.representedFppfAbMap_epi S G D.quotient inferInstance D.commutative D.projection |
| 46 | D.projectionFlat D.projectionSurjective D.projectionFinitelyPresented |
| 47 | |
| 48 | variable [Mono (RepresentedMorphisms.Construction.Schemes.representedFppfAbMap i)] |
| 49 | |
| 50 | /-- The subgroup inclusion is killed by the actual sheaf quotient projection. -/ |
| 51 | theorem IntrinsicQuotients.Construction.Schemes.NativeFiniteLocallyFreeQuotient.sheafProjection_zero : |
| 52 | RepresentedMorphisms.Construction.Schemes.representedFppfAbMap i ≫ D.sheafProjection = 0 := by |
| 53 | let : Mono i.hom.hom := RepresentedMorphisms.Construction.Schemes.representedFppfAbMap_mono_underlying i |
| 54 | apply (sheafToPresheaf (Scheme.fppfTopology.over S) CommGrpCat.{u + 1}).map_injective |
| 55 | apply NatTrans.ext |
| 56 | funext T |
| 57 | apply CommGrpCat.hom_ext |
| 58 | apply MonoidHom.ext |
| 59 | rintro ⟨h⟩ |
| 60 | change ULift.up (((h ≫ i.hom.hom) ≫ D.projection.hom.hom)) = |
| 61 | (ULift.up 1 : ULift.{u + 1} (T.unop ⟶ D.quotient.X)) |
| 62 | exact congrArg ULift.up (Quotients.FiniteDescent.Epi.Construction.subgroup_point_comp_eq_one i.hom.hom D.projection.hom.hom |
| 63 | D.kernel T.unop h) |
| 64 | |
| 65 | /-- The native subgroup represents the kernel of the quotient morphism |
| 66 | on the actual commutative fppf sheaves. -/ |
| 67 | def IntrinsicQuotients.Construction.Schemes.NativeFiniteLocallyFreeQuotient.sheafProjection_isKernel : |
| 68 | IsLimit (KernelFork.ofι (RepresentedMorphisms.Construction.Schemes.representedFppfAbMap i) D.sheafProjection_zero) := by |
| 69 | apply SheafKernels.Construction.Schemes.sheafKernelIsLimitOfPoints |
| 70 | intro T x hx |
| 71 | obtain ⟨x⟩ := x |
| 72 | have hx' : x ≫ D.projection.hom.hom = 1 := congrArg ULift.down hx |
| 73 | obtain ⟨h, hh, _⟩ := (D.kernel T x).mp hx' |
| 74 | exact ⟨ULift.up h, (RepresentedMorphisms.Construction.Schemes.representedFppfAbMap_apply i T h).trans (congrArg ULift.up hh)⟩ |
| 75 | |
| 76 | /-- The native finite locally free quotient is the actual categorical |
| 77 | cokernel of its subgroup inclusion in commutative fppf sheaves. -/ |
| 78 | def IntrinsicQuotients.Construction.Schemes.NativeFiniteLocallyFreeQuotient.sheafProjection_isCokernel : |
| 79 | IsColimit (CokernelCofork.ofπ D.sheafProjection D.sheafProjection_zero) := by |
| 80 | let : Epi D.sheafProjection := D.sheafProjection_epi |
| 81 | exact @QuotientRepresentability.Construction.Exactness.cokernelOfKernelEpi (CommutativeSheavesAb.Construction.Schemes.FppfAb S) inferInstance (SheafExactness.Construction.Schemes.fppfAbAbelian S) |
| 82 | _ _ _ (RepresentedMorphisms.Construction.Schemes.representedFppfAbMap i) D.sheafProjection D.sheafProjection_zero |
| 83 | D.sheafProjection_isKernel inferInstance |
| 84 | |
| 85 | /-- The actual fppf sheaf cokernel is represented by the constructed |
| 86 | native quotient group scheme. -/ |
| 87 | def IntrinsicQuotients.Construction.Schemes.NativeFiniteLocallyFreeQuotient.sheafCokernelIso : |
| 88 | cokernel (RepresentedMorphisms.Construction.Schemes.representedFppfAbMap i) ≅ @CommutativeSheavesAb.Construction.Schemes.representedFppfAb S D.quotient D.commutative := |
| 89 | (colimit.isColimit (parallelPair (RepresentedMorphisms.Construction.Schemes.representedFppfAbMap i) 0)).coconePointUniqueUpToIso |
| 90 | D.sheafProjection_isCokernel |
| 91 | |
| 92 | include D in |
| 93 | /-- The actual represented-sheaf quotient is finite locally free representable. -/ |
| 94 | theorem IntrinsicQuotients.Construction.Schemes.NativeFiniteLocallyFreeQuotient.sheafCokernel_finiteLocallyFree : |
| 95 | SheafCharacterComparison.Construction.Schemes.FiniteLocallyFreeFppfAb S (cokernel (RepresentedMorphisms.Construction.Schemes.representedFppfAbMap i)) := |
| 96 | ⟨D.quotient, D.commutative, D.finite, D.flat, D.finitelyPresented, ⟨D.sheafCokernelIso.symm⟩⟩ |
| 97 | |
| 98 | omit [IsCommMonObj G.X] [IsCommMonObj H.X] [Mono (RepresentedMorphisms.Construction.Schemes.representedFppfAbMap i)] in |
| 99 | /-- The actual fppf quotient of a finite locally free commutative group |
| 100 | by a finite locally free subgroup is finite locally free representable. -/ |
| 101 | theorem QuotientRepresentability.Construction.Schemes.sheafQuotient_finiteLocallyFree {F : CommutativeSheavesAb.Construction.Schemes.FppfAb S} (K : Subobject F) |
| 102 | (hF : SheafCharacterComparison.Construction.Schemes.FiniteLocallyFreeFppfAb S F) (hK : SheafCharacterComparison.Construction.Schemes.FiniteLocallyFreeFppfAb S (K : CommutativeSheavesAb.Construction.Schemes.FppfAb S)) : |
| 103 | SheafCharacterComparison.Construction.Schemes.FiniteLocallyFreeFppfAb S (SheafQuotients.Construction.Schemes.sheafQuotient K) := by |
| 104 | obtain ⟨G, hcG, hfG, hflatG, hfpG, ⟨eG⟩⟩ := hF |
| 105 | obtain ⟨H, hcH, hfH, hflatH, hfpH, ⟨eH⟩⟩ := hK |
| 106 | let := hcG |
| 107 | let := hfG |
| 108 | let := hflatG |
| 109 | let := hfpG |
| 110 | let := hcH |
| 111 | let := hfH |
| 112 | let := hflatH |
| 113 | let := hfpH |
| 114 | let a : CommutativeSheavesAb.Construction.Schemes.representedFppfAb S H ⟶ CommutativeSheavesAb.Construction.Schemes.representedFppfAb S G := eH.hom ≫ (K.arrow ≫ eG.inv) |
| 115 | let j : H ⟶ G := (RepresentedMorphisms.Construction.Schemes.representedFppfAbHomEquiv H G).symm a |
| 116 | have hj : RepresentedMorphisms.Construction.Schemes.representedFppfAbMap j = a := (RepresentedMorphisms.Construction.Schemes.representedFppfAbHomEquiv H G).apply_symm_apply a |
| 117 | let : Mono (RepresentedMorphisms.Construction.Schemes.representedFppfAbMap j) := hj.symm ▸ inferInstanceAs (Mono a) |
| 118 | let : IsClosedImmersion j.hom.hom.left := RepresentedMorphisms.Construction.Schemes.representedFppfAbMap_closedImmersion j |
| 119 | let Q := IntrinsicQuotients.Construction.Schemes.nativeFiniteLocallyFreeQuotient G H j |
| 120 | have hQ := Q.sheafCokernel_finiteLocallyFree |
| 121 | exact hQ.of_iso (cokernelIsoOfEq hj ≪≫ cokernelEpiComp eH.hom (K.arrow ≫ eG.inv) ≪≫ |
| 122 | cokernelCompIsIso K.arrow eG.inv) |
| 123 | |
| 124 | end |
| 125 | |
| 126 | end OAI.AlgebraicGeometry.AbelianScheme.CartierDuality |