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.Divisors.LineBundles.AffineSpace.SourceRank |
| 2 | |
| 3 | /-! # Rank Common Open -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.Divisors.LineBundles.AffineSource.RankCommonOpen.BundleCycles |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | section |
| 10 | |
| 11 | /-! Relative ranks agree on a nonempty common open chart, as follows |
| 12 | from the actual dimensions of its integral fiber supports. -/ |
| 13 | |
| 14 | open _root_.AlgebraicGeometry _root_.CategoryTheory |
| 15 | |
| 16 | variable {E X E' U : Scheme.{0}} [AlgebraicGeometry.IsNoetherian X] |
| 17 | [AlgebraicGeometry.IsNoetherian E'] |
| 18 | [AlgebraicGeometry.IsNoetherian U] |
| 19 | (p : E ⟶ X) (q : E' ⟶ U) [GeometricallyIntegral p] [GeometricallyIntegral q] |
| 20 | (i : U ⟶ X) (j : E' ⟶ E) [IsOpenImmersion i] [IsOpenImmersion j] |
| 21 | (hs : q ≫ i = j ≫ p) (f : X ⟶ Foundations.Scheme.ProjectiveSpace.complexBase) [LocallyOfFiniteType f] |
| 22 | (r s : ℕ) (hp : AffineSpace.SourceRank.BundleCycles.HasAffineSpaceSourceChartsOfRank p r) (hq : AffineSpace.SourceRank.BundleCycles.HasAffineSpaceSourceChartsOfRank q s) |
| 23 | |
| 24 | include hp hq hs f in |
| 25 | theorem affineSpaceSourceRank_openSquare (u : U) : r = s := by |
| 26 | have H := AffineSpace.SourceRank.BundleCycles.affineSpaceSourceFiberGenericPoint_dimension p f r hp (i u) |
| 27 | rw [← Integral.FiberOpen.BundleCycles.integralFiberGenericPoint_openSquare p q i j hs u, ImmersionDimension.BundleCycles.pointClosure_dimension_immersion j] at H |
| 28 | have he : j ≫ (p ≫ f) = q ≫ (i ≫ f) := by rw [← Category.assoc, ← hs, Category.assoc] |
| 29 | rw [he, AffineSpace.SourceRank.BundleCycles.affineSpaceSourceFiberGenericPoint_dimension q (i ≫ f) s hq, |
| 30 | ImmersionDimension.BundleCycles.pointClosure_dimension_immersion i] at H |
| 31 | omega |
| 32 | |
| 33 | end |
| 34 | |
| 35 | /-! Two open presentations of the same integral ambient fibers |
| 36 | have the same relative dimension, by comparing their generic points. -/ |
| 37 | |
| 38 | open _root_.AlgebraicGeometry _root_.CategoryTheory |
| 39 | |
| 40 | variable {E A B X U : Scheme.{0}} [AlgebraicGeometry.IsNoetherian X] |
| 41 | [AlgebraicGeometry.IsNoetherian U] [AlgebraicGeometry.IsNoetherian A] |
| 42 | [AlgebraicGeometry.IsNoetherian B] |
| 43 | (p : E ⟶ X) (q : A ⟶ X) (t : B ⟶ U) |
| 44 | [GeometricallyIntegral p] [GeometricallyIntegral q] [GeometricallyIntegral t] |
| 45 | (j : A ⟶ E) (k : B ⟶ E) (i : U ⟶ X) |
| 46 | [IsOpenImmersion j] [IsOpenImmersion k] [IsOpenImmersion i] |
| 47 | (hj : j ≫ p = q) (hk : t ≫ i = k ≫ p) |
| 48 | (f : X ⟶ Foundations.Scheme.ProjectiveSpace.complexBase) [LocallyOfFiniteType f] |
| 49 | (r s : ℕ) (hq : AffineSpace.SourceRank.BundleCycles.HasAffineSpaceSourceChartsOfRank q r) |
| 50 | (ht : AffineSpace.SourceRank.BundleCycles.HasAffineSpaceSourceChartsOfRank t s) |
| 51 | |
| 52 | include hj hk f hq ht in |
| 53 | theorem affineSpaceSourceRank_commonOpen (u : U) : r = s := by |
| 54 | have ha : j (Integral.FiberGenericPoint.BundleCycles.integralFiberGenericPoint q (i u)) = Integral.FiberGenericPoint.BundleCycles.integralFiberGenericPoint p (i u) := |
| 55 | Integral.FiberOpen.BundleCycles.integralFiberGenericPoint_openSquare p q (𝟙 X) j (by rw [Category.comp_id, hj]) (i u) |
| 56 | have hb := Integral.FiberOpen.BundleCycles.integralFiberGenericPoint_openSquare p t i k hk u |
| 57 | have H := congrArg (fun z : E => |
| 58 | Foundations.Scheme.SupportDimension.supportTranscendenceDimension (irreducibleSetEquivPoints.symm z) (p ≫ f)) (ha.trans hb.symm) |
| 59 | rw [ImmersionDimension.BundleCycles.pointClosure_dimension_immersion j, ImmersionDimension.BundleCycles.pointClosure_dimension_immersion k] at H |
| 60 | have hjf : j ≫ (p ≫ f) = q ≫ f := by rw [← Category.assoc, hj] |
| 61 | have hkf : k ≫ (p ≫ f) = t ≫ (i ≫ f) := by rw [← Category.assoc, ← hk, Category.assoc] |
| 62 | rw [hjf, hkf, AffineSpace.SourceRank.BundleCycles.affineSpaceSourceFiberGenericPoint_dimension q f r hq, |
| 63 | AffineSpace.SourceRank.BundleCycles.affineSpaceSourceFiberGenericPoint_dimension t (i ≫ f) s ht, |
| 64 | ImmersionDimension.BundleCycles.pointClosure_dimension_immersion i] at H |
| 65 | omega |
| 66 | |
| 67 | end |
| 68 | |
| 69 | end OAI.AlgebraicGeometry.Divisors.LineBundles.AffineSource.RankCommonOpen.BundleCycles |