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.Isogenies.NeighborCounting.FiniteDescent |
| 2 | import OAI.AlgebraicGeometry.AbelianScheme.IsogenyQuotient.Intrinsic.Action |
| 3 | import OAI.AlgebraicGeometry.AbelianScheme.IsogenyQuotient.Markings |
| 4 | |
| 5 | /-! # Modeled Quotient -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.Isogenies.NeighborCounting.Intrinsic.ModeledQuotient.Lifts |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! The proved FiniteDescent theorem constructs the actual native quotient over |
| 12 | an arbitrary base, including the non-etale integral q-primary kernels. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 15 | open scoped _root_.CategoryTheory.MonObj _root_.CategoryTheory.Obj |
| 16 | |
| 17 | universe u v |
| 18 | |
| 19 | variable {S : Scheme.{u}} {g : ℕ} (A : AbelianModuli.HilbertConstruction.Abelian.Schemes.AbelianScheme g S) (P : Over S) |
| 20 | (F : AbelianScheme.TorsionQuotient.SubgroupFunctor.RelativeSubgroup A.scheme P) (R : F.Model) (n : ℕ) |
| 21 | |
| 22 | structure NativeModeledQuotient where |
| 23 | target : AbelianModuli.HilbertConstruction.Abelian.Schemes.AbelianScheme g P.left |
| 24 | isogeny : AbelianModuli.HilbertConstruction.Abelian.Schemes.AbelianScheme.Isogeny (A.pullback P.hom) target |
| 25 | finitePresentation : LocallyOfFinitePresentation isogeny.hom.left |
| 26 | complement : target.scheme ⟶ (A.pullback P.hom).scheme |
| 27 | complementGroup : IsMonHom complement |
| 28 | projection_complement : isogeny.hom ≫ complement = (𝟙 (A.pullback P.hom).scheme) ^ n |
| 29 | complement_projection : complement ≫ isogeny.hom = (𝟙 target.scheme) ^ n |
| 30 | kernel : ∀ (T : Over P.left) (a : T ⟶ (A.pullback P.hom).scheme), |
| 31 | a ≫ isogeny.hom = 1 ↔ ∃! h : T ⟶ (AbelianScheme.IsogenyQuotient.Subgroup.Construction.subgroupGroupScheme F R).X, |
| 32 | h ≫ AbelianScheme.IsogenyQuotient.Intrinsic.Stability.Construction.nativeSubgroupInclusion A P F R = a |
| 33 | universal : AbelianScheme.IsogenyQuotient.Descent.Construction.QuotientUniversalProperty (AbelianScheme.IsogenyQuotient.Intrinsic.Stability.Construction.nativeSubgroupInclusion A P F R) isogeny.hom |
| 34 | |
| 35 | attribute [instance] NativeModeledQuotient.finitePresentation NativeModeledQuotient.complementGroup |
| 36 | |
| 37 | def constructNativeModeledQuotient (hk : F.KilledBy n) : NativeModeledQuotient A P F R n := |
| 38 | Classical.choice (by |
| 39 | let A0 := AbelianScheme.IsogenyQuotient.PELAction.Construction.abelianSchemeForgetDimension A |
| 40 | obtain ⟨B0, f0, g0, hg0, hfg0, hgf0, hker0, hUP0⟩ := |
| 41 | AbelianScheme.IsogenyQuotient.IsogenyComplement.Construction.quotient_isogeny_and_complement_of_FiniteDescent A0 P F R n hk FiniteDescent.Lifts.verified_FiniteDescentInput |
| 42 | have : IsMonHom g0 := hg0 |
| 43 | have : IsMonHom f0.hom := f0.isMonHom |
| 44 | have : IsFinite f0.hom.left := f0.finite |
| 45 | have : Flat f0.hom.left := f0.flat |
| 46 | have : Surjective f0.hom.left := f0.surjective |
| 47 | have : LocallyOfFinitePresentation f0.hom.left := f0.finitePresentation |
| 48 | let e : (AbelianScheme.IsogenyQuotient.IsogenyComplement.Construction.baseChangedAbelianScheme A0 P).toOver ≅ (A.pullback P.hom).scheme := |
| 49 | AbelianScheme.IsogenyQuotient.AmbientComparison.Construction.ambientPullbackIso P A |
| 50 | have : IsMonHom e.hom := AbelianScheme.IsogenyQuotient.AmbientComparison.Construction.ambientPullbackIso_isMonHom P A |
| 51 | have : IsMonHom e.inv := inferInstance |
| 52 | have : IsIso e.inv.left := (Over.forget P.left).map_isIso e.inv |
| 53 | let fraw : (A.pullback P.hom).scheme ⟶ B0.toOver := e.inv ≫ f0.hom |
| 54 | have hrawGroup : IsMonHom fraw := inferInstanceAs (IsMonHom (e.inv ≫ f0.hom)) |
| 55 | have hrawFinite : IsFinite fraw.left := inferInstanceAs (IsFinite (e.inv.left ≫ f0.hom.left)) |
| 56 | have hrawFlat : Flat fraw.left := inferInstanceAs (Flat (e.inv.left ≫ f0.hom.left)) |
| 57 | have hrawSurjective : Surjective fraw.left := inferInstanceAs (Surjective (e.inv.left ≫ f0.hom.left)) |
| 58 | have : LocallyOfFinitePresentation fraw.left := |
| 59 | inferInstanceAs (LocallyOfFinitePresentation (e.inv.left ≫ f0.hom.left)) |
| 60 | let B := AbelianScheme.IsogenyQuotient.Dimension.Construction.abelianQuotientWithDimension (A.pullback P.hom) B0 fraw |
| 61 | let f : AbelianModuli.HilbertConstruction.Abelian.Schemes.AbelianScheme.Isogeny (A.pullback P.hom) B := { |
| 62 | hom := fraw |
| 63 | preservesGroup := hrawGroup |
| 64 | finite := hrawFinite |
| 65 | flat := hrawFlat |
| 66 | surjective := hrawSurjective } |
| 67 | let c : B.scheme ⟶ (A.pullback P.hom).scheme := g0 ≫ e.hom |
| 68 | have hc : IsMonHom c := inferInstanceAs (IsMonHom (g0 ≫ e.hom)) |
| 69 | refine ⟨⟨B, f, inferInstanceAs (LocallyOfFinitePresentation fraw.left), c, hc, ?_, ?_, ?_, ?_⟩⟩ |
| 70 | · change (e.inv ≫ f0.hom) ≫ (g0 ≫ e.hom) = _ |
| 71 | rw [Category.assoc, ← Category.assoc f0.hom, hfg0, |
| 72 | MonObj.pow_comp, Category.id_comp, MonObj.comp_pow, e.inv_hom_id] |
| 73 | · change (g0 ≫ e.hom) ≫ (e.inv ≫ f0.hom) = _ |
| 74 | rw [Category.assoc, e.hom_inv_id_assoc, hgf0] |
| 75 | rfl |
| 76 | · exact AbelianScheme.IsogenyQuotient.Intrinsic.RelativeQuotient.Construction.kernel_property_precompose_iso e (AbelianScheme.IsogenyQuotient.Kernel.Inclusion.Construction.subgroupInclusion F R).hom.hom.hom f0.hom hker0 |
| 77 | · exact AbelianScheme.IsogenyQuotient.Intrinsic.RelativeQuotient.Construction.quotient_property_precompose_iso e (AbelianScheme.IsogenyQuotient.Kernel.Inclusion.Construction.subgroupInclusion F R).hom.hom.hom f0.hom hUP0) |
| 78 | |
| 79 | variable {A P F R n} (Q : NativeModeledQuotient A P F R n) |
| 80 | |
| 81 | def NativeModeledQuotient.action {O : Type v} [CommRing O] |
| 82 | (ρ : AbelianModuli.ReferenceFamily.ActionData.IntegralAction O A) (hstable : ∀ a, AbelianScheme.IsogenyQuotient.Action.Construction.RelativeSubgroupStable F (ρ.map a)) : |
| 83 | AbelianModuli.ReferenceFamily.ActionData.IntegralAction O Q.target := |
| 84 | (AbelianScheme.IsogenyQuotient.Intrinsic.Action.Construction.native_quotient_integral_action A P F R Q.target Q.isogeny Q.kernel Q.universal ρ hstable).choose |
| 85 | |
| 86 | theorem NativeModeledQuotient.action_projection {O : Type v} [CommRing O] |
| 87 | (ρ : AbelianModuli.ReferenceFamily.ActionData.IntegralAction O A) (hstable : ∀ a, AbelianScheme.IsogenyQuotient.Action.Construction.RelativeSubgroupStable F (ρ.map a)) (a : O) : |
| 88 | Q.isogeny.hom ≫ (Q.action ρ hstable).map a = (ρ.pullback P.hom).map a ≫ Q.isogeny.hom := |
| 89 | (AbelianScheme.IsogenyQuotient.Intrinsic.Action.Construction.native_quotient_integral_action A P F R Q.target Q.isogeny Q.kernel Q.universal ρ hstable).choose_spec.1 a |
| 90 | |
| 91 | def NativeModeledQuotient.level (N : ℕ) (hcop : n.Coprime N) |
| 92 | (level : (A.pullback P.hom).FullLevel N) : Q.target.FullLevel N := |
| 93 | AbelianScheme.IsogenyQuotient.Markings.Construction.transportFullLevel (A.pullback P.hom) Q.target Q.isogeny.hom Q.complement n N hcop |
| 94 | Q.projection_complement Q.complement_projection level |
| 95 | |
| 96 | theorem NativeModeledQuotient.level_projection (N : ℕ) (hcop : n.Coprime N) |
| 97 | (level : (A.pullback P.hom).FullLevel N) (T : Over P.left) |
| 98 | (c : LocallyConstant T.left (Multiplicative (Fin (2 * g) → ZMod N))) : |
| 99 | ((Q.level N hcop level).hom.app (.op T) c).val = |
| 100 | (level.hom.app (.op T) c).val ≫ Q.isogeny.hom := |
| 101 | AbelianScheme.IsogenyQuotient.Markings.Construction.transportFullLevel_apply (A.pullback P.hom) Q.target Q.isogeny.hom Q.complement n N hcop |
| 102 | Q.projection_complement Q.complement_projection level T c |
| 103 | |
| 104 | end |
| 105 | |
| 106 | end OAI.AlgebraicGeometry.Isogenies.NeighborCounting.Intrinsic.ModeledQuotient.Lifts |