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.AbelianModuli.HilbertConstruction.SourcePropertyOpenRecovery |
| 2 | import OAI.AlgebraicGeometry.Picard.ThetaConstruction.LocalGroupFiberUnramified |
| 3 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.UnramifiedFlatDescent |
| 4 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Smooth.FieldExtensionReflection |
| 5 | |
| 6 | /-! # Unramified Base Open -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Proper.UnramifiedBaseOpen |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! The unramified fibers of a proper morphism form an actual open base. |
| 13 | The criterion uses the original pullback and holds on every test scheme. -/ |
| 14 | |
| 15 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 16 | universe u |
| 17 | |
| 18 | local instance : IsZariskiLocalAtSource (@FormallyUnramified : MorphismProperty Scheme.{u}) := |
| 19 | @HasRingHomProperty.instIsZariskiLocalAtSource _ RingHom.FormallyUnramified inferInstance |
| 20 | |
| 21 | variable {X S : Scheme.{u}} (f : X ⟶ S) [IsProper f] |
| 22 | |
| 23 | def properUnramifiedBaseOpen : S.Opens := |
| 24 | SourcePropertyBaseOpen.properSourcePropertyBaseOpen (@FormallyUnramified) f |
| 25 | |
| 26 | theorem properUnramifiedBaseOpen_restrict : |
| 27 | FormallyUnramified (f ∣_ properUnramifiedBaseOpen f) := |
| 28 | SourcePropertyBaseOpen.properSourcePropertyBaseOpen_restrict (@FormallyUnramified) f |
| 29 | |
| 30 | theorem unramified_pullback_of_range_subset {T : Scheme.{u}} (b : T ⟶ S) |
| 31 | (hb : Set.range b ⊆ properUnramifiedBaseOpen f) : |
| 32 | FormallyUnramified (pullback.snd f b) := |
| 33 | SourcePropertyOpenRecovery.property_pullback_of_range_subset_properBaseOpen (@FormallyUnramified) f b hb |
| 34 | |
| 35 | theorem mem_properUnramifiedBaseOpen_of_residueFiber (s : S) |
| 36 | (h : FormallyUnramified (pullback.snd f (S.fromSpecResidueField s))) : |
| 37 | s ∈ properUnramifiedBaseOpen f := by |
| 38 | let := h |
| 39 | change s ∉ f '' (SourcePropertyOpenLocus.sourcePropertyOpenLocus (@FormallyUnramified) f : Set X)ᶜ |
| 40 | rintro ⟨x, hx, hxs⟩ |
| 41 | let k : Spec (S.residueField s) := (⊥ : PrimeSpectrum (S.residueField s)) |
| 42 | have hs : f x = S.fromSpecResidueField s k := |
| 43 | hxs.trans (S.fromSpecResidueField_apply s k).symm |
| 44 | obtain ⟨z, hz, _⟩ := Scheme.Pullback.exists_preimage_pullback x k hs |
| 45 | have : Mono (S.fromSpecResidueField s) := inferInstance |
| 46 | have hu := Picard.ThetaConstruction.LocalGroupFiberUnramified.Geometric.unramified_stalk_of_mono_fieldFiber |
| 47 | (K := S.residueField s) f (S.fromSpecResidueField s) z |
| 48 | rw [hz] at hu |
| 49 | obtain ⟨V, hxV, hV⟩ := Picard.ThetaConstruction.UnramifiedStalkNeighborhood.Geometric.exists_unramified_of_stalk f x hu |
| 50 | exact hx (SourcePropertyOpenLocus.le_sourcePropertyOpenLocus (@FormallyUnramified) f V hV hxV) |
| 51 | |
| 52 | theorem properUnramifiedBaseOpen_field_point |
| 53 | {K : Type u} [Field K] (b : Spec (.of K) ⟶ S) : |
| 54 | Set.range b ⊆ properUnramifiedBaseOpen f ↔ |
| 55 | FormallyUnramified (pullback.snd f b) := by |
| 56 | refine ⟨unramified_pullback_of_range_subset f b, fun hb => ?_⟩ |
| 57 | let s := b (IsLocalRing.closedPoint K) |
| 58 | let φ : S.residueField s ⟶ .of K := S.descResidueField (Scheme.stalkClosedPointTo b) |
| 59 | let c := Spec.map φ |
| 60 | let a := S.fromSpecResidueField s |
| 61 | have hc : c ≫ a = b := |
| 62 | Scheme.descResidueField_stalkClosedPointTo_fromSpecResidueField K S b |
| 63 | have : FormallyUnramified (pullback.snd f (c ≫ a)) := hc.symm ▸ hb |
| 64 | have ht : FormallyUnramified (pullback.snd (pullback.snd f a) c) := |
| 65 | UnramifiedPullbackRefinements.unramified_iterated_pullback f a c |
| 66 | have hflat : Flat c := Smooth.FieldExtensionReflection.fieldSpecMap_flat φ |
| 67 | have hsurj : Surjective c := Smooth.FieldExtensionReflection.fieldSpecMap_surjective φ |
| 68 | have hres : FormallyUnramified (pullback.snd f a) := |
| 69 | MorphismProperty.of_isPullback_of_descendsAlong |
| 70 | (P := @FormallyUnramified) (Q := @Surjective ⊓ @Flat ⊓ @QuasiCompact) |
| 71 | (IsPullback.of_hasPullback (pullback.snd f a) c).flip |
| 72 | ⟨⟨hsurj, hflat⟩, inferInstance⟩ ht |
| 73 | have hs := mem_properUnramifiedBaseOpen_of_residueFiber f s hres |
| 74 | rintro _ ⟨k, rfl⟩ |
| 75 | have hk : b k = s := congrArg b (Subsingleton.elim k (IsLocalRing.closedPoint K)) |
| 76 | exact hk.symm ▸ hs |
| 77 | |
| 78 | theorem properUnramifiedBaseOpen_all_tests |
| 79 | {T : Scheme.{u}} (b : T ⟶ S) : |
| 80 | Set.range b ⊆ properUnramifiedBaseOpen f ↔ |
| 81 | FormallyUnramified (pullback.snd f b) := by |
| 82 | refine ⟨unramified_pullback_of_range_subset f b, fun hb => ?_⟩ |
| 83 | let := hb |
| 84 | rintro _ ⟨t, rfl⟩ |
| 85 | let c := T.fromSpecResidueField t |
| 86 | have hiter : FormallyUnramified (pullback.snd (pullback.snd f b) c) := |
| 87 | MorphismProperty.of_isPullback (P := @FormallyUnramified) |
| 88 | (IsPullback.of_hasPullback (pullback.snd f b) c) hb |
| 89 | have hcomp : FormallyUnramified (pullback.snd f (c ≫ b)) := by |
| 90 | let e := pullbackLeftPullbackSndIso f b c |
| 91 | have he : e.inv ≫ pullback.snd (pullback.snd f b) c = pullback.snd f (c ≫ b) := by |
| 92 | rw [← pullbackLeftPullbackSndIso_hom_snd f b c] |
| 93 | exact e.inv_hom_id_assoc _ |
| 94 | have hh : FormallyUnramified (e.inv ≫ pullback.snd (pullback.snd f b) c) := |
| 95 | MorphismProperty.comp_mem (@FormallyUnramified) _ _ inferInstance hiter |
| 96 | exact he ▸ hh |
| 97 | have hr := (properUnramifiedBaseOpen_field_point f (c ≫ b)).mpr hcomp |
| 98 | let k : Spec (T.residueField t) := (⊥ : PrimeSpectrum (T.residueField t)) |
| 99 | have hk := hr ⟨k, rfl⟩ |
| 100 | change b (T.fromSpecResidueField t k) ∈ (properUnramifiedBaseOpen f : Set S) at hk |
| 101 | change b t ∈ (properUnramifiedBaseOpen f : Set S) |
| 102 | simpa only [Scheme.fromSpecResidueField_apply] using hk |
| 103 | |
| 104 | end |
| 105 | |
| 106 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Proper.UnramifiedBaseOpen |