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.RepresentationTheory.Theta.Kernel.Analysis |
| 2 | import OAI.RepresentationTheory.Theta.Kernel.Calculus |
| 3 | |
| 4 | /-! # Factorization -/ |
| 5 | |
| 6 | namespace OAI.RepresentationTheory.Theta.Kernel.Factorization |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | open scoped BigOperators |
| 11 | |
| 12 | variable {ι κ : Type*} [Fintype ι] [Fintype κ] |
| 13 | |
| 14 | /-- DerivativeFactorization's direct-sum proposition, quantified over its displayed data. -/ |
| 15 | def DerivativeFactorizationInput (ι κ : Type*) [Fintype ι] [Fintype κ] : Prop := |
| 16 | ∀ (Z₁ : AlgebraicGeometry.ComplexMultiplication.CMSiegelMatrix.CM.SiegelMatrix ι) (Z₂ : AlgebraicGeometry.ComplexMultiplication.CMSiegelMatrix.CM.SiegelMatrix κ) (Z : AlgebraicGeometry.ComplexMultiplication.CMSiegelMatrix.CM.SiegelMatrix (Sum ι κ)), |
| 17 | Z.matrix = Matrix.fromBlocks Z₁.matrix 0 0 Z₂.matrix → |
| 18 | ∀ (ψ : Definitions.DerivativeFactorization.Input ι) (χ : Definitions.DerivativeFactorization.Input κ), ∃ φ : Definitions.DerivativeFactorization.Input (Sum ι κ), |
| 19 | (∀ a, φ.1 a = ψ.1 (fun i => a (Sum.inl i)) * χ.1 (fun j => a (Sum.inr j))) ∧ |
| 20 | (∀ z₁ z₂, Definitions.DerivativeFactorization.completed φ Z (Sum.elim z₁ z₂) = Definitions.DerivativeFactorization.completed ψ Z₁ z₁ * Definitions.DerivativeFactorization.completed χ Z₂ z₂) |
| 21 | |
| 22 | /-- The two-factor TensorDecomposition proposition in the rational splitting's coordinates. |
| 23 | The scalar coefficients are retained, as in TensorDecomposition's specification. -/ |
| 24 | def TensorDecompositionInput (ι κ : Type*) : Prop := |
| 25 | ∀ φ : Definitions.DerivativeFactorization.Input (Sum ι κ), ∃ (n : ℕ) (c : Fin n → ℂ) |
| 26 | (ψ : Fin n → Definitions.DerivativeFactorization.Input ι) (χ : Fin n → Definitions.DerivativeFactorization.Input κ), |
| 27 | ∀ a, φ.1 a = ∑ i, c i * |
| 28 | (ψ i).1 (fun j => a (Sum.inl j)) * (χ i).1 (fun j => a (Sum.inr j)) |
| 29 | |
| 30 | def scaleInput (c : ℂ) (φ : Definitions.DerivativeFactorization.Input ι) : Definitions.DerivativeFactorization.Input ι := |
| 31 | ⟨fun a => c * φ.1 a, (IsLocallyConstant.const c).mul φ.2.1, φ.2.2.mul_left⟩ |
| 32 | |
| 33 | omit [Fintype ι] [Fintype κ] in |
| 34 | lemma tensor_decomposition (h_TensorDecomposition : TensorDecompositionInput ι κ) (φ : Definitions.DerivativeFactorization.Input (Sum ι κ)) : |
| 35 | ∃ (n : ℕ) (ψ : Fin n → Definitions.DerivativeFactorization.Input ι) (χ : Fin n → Definitions.DerivativeFactorization.Input κ), |
| 36 | ∀ a, φ.1 a = ∑ i, |
| 37 | (ψ i).1 (fun j => a (Sum.inl j)) * (χ i).1 (fun j => a (Sum.inr j)) := by |
| 38 | obtain ⟨n, c, ψ, χ, h⟩ := h_TensorDecomposition φ |
| 39 | exact ⟨n, fun i => scaleInput (c i) (ψ i), χ, h⟩ |
| 40 | |
| 41 | lemma completed_sum (h_GaussianConvergence : Analysis.GaussianConvergenceInput ι) (φ : Definitions.DerivativeFactorization.Input ι) |
| 42 | (n : ℕ) (ψ : Fin n → Definitions.DerivativeFactorization.Input ι) (h : ∀ a, φ.1 a = ∑ i, (ψ i).1 a) |
| 43 | (Z : AlgebraicGeometry.ComplexMultiplication.CMSiegelMatrix.CM.SiegelMatrix ι) : |
| 44 | Definitions.DerivativeFactorization.completed φ Z = fun z => ∑ i, Definitions.DerivativeFactorization.completed (ψ i) Z z := by |
| 45 | funext z |
| 46 | have heq : Definitions.DerivativeFactorization.theta φ Z.matrix z = ∑ i, Definitions.DerivativeFactorization.theta (ψ i) Z.matrix z := by |
| 47 | simp only [Definitions.DerivativeFactorization.theta, h, Finset.sum_mul] |
| 48 | exact Summable.tsum_finsetSum (fun i _ => (Analysis.adelic_analysis h_GaussianConvergence (ψ i) Z).1 z) |
| 49 | simp only [Definitions.DerivativeFactorization.completed, heq, Finset.mul_sum] |
| 50 | |
| 51 | lemma completed_hessian_sum (h_GaussianConvergence : Analysis.GaussianConvergenceInput ι) (φ : Definitions.DerivativeFactorization.Input ι) |
| 52 | (n : ℕ) (ψ : Fin n → Definitions.DerivativeFactorization.Input ι) (h : ∀ a, φ.1 a = ∑ i, (ψ i).1 a) |
| 53 | (Z : AlgebraicGeometry.ComplexMultiplication.CMSiegelMatrix.CM.SiegelMatrix ι) (v : Fin 2 → (ι → ℂ)) : |
| 54 | iteratedFDeriv ℂ 2 (Definitions.DerivativeFactorization.completed φ Z) 0 v = |
| 55 | ∑ i, iteratedFDeriv ℂ 2 (Definitions.DerivativeFactorization.completed (ψ i) Z) 0 v := by |
| 56 | rw [completed_sum h_GaussianConvergence φ n ψ h Z, |
| 57 | iteratedFDeriv_fun_sum_apply |
| 58 | (fun i _ => ((Analysis.adelic_analysis h_GaussianConvergence (ψ i) Z).2.of_le (by simp)).contDiffAt)] |
| 59 | exact _root_.sum_apply _ _ _ |
| 60 | |
| 61 | def leftProjection : (Sum ι κ → ℂ) →L[ℂ] (ι → ℂ) := |
| 62 | ContinuousLinearMap.pi (fun i => ContinuousLinearMap.proj (Sum.inl i)) |
| 63 | |
| 64 | def rightProjection : (Sum ι κ → ℂ) →L[ℂ] (κ → ℂ) := |
| 65 | ContinuousLinearMap.pi (fun i => ContinuousLinearMap.proj (Sum.inr i)) |
| 66 | |
| 67 | lemma completed_tensor (h_DerivativeFactorization : DerivativeFactorizationInput ι κ) |
| 68 | (Z₁ : AlgebraicGeometry.ComplexMultiplication.CMSiegelMatrix.CM.SiegelMatrix ι) (Z₂ : AlgebraicGeometry.ComplexMultiplication.CMSiegelMatrix.CM.SiegelMatrix κ) (Z : AlgebraicGeometry.ComplexMultiplication.CMSiegelMatrix.CM.SiegelMatrix (Sum ι κ)) |
| 69 | (hZ : Z.matrix = Matrix.fromBlocks Z₁.matrix 0 0 Z₂.matrix) |
| 70 | (φ : Definitions.DerivativeFactorization.Input (Sum ι κ)) (ψ : Definitions.DerivativeFactorization.Input ι) (χ : Definitions.DerivativeFactorization.Input κ) |
| 71 | (hφ : ∀ a, φ.1 a = ψ.1 (fun i => a (Sum.inl i)) * χ.1 (fun j => a (Sum.inr j))) : |
| 72 | Definitions.DerivativeFactorization.completed φ Z = fun z => |
| 73 | Definitions.DerivativeFactorization.completed ψ Z₁ (leftProjection z) * Definitions.DerivativeFactorization.completed χ Z₂ (rightProjection z) := by |
| 74 | obtain ⟨φ', hφ', h⟩ := h_DerivativeFactorization Z₁ Z₂ Z hZ ψ χ |
| 75 | have heq : φ = φ' := Subtype.ext (funext (fun a => (hφ a).trans (hφ' a).symm)) |
| 76 | subst φ' |
| 77 | funext z |
| 78 | have hz : Sum.elim (leftProjection z) (rightProjection z) = z := by |
| 79 | funext i; cases i <;> rfl |
| 80 | simpa only [hz] using h (leftProjection z) (rightProjection z) |
| 81 | |
| 82 | lemma mixed_completed (h_GaussianConvergence₁ : Analysis.GaussianConvergenceInput ι) (h_GaussianConvergence₂ : Analysis.GaussianConvergenceInput κ) |
| 83 | (h_DerivativeFactorization : DerivativeFactorizationInput ι κ) |
| 84 | (Z₁ : AlgebraicGeometry.ComplexMultiplication.CMSiegelMatrix.CM.SiegelMatrix ι) (Z₂ : AlgebraicGeometry.ComplexMultiplication.CMSiegelMatrix.CM.SiegelMatrix κ) (Z : AlgebraicGeometry.ComplexMultiplication.CMSiegelMatrix.CM.SiegelMatrix (Sum ι κ)) |
| 85 | (hZ : Z.matrix = Matrix.fromBlocks Z₁.matrix 0 0 Z₂.matrix) |
| 86 | (φ : Definitions.DerivativeFactorization.Input (Sum ι κ)) (ψ : Definitions.DerivativeFactorization.Input ι) (χ : Definitions.DerivativeFactorization.Input κ) |
| 87 | (hφ : ∀ a, φ.1 a = ψ.1 (fun i => a (Sum.inl i)) * χ.1 (fun j => a (Sum.inr j))) |
| 88 | (u : ι → ℂ) (v : κ → ℂ) : |
| 89 | iteratedFDeriv ℂ 2 (Definitions.DerivativeFactorization.completed φ Z) 0 ![Sum.elim u 0, Sum.elim 0 v] = |
| 90 | fderiv ℂ (Definitions.DerivativeFactorization.completed ψ Z₁) 0 u * fderiv ℂ (Definitions.DerivativeFactorization.completed χ Z₂) 0 v := by |
| 91 | rw [completed_tensor h_DerivativeFactorization Z₁ Z₂ Z hZ φ ψ χ hφ] |
| 92 | have hf : ContDiff ℂ 2 (Definitions.DerivativeFactorization.completed ψ Z₁) := (Analysis.adelic_analysis h_GaussianConvergence₁ ψ Z₁).2.of_le (by simp) |
| 93 | have hg : ContDiff ℂ 2 (Definitions.DerivativeFactorization.completed χ Z₂) := (Analysis.adelic_analysis h_GaussianConvergence₂ χ Z₂).2.of_le (by simp) |
| 94 | exact Calculus.mixed_hessian (leftProjection (ι := ι) (κ := κ)) |
| 95 | (rightProjection (ι := ι) (κ := κ)) (Definitions.DerivativeFactorization.completed ψ Z₁) (Definitions.DerivativeFactorization.completed χ Z₂) hf hg |
| 96 | (Sum.elim u (0 : κ → ℂ)) (Sum.elim (0 : ι → ℂ) v) rfl rfl |
| 97 | |
| 98 | lemma mixed_completed_reverse (h_GaussianConvergence₁ : Analysis.GaussianConvergenceInput ι) (h_GaussianConvergence₂ : Analysis.GaussianConvergenceInput κ) |
| 99 | (h_DerivativeFactorization : DerivativeFactorizationInput ι κ) |
| 100 | (Z₁ : AlgebraicGeometry.ComplexMultiplication.CMSiegelMatrix.CM.SiegelMatrix ι) (Z₂ : AlgebraicGeometry.ComplexMultiplication.CMSiegelMatrix.CM.SiegelMatrix κ) (Z : AlgebraicGeometry.ComplexMultiplication.CMSiegelMatrix.CM.SiegelMatrix (Sum ι κ)) |
| 101 | (hZ : Z.matrix = Matrix.fromBlocks Z₁.matrix 0 0 Z₂.matrix) |
| 102 | (φ : Definitions.DerivativeFactorization.Input (Sum ι κ)) (ψ : Definitions.DerivativeFactorization.Input ι) (χ : Definitions.DerivativeFactorization.Input κ) |
| 103 | (hφ : ∀ a, φ.1 a = ψ.1 (fun i => a (Sum.inl i)) * χ.1 (fun j => a (Sum.inr j))) |
| 104 | (u : ι → ℂ) (v : κ → ℂ) : |
| 105 | iteratedFDeriv ℂ 2 (Definitions.DerivativeFactorization.completed φ Z) 0 ![Sum.elim 0 v, Sum.elim u 0] = |
| 106 | fderiv ℂ (Definitions.DerivativeFactorization.completed ψ Z₁) 0 u * fderiv ℂ (Definitions.DerivativeFactorization.completed χ Z₂) 0 v := by |
| 107 | rw [completed_tensor h_DerivativeFactorization Z₁ Z₂ Z hZ φ ψ χ hφ] |
| 108 | have hf : ContDiff ℂ 2 (Definitions.DerivativeFactorization.completed ψ Z₁) := (Analysis.adelic_analysis h_GaussianConvergence₁ ψ Z₁).2.of_le (by simp) |
| 109 | have hg : ContDiff ℂ 2 (Definitions.DerivativeFactorization.completed χ Z₂) := (Analysis.adelic_analysis h_GaussianConvergence₂ χ Z₂).2.of_le (by simp) |
| 110 | have h := Calculus.mixed_hessian (rightProjection (ι := ι) (κ := κ)) |
| 111 | (leftProjection (ι := ι) (κ := κ)) (Definitions.DerivativeFactorization.completed χ Z₂) (Definitions.DerivativeFactorization.completed ψ Z₁) hg hf |
| 112 | (Sum.elim (0 : ι → ℂ) v) (Sum.elim u (0 : κ → ℂ)) rfl rfl |
| 113 | have hLu : leftProjection (Sum.elim u (0 : κ → ℂ)) = u := rfl |
| 114 | have hRv : rightProjection (Sum.elim (0 : ι → ℂ) v) = v := rfl |
| 115 | rw [hLu, hRv] at h |
| 116 | simpa only [mul_comm] using h |
| 117 | |
| 118 | end |
| 119 | |
| 120 | end OAI.RepresentationTheory.Theta.Kernel.Factorization |