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.MatrixPivot.Condition |
| 2 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.Relative.UnitOpen |
| 3 | import Mathlib.AlgebraicGeometry.Morphisms.SurjectiveOnStalks |
| 4 | |
| 5 | /-! # Charts -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.MatrixPivot.Charts.Grassmannian |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Chosen, already constructed pivot charts and their concrete universal maps into the matrix parameter scheme. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 14 | |
| 15 | universe u |
| 16 | |
| 17 | variable {ι μ ν : Type u} [Fintype ι] [DecidableEq ι] |
| 18 | variable {S : Scheme.{u}} (M : Over S) (A : Matrix ν μ Γ(M.left, ⊤)) |
| 19 | |
| 20 | abbrev MatrixPivotIndex (ι μ ν : Type u) := (ι ↪ μ) × (ι ↪ ν) |
| 21 | |
| 22 | structure MatrixPivotChartModel (p : MatrixPivotIndex ι μ ν) where |
| 23 | carrier : Over S |
| 24 | inclusion : carrier ⟶ M |
| 25 | mono : Mono inclusion |
| 26 | surjectiveOnStalks : SurjectiveOnStalks inclusion.left |
| 27 | representation : yoneda.obj carrier ≅ (PivotLocus.Grassmannian.fullMatrixPivotSubfunctor M A p.1 p.2).toFunctor |
| 28 | inclusion_eq : representation.hom ≫ (PivotLocus.Grassmannian.fullMatrixPivotSubfunctor M A p.1 p.2).ι = yoneda.map inclusion |
| 29 | |
| 30 | def matrixPivotChartModel (p : MatrixPivotIndex ι μ ν) : MatrixPivotChartModel M A p := by |
| 31 | apply Classical.choice |
| 32 | obtain ⟨U, j, hj, Z, k, hk, e, he⟩ := PivotLocus.Grassmannian.full_matrix_pivot_locus_representable M A p.1 p.2 |
| 33 | let := hj |
| 34 | let := hk |
| 35 | have : Mono j := Over.mono_of_mono_left j |
| 36 | have : Mono k := Over.mono_of_mono_left k |
| 37 | exact ⟨⟨Z, k ≫ j, inferInstance, by |
| 38 | change SurjectiveOnStalks (k.left ≫ j.left) |
| 39 | infer_instance, e, he⟩⟩ |
| 40 | |
| 41 | def matrixPivotChart (p : MatrixPivotIndex ι μ ν) : Over S := (matrixPivotChartModel M A p).carrier |
| 42 | |
| 43 | def matrixPivotChartInclusion (p : MatrixPivotIndex ι μ ν) : matrixPivotChart M A p ⟶ M := |
| 44 | (matrixPivotChartModel M A p).inclusion |
| 45 | |
| 46 | instance matrixPivotChartInclusion_mono (p : MatrixPivotIndex ι μ ν) : |
| 47 | Mono (matrixPivotChartInclusion M A p) := (matrixPivotChartModel M A p).mono |
| 48 | |
| 49 | instance matrixPivotChartInclusion_surjectiveOnStalks (p : MatrixPivotIndex ι μ ν) : |
| 50 | SurjectiveOnStalks (matrixPivotChartInclusion M A p).left := (matrixPivotChartModel M A p).surjectiveOnStalks |
| 51 | |
| 52 | def matrixPivotChartPointEquiv (p : MatrixPivotIndex ι μ ν) (T : Over S) : |
| 53 | (T ⟶ matrixPivotChart M A p) ≃ (PivotLocus.Grassmannian.fullMatrixPivotSubfunctor M A p.1 p.2).obj (Opposite.op T) := |
| 54 | ((matrixPivotChartModel M A p).representation.app (Opposite.op T)).toEquiv |
| 55 | |
| 56 | theorem matrixPivotChartPointEquiv_val (p : MatrixPivotIndex ι μ ν) {T : Over S} |
| 57 | (y : T ⟶ matrixPivotChart M A p) : |
| 58 | (matrixPivotChartPointEquiv M A p T y).val = y ≫ matrixPivotChartInclusion M A p := by |
| 59 | change (((matrixPivotChartModel M A p).representation.hom.app (Opposite.op T)) y).val = |
| 60 | y ≫ (matrixPivotChartModel M A p).inclusion |
| 61 | exact ConcreteCategory.congr_hom |
| 62 | (NatTrans.congr_app (matrixPivotChartModel M A p).inclusion_eq (Opposite.op T)) y |
| 63 | |
| 64 | theorem matrixPivotChart_condition (p : MatrixPivotIndex ι μ ν) {T : Over S} |
| 65 | (y : T ⟶ matrixPivotChart M A p) : |
| 66 | Locus.Grassmannian.matrixPivotCondition (A.submatrix p.2 p.1) (A.submatrix p.2 id) (A.submatrix id p.1) A |
| 67 | (y ≫ matrixPivotChartInclusion M A p).left.appTop.hom := by |
| 68 | have h := (matrixPivotChartPointEquiv M A p T y).property |
| 69 | change Locus.Grassmannian.matrixPivotCondition (A.submatrix p.2 p.1) (A.submatrix p.2 id) (A.submatrix id p.1) A |
| 70 | (matrixPivotChartPointEquiv M A p T y).val.left.appTop.hom at h |
| 71 | rwa [matrixPivotChartPointEquiv_val] at h |
| 72 | |
| 73 | def matrixPivotChartLift (p : MatrixPivotIndex ι μ ν) {T : Over S} (x : T ⟶ M) |
| 74 | (hx : Locus.Grassmannian.matrixPivotCondition (A.submatrix p.2 p.1) (A.submatrix p.2 id) (A.submatrix id p.1) A |
| 75 | x.left.appTop.hom) : T ⟶ matrixPivotChart M A p := |
| 76 | (matrixPivotChartPointEquiv M A p T).symm ⟨x, hx⟩ |
| 77 | |
| 78 | theorem matrixPivotChartLift_inclusion (p : MatrixPivotIndex ι μ ν) {T : Over S} (x : T ⟶ M) |
| 79 | (hx : Locus.Grassmannian.matrixPivotCondition (A.submatrix p.2 p.1) (A.submatrix p.2 id) (A.submatrix id p.1) A |
| 80 | x.left.appTop.hom) : |
| 81 | matrixPivotChartLift M A p x hx ≫ matrixPivotChartInclusion M A p = x := by |
| 82 | rw [← matrixPivotChartPointEquiv_val] |
| 83 | exact congrArg Subtype.val ((matrixPivotChartPointEquiv M A p T).apply_symm_apply ⟨x, hx⟩) |
| 84 | |
| 85 | end |
| 86 | |
| 87 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.MatrixPivot.Charts.Grassmannian |