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 Mathlib.LinearAlgebra.Prod |
| 2 | import Mathlib.Tactic.Abel |
| 3 | |
| 4 | /-! # Complex Gaussian -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.Quotients.FiniteDescent.ComplexGaussian.Construction.LocalSectionLifting |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Removing an invertible block from a differential by explicit changes of coordinates. -/ |
| 11 | |
| 12 | universe u v₁ v₂ v₃ v₄ |
| 13 | |
| 14 | variable {R : Type u} [CommRing R] |
| 15 | {A : Type v₁} [AddCommGroup A] [Module R A] |
| 16 | {B : Type v₂} [AddCommGroup B] [Module R B] |
| 17 | {C : Type v₃} [AddCommGroup C] [Module R C] |
| 18 | {D : Type v₄} [AddCommGroup D] [Module R D] |
| 19 | |
| 20 | def blockSourceShear (c : A →ₗ[R] D) (d : B ≃ₗ[R] D) : (A × B) ≃ₗ[R] (A × B) where |
| 21 | toFun x := (x.1, x.2 - d.symm (c x.1)) |
| 22 | invFun x := (x.1, x.2 + d.symm (c x.1)) |
| 23 | left_inv x := by rcases x with ⟨x, y⟩; simp |
| 24 | right_inv x := by rcases x with ⟨x, y⟩; simp |
| 25 | map_add' x y := by ext <;> simp [map_add, sub_add_sub_comm] |
| 26 | map_smul' r x := by ext <;> simp [smul_sub] |
| 27 | |
| 28 | def blockTargetShear (b : B →ₗ[R] C) (d : B ≃ₗ[R] D) : (C × D) ≃ₗ[R] (C × D) where |
| 29 | toFun x := (x.1 - b (d.symm x.2), x.2) |
| 30 | invFun x := (x.1 + b (d.symm x.2), x.2) |
| 31 | left_inv x := by rcases x with ⟨x, y⟩; simp |
| 32 | right_inv x := by rcases x with ⟨x, y⟩; simp |
| 33 | map_add' x y := by ext <;> simp [map_add, sub_add_sub_comm] |
| 34 | map_smul' r x := by ext <;> simp [smul_sub] |
| 35 | |
| 36 | def blockDifferential (a : A →ₗ[R] C) (b : B →ₗ[R] C) (c : A →ₗ[R] D) (d : B ≃ₗ[R] D) : |
| 37 | (A × B) →ₗ[R] (C × D) := |
| 38 | (a.coprod b).prod (c.coprod d.toLinearMap) |
| 39 | |
| 40 | def schurDifferential (a : A →ₗ[R] C) (b : B →ₗ[R] C) (c : A →ₗ[R] D) (d : B ≃ₗ[R] D) : |
| 41 | A →ₗ[R] C := a - b.comp (d.symm.toLinearMap.comp c) |
| 42 | |
| 43 | theorem blockDifferential_normal_form (a : A →ₗ[R] C) (b : B →ₗ[R] C) |
| 44 | (c : A →ₗ[R] D) (d : B ≃ₗ[R] D) (x : A × B) : |
| 45 | blockTargetShear b d (blockDifferential a b c d (blockSourceShear c d x)) = |
| 46 | (schurDifferential a b c d x.1, d x.2) := by |
| 47 | rcases x with ⟨x, y⟩ |
| 48 | apply Prod.ext |
| 49 | · change a x + b (y - d.symm (c x)) - b (d.symm (c x + d (y - d.symm (c x)))) = |
| 50 | a x - b (d.symm (c x)) |
| 51 | simp only [map_sub, map_add, |
| 52 | LinearEquiv.apply_symm_apply, LinearEquiv.symm_apply_apply] |
| 53 | abel |
| 54 | · simp [blockTargetShear, blockDifferential, blockSourceShear] |
| 55 | |
| 56 | theorem blockDifferential_target_coordinates (a : A →ₗ[R] C) (b : B →ₗ[R] C) |
| 57 | (c : A →ₗ[R] D) (d : B ≃ₗ[R] D) (x : A × B) : |
| 58 | blockTargetShear b d (blockDifferential a b c d x) = |
| 59 | (schurDifferential a b c d x.1, d (((blockSourceShear c d).symm x).2)) := by |
| 60 | have h := blockDifferential_normal_form a b c d ((blockSourceShear c d).symm x) |
| 61 | rw [LinearEquiv.apply_symm_apply] at h |
| 62 | exact h |
| 63 | |
| 64 | theorem blockDifferential_lift_schur (a : A →ₗ[R] C) (b : B →ₗ[R] C) |
| 65 | (c : A →ₗ[R] D) (d : B ≃ₗ[R] D) (x : A) : |
| 66 | blockDifferential a b c d (blockSourceShear c d (x, 0)) = (schurDifferential a b c d x, 0) := by |
| 67 | apply (blockTargetShear b d).injective |
| 68 | exact (blockDifferential_normal_form a b c d (x, 0)).trans (by simp [blockTargetShear]) |
| 69 | |
| 70 | end |
| 71 | |
| 72 | end OAI.AlgebraicGeometry.Quotients.FiniteDescent.ComplexGaussian.Construction.LocalSectionLifting |