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.HodgeConjecture.ThetaCycle.MatrixCalculus |
| 2 | |
| 3 | /-! # Intrinsic Graph Calculus -/ |
| 4 | |
| 5 | namespace OAI.RepresentationTheory.Theta.Kernel.IntrinsicGraphCalculus.Intrinsic |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Matrix graph charts in the position-first convention used by the |
| 10 | native AdelicTheta comparison. -/ |
| 11 | |
| 12 | open scoped Classical _root_.Matrix BigOperators _root_.Matrix.Norms.Elementwise |
| 13 | |
| 14 | variable {I : Type} [Fintype I] [DecidableEq I] |
| 15 | |
| 16 | def positionBlock (P : Matrix (I ⊕ I) (I ⊕ I) ℂ) (Z : Matrix I I ℂ) : Matrix I I ℂ := |
| 17 | P.submatrix Sum.inl Sum.inl + P.submatrix Sum.inl Sum.inr * Z |
| 18 | |
| 19 | def momentumBlock (P : Matrix (I ⊕ I) (I ⊕ I) ℂ) (Z : Matrix I I ℂ) : Matrix I I ℂ := |
| 20 | P.submatrix Sum.inr Sum.inl + P.submatrix Sum.inr Sum.inr * Z |
| 21 | |
| 22 | def graphChart (P : Matrix (I ⊕ I) (I ⊕ I) ℂ) (Z : Matrix I I ℂ) : Matrix I I ℂ := |
| 23 | momentumBlock P Z * (positionBlock P Z)⁻¹ |
| 24 | |
| 25 | omit [DecidableEq I] in |
| 26 | theorem positionBlock_apply (P : Matrix (I ⊕ I) (I ⊕ I) ℂ) (Z : Matrix I I ℂ) (x : I → ℂ) (i : I) : |
| 27 | (positionBlock P Z).mulVec x i = P.mulVec (Sum.elim x (Z.mulVec x)) (.inl i) := by |
| 28 | rw [positionBlock,Matrix.add_mulVec,← Matrix.mulVec_mulVec] |
| 29 | simp only [Matrix.mulVec,dotProduct,Fintype.sum_sum_type,Matrix.submatrix_apply, |
| 30 | Sum.elim_inl,Sum.elim_inr,Pi.add_apply] |
| 31 | |
| 32 | omit [DecidableEq I] in |
| 33 | theorem momentumBlock_apply (P : Matrix (I ⊕ I) (I ⊕ I) ℂ) (Z : Matrix I I ℂ) (x : I → ℂ) (i : I) : |
| 34 | (momentumBlock P Z).mulVec x i = P.mulVec (Sum.elim x (Z.mulVec x)) (.inr i) := by |
| 35 | rw [momentumBlock,Matrix.add_mulVec,← Matrix.mulVec_mulVec] |
| 36 | simp only [Matrix.mulVec,dotProduct,Fintype.sum_sum_type,Matrix.submatrix_apply, |
| 37 | Sum.elim_inl,Sum.elim_inr,Pi.add_apply] |
| 38 | |
| 39 | theorem blocks_of_fixed_graph (P : Matrix (I ⊕ I) (I ⊕ I) ℂ) (Z : Matrix I I ℂ) |
| 40 | (h : ∀ x : I → ℂ, P.mulVec (Sum.elim x (Z.mulVec x)) = Sum.elim x (Z.mulVec x)) : |
| 41 | positionBlock P Z = 1 ∧ momentumBlock P Z = Z := by |
| 42 | constructor |
| 43 | · apply Matrix.toLin'.injective |
| 44 | apply LinearMap.ext |
| 45 | intro x |
| 46 | funext i |
| 47 | change (positionBlock P Z).mulVec x i = (1 : Matrix I I ℂ).mulVec x i |
| 48 | rw [positionBlock_apply,h,Matrix.one_mulVec] |
| 49 | rfl |
| 50 | · apply Matrix.toLin'.injective |
| 51 | apply LinearMap.ext |
| 52 | intro x |
| 53 | funext i |
| 54 | change (momentumBlock P Z).mulVec x i = Z.mulVec x i |
| 55 | rw [momentumBlock_apply,h] |
| 56 | rfl |
| 57 | |
| 58 | variable {V : Type} [NormedAddCommGroup V] [NormedSpace ℂ V] {s : Set V} |
| 59 | |
| 60 | omit [DecidableEq I] in |
| 61 | theorem submatrix_holomorphic (P : V → Matrix (I ⊕ I) (I ⊕ I) ℂ) |
| 62 | (hP : DifferentiableOn ℂ P s) (a b : I → I ⊕ I) : |
| 63 | DifferentiableOn ℂ (fun q => (P q).submatrix a b) s := by |
| 64 | apply differentiableOn_pi.mpr |
| 65 | intro i |
| 66 | apply differentiableOn_pi.mpr |
| 67 | intro j |
| 68 | exact (differentiable_apply (b j)).comp_differentiableOn |
| 69 | ((differentiable_apply (a i)).comp_differentiableOn hP) |
| 70 | |
| 71 | omit [DecidableEq I] in |
| 72 | theorem blocks_holomorphic (P : V → Matrix (I ⊕ I) (I ⊕ I) ℂ) (Z : V → Matrix I I ℂ) |
| 73 | (hP : DifferentiableOn ℂ P s) (hZ : DifferentiableOn ℂ Z s) : |
| 74 | DifferentiableOn ℂ (fun q => positionBlock (P q) (Z q)) s ∧ |
| 75 | DifferentiableOn ℂ (fun q => momentumBlock (P q) (Z q)) s := by |
| 76 | constructor |
| 77 | · exact (submatrix_holomorphic P hP Sum.inl Sum.inl).add |
| 78 | (AlgebraicGeometry.HodgeConjecture.ThetaCycle.MatrixCalculus.CM.matrix_product_holomorphic _ _ |
| 79 | (submatrix_holomorphic P hP Sum.inl Sum.inr) hZ) |
| 80 | · exact (submatrix_holomorphic P hP Sum.inr Sum.inl).add |
| 81 | (AlgebraicGeometry.HodgeConjecture.ThetaCycle.MatrixCalculus.CM.matrix_product_holomorphic _ _ |
| 82 | (submatrix_holomorphic P hP Sum.inr Sum.inr) hZ) |
| 83 | |
| 84 | theorem graphChart_holomorphic (P : V → Matrix (I ⊕ I) (I ⊕ I) ℂ) (Z : V → Matrix I I ℂ) |
| 85 | (hP : DifferentiableOn ℂ P s) (hZ : DifferentiableOn ℂ Z s) |
| 86 | (hdet : ∀ q ∈ s, (positionBlock (P q) (Z q)).det ≠ 0) : |
| 87 | DifferentiableOn ℂ (fun q => graphChart (P q) (Z q)) s := by |
| 88 | obtain ⟨hp,hq⟩ := blocks_holomorphic P Z hP hZ |
| 89 | exact AlgebraicGeometry.HodgeConjecture.ThetaCycle.MatrixCalculus.CM.matrix_product_holomorphic _ _ hq |
| 90 | (AlgebraicGeometry.HodgeConjecture.ThetaCycle.MatrixCalculus.CM.matrix_inverse_holomorphic _ hp hdet) |
| 91 | |
| 92 | end |
| 93 | |
| 94 | end OAI.RepresentationTheory.Theta.Kernel.IntrinsicGraphCalculus.Intrinsic |