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.HilbertScheme.Presentations.MatrixRank.Equations |
| 2 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.MatrixPivot.AmbientOpen |
| 3 | |
| 4 | /-! # Ambient Pullback -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.MatrixRank.AmbientPullback.Grassmannian |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Pulling the matrix-rank scheme back to an ambient determinant-open gives |
| 11 | exactly the corresponding closed pivot chart. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 14 | |
| 15 | universe u |
| 16 | variable {ι μ ν : Type u} [Fintype ι] [DecidableEq ι] |
| 17 | variable {S : Scheme.{u}} (M : Over S) (A : Matrix ν μ Γ(M.left, ⊤)) |
| 18 | |
| 19 | theorem matrixRank_global_pivot_of_unit (p : MatrixPivot.Charts.Grassmannian.MatrixPivotIndex ι μ ν) |
| 20 | {T : Over S} (x : T ⟶ M) (hx : Representation.Grassmannian.matrixRankLocalCondition (ι := ι) M A x) |
| 21 | (hu : IsUnit (x.left.appTop (A.submatrix p.2 p.1).det)) : |
| 22 | MatrixPivot.Locus.Grassmannian.matrixPivotCondition (A.submatrix p.2 p.1) (A.submatrix p.2 id) |
| 23 | (A.submatrix id p.1) A x.left.appTop.hom := by |
| 24 | obtain ⟨U, hU⟩ := (Equations.Grassmannian.matrixRankLocalCondition_iff_equations M A x).mp hx |
| 25 | apply (Equations.Grassmannian.matrixPivotChart_factorization_iff M A p x.left).mpr |
| 26 | apply Local.MorphismFactorization.lift_of_openCover U x.left (MatrixPivot.Charts.Grassmannian.matrixPivotChartInclusion M A p).left |
| 27 | intro i |
| 28 | obtain ⟨q, hq⟩ := hU i |
| 29 | have hpunit : IsUnit ((U.f i ≫ x.left).appTop (A.submatrix p.2 p.1).det) := |
| 30 | hu.map (U.f i).appTop.hom |
| 31 | have hp := MatrixPivot.Condition.Grassmannian.fullMatrixPivotCondition_transition A q.1 p.1 q.2 p.2 |
| 32 | (U.f i ≫ x.left).appTop.hom hq hpunit |
| 33 | obtain ⟨g, hg, _⟩ := (Equations.Grassmannian.matrixPivotChart_factorization_iff M A p _).mp hp |
| 34 | exact ⟨g, hg⟩ |
| 35 | |
| 36 | instance matrixRankChartOverMap_mono (p : MatrixPivot.Charts.Grassmannian.MatrixPivotIndex ι μ ν) : |
| 37 | Mono (Data.Grassmannian.matrixRankChartOverMap M A p) := by |
| 38 | have : Mono (Data.Grassmannian.matrixRankChartOverMap M A p).left := |
| 39 | inferInstanceAs (Mono (Data.Grassmannian.matrixRankChartMap M A p)) |
| 40 | exact Over.mono_of_mono_left _ |
| 41 | |
| 42 | theorem matrixPivotAmbientOpen_isPullback_over (p : MatrixPivot.Charts.Grassmannian.MatrixPivotIndex ι μ ν) : |
| 43 | IsPullback (Data.Grassmannian.matrixRankChartOverMap M A p) (MatrixPivot.AmbientOpen.Grassmannian.matrixPivotChartToAmbientOpen M A p) |
| 44 | (Data.Grassmannian.matrixRankParameterMap (ι := ι) M A) (MatrixPivot.AmbientOpen.Grassmannian.matrixPivotAmbientOpenInclusion M A p) := by |
| 45 | apply IsPullback.mk' |
| 46 | · rw [Data.Grassmannian.matrixRankChartOverMap_parameterMap, MatrixPivot.AmbientOpen.Grassmannian.matrixPivotChartToAmbientOpen_inclusion] |
| 47 | · intro T f g h _ |
| 48 | exact (cancel_mono (Data.Grassmannian.matrixRankChartOverMap M A p)).mp h |
| 49 | · intro T f g h |
| 50 | have hlocal : Representation.Grassmannian.matrixRankLocalCondition (ι := ι) M A (f ≫ Data.Grassmannian.matrixRankParameterMap M A) := |
| 51 | (Representation.Grassmannian.matrixRankLocalCondition_iff_lift M A _).mpr |
| 52 | ⟨f, rfl, fun z hz => (cancel_mono (Data.Grassmannian.matrixRankParameterMap M A)).mp hz⟩ |
| 53 | have hunit : IsUnit ((f ≫ Data.Grassmannian.matrixRankParameterMap M A).left.appTop (A.submatrix p.2 p.1).det) := by |
| 54 | rw [h] |
| 55 | exact (Relative.UnitOpen.relativeUnitOpenInclusion_isUnit M (A.submatrix p.2 p.1).det).map g.left.appTop.hom |
| 56 | have hp := matrixRank_global_pivot_of_unit M A p (f ≫ Data.Grassmannian.matrixRankParameterMap M A) hlocal hunit |
| 57 | let y := MatrixPivot.Charts.Grassmannian.matrixPivotChartLift M A p (f ≫ Data.Grassmannian.matrixRankParameterMap M A) hp |
| 58 | have hy : y ≫ MatrixPivot.Charts.Grassmannian.matrixPivotChartInclusion M A p = f ≫ Data.Grassmannian.matrixRankParameterMap M A := |
| 59 | MatrixPivot.Charts.Grassmannian.matrixPivotChartLift_inclusion M A p _ hp |
| 60 | refine ⟨y, ?_, ?_⟩ |
| 61 | · apply (cancel_mono (Data.Grassmannian.matrixRankParameterMap M A)).mp |
| 62 | rw [Category.assoc, Data.Grassmannian.matrixRankChartOverMap_parameterMap] |
| 63 | exact hy |
| 64 | · apply (cancel_mono (MatrixPivot.AmbientOpen.Grassmannian.matrixPivotAmbientOpenInclusion M A p)).mp |
| 65 | rw [Category.assoc, MatrixPivot.AmbientOpen.Grassmannian.matrixPivotChartToAmbientOpen_inclusion] |
| 66 | exact hy.trans h |
| 67 | |
| 68 | theorem matrixPivotAmbientOpen_isPullback (p : MatrixPivot.Charts.Grassmannian.MatrixPivotIndex ι μ ν) : |
| 69 | IsPullback (Data.Grassmannian.matrixRankChartMap M A p) (MatrixPivot.AmbientOpen.Grassmannian.matrixPivotChartToAmbientOpen M A p).left |
| 70 | (Data.Grassmannian.matrixRankStructureMap (ι := ι) M A) (MatrixPivot.AmbientOpen.Grassmannian.matrixPivotAmbientOpenInclusion M A p).left := |
| 71 | (matrixPivotAmbientOpen_isPullback_over M A p).map (Over.forget S) |
| 72 | |
| 73 | end |
| 74 | |
| 75 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.MatrixRank.AmbientPullback.Grassmannian |