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.AbelianModuli.ReferenceFamily.Hermitian.Reflection |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.ReflectionMatrix |
| 3 | import Mathlib.LinearAlgebra.Determinant |
| 4 | |
| 5 | /-! # Reflection Determinant -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.ReflectionDeterminant |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | section |
| 12 | |
| 13 | /-! The constructed rank-three Hermitian reflections have determinant |
| 14 | minus one, and their actual composite is a determinant-one isometry. -/ |
| 15 | |
| 16 | section General |
| 17 | |
| 18 | variable {k : Type*} [CommRing k] |
| 19 | |
| 20 | theorem linearFunctional_single_sum (ℓ : (Fin 3 → k) →ₗ[k] k) (v : Fin 3 → k) : |
| 21 | (∑ i, v i * ℓ (Pi.single i 1)) = ℓ v := by |
| 22 | calc |
| 23 | (∑ i, v i * ℓ (Pi.single i 1)) = ℓ (∑ i, v i • Pi.single i 1) := by |
| 24 | simp only [map_sum, map_smul, smul_eq_mul] |
| 25 | _ = ℓ v := by |
| 26 | congr 1 |
| 27 | ext j |
| 28 | simp [Pi.single_apply] |
| 29 | |
| 30 | theorem linearReflectionMap_toMatrix |
| 31 | (ℓ : (Fin 3 → k) →ₗ[k] k) (v : Fin 3 → k) : |
| 32 | LinearMap.toMatrix' (LinearReflection.linearReflectionMap ℓ v) = |
| 33 | ReflectionMatrix.rankThreeReflectionMatrix v (fun j => ℓ (Pi.single j 1)) := by |
| 34 | ext i j |
| 35 | by_cases h : i = j <;> |
| 36 | simp [LinearMap.toMatrix'_apply, LinearReflection.linearReflectionMap, ReflectionMatrix.rankThreeReflectionMatrix, |
| 37 | h, eq_comm] <;> ring |
| 38 | |
| 39 | theorem linearReflectionMap_det |
| 40 | (ℓ : (Fin 3 → k) →ₗ[k] k) (v : Fin 3 → k) (h : ℓ v = 1) : |
| 41 | LinearMap.det (LinearReflection.linearReflectionMap ℓ v) = -1 := by |
| 42 | rw [← LinearMap.det_toMatrix', linearReflectionMap_toMatrix] |
| 43 | exact ReflectionMatrix.rankThreeReflectionMatrix_det v (fun j => ℓ (Pi.single j 1)) |
| 44 | ((linearFunctional_single_sum ℓ v).trans h) |
| 45 | |
| 46 | theorem linearReflectionEquiv_det |
| 47 | (ℓ : (Fin 3 → k) →ₗ[k] k) (v : Fin 3 → k) (h : ℓ v = 1) : |
| 48 | LinearMap.det (LinearReflection.linearReflectionEquiv ℓ v h).toLinearMap = -1 := |
| 49 | linearReflectionMap_det ℓ v h |
| 50 | |
| 51 | end General |
| 52 | |
| 53 | variable {k : Type*} [Field k] (σ : k →+* k) |
| 54 | (B : (Fin 3 → k) →ₗ[k] (Fin 3 → k) →ₛₗ[σ] k) |
| 55 | |
| 56 | theorem hermitianReflection_det (v : Fin 3 → k) (hv : B v v ≠ 0) : |
| 57 | LinearMap.det (ReferenceFamily.Hermitian.Reflection.hermitianReflection σ B v hv).toLinearMap = -1 := |
| 58 | linearReflectionEquiv_det (ReferenceFamily.Hermitian.Reflection.hermitianReflectionFunctional σ B v) v |
| 59 | (ReferenceFamily.Hermitian.Reflection.hermitianReflectionFunctional_normalized σ B v hv) |
| 60 | |
| 61 | def twoHermitianReflections (v w : Fin 3 → k) |
| 62 | (hv : B v v ≠ 0) (hw : B w w ≠ 0) : (Fin 3 → k) ≃ₗ[k] (Fin 3 → k) := |
| 63 | (ReferenceFamily.Hermitian.Reflection.hermitianReflection σ B w hw).trans (ReferenceFamily.Hermitian.Reflection.hermitianReflection σ B v hv) |
| 64 | |
| 65 | theorem twoHermitianReflections_preserves |
| 66 | (hB : ∀ x y, B x y = σ (B y x)) (v w : Fin 3 → k) |
| 67 | (hv : B v v ≠ 0) (hw : B w w ≠ 0) (x y : Fin 3 → k) : |
| 68 | B (twoHermitianReflections σ B v w hv hw x) |
| 69 | (twoHermitianReflections σ B v w hv hw y) = B x y := by |
| 70 | change B (ReferenceFamily.Hermitian.Reflection.hermitianReflection σ B v hv (ReferenceFamily.Hermitian.Reflection.hermitianReflection σ B w hw x)) |
| 71 | (ReferenceFamily.Hermitian.Reflection.hermitianReflection σ B v hv (ReferenceFamily.Hermitian.Reflection.hermitianReflection σ B w hw y)) = B x y |
| 72 | rw [ReferenceFamily.Hermitian.Reflection.hermitianReflection_preserves σ B hB, ReferenceFamily.Hermitian.Reflection.hermitianReflection_preserves σ B hB] |
| 73 | |
| 74 | theorem twoHermitianReflections_det (v w : Fin 3 → k) |
| 75 | (hv : B v v ≠ 0) (hw : B w w ≠ 0) : |
| 76 | LinearMap.det (twoHermitianReflections σ B v w hv hw).toLinearMap = 1 := by |
| 77 | change LinearMap.det ((ReferenceFamily.Hermitian.Reflection.hermitianReflection σ B v hv).toLinearMap.comp |
| 78 | (ReferenceFamily.Hermitian.Reflection.hermitianReflection σ B w hw).toLinearMap) = 1 |
| 79 | rw [LinearMap.det_comp, hermitianReflection_det σ B v hv, |
| 80 | hermitianReflection_det σ B w hw] |
| 81 | ring |
| 82 | |
| 83 | end |
| 84 | |
| 85 | /-! Swapping the two constructed reflections gives the actual inverse |
| 86 | linear equivalence. Thus denominator control for the reverse product |
| 87 | controls the inverse map itself. |
| 88 | -/ |
| 89 | |
| 90 | theorem hermitianReflection_involutive |
| 91 | {k V : Type*} [Field k] [AddCommGroup V] [Module k V] |
| 92 | (σ : k →+* k) (B : V →ₗ[k] V →ₛₗ[σ] k) (v : V) (hv : B v v ≠ 0) : |
| 93 | Function.Involutive (ReferenceFamily.Hermitian.Reflection.hermitianReflection σ B v hv) := |
| 94 | LinearReflection.linearReflectionMap_involutive (ReferenceFamily.Hermitian.Reflection.hermitianReflectionFunctional σ B v) v |
| 95 | (ReferenceFamily.Hermitian.Reflection.hermitianReflectionFunctional_normalized σ B v hv) |
| 96 | |
| 97 | variable {k : Type*} [Field k] (σ : k →+* k) |
| 98 | (B : (Fin 3 → k) →ₗ[k] (Fin 3 → k) →ₛₗ[σ] k) |
| 99 | |
| 100 | theorem twoHermitianReflections_reverse_apply |
| 101 | (v w : Fin 3 → k) (hv : B v v ≠ 0) (hw : B w w ≠ 0) (x : Fin 3 → k) : |
| 102 | twoHermitianReflections σ B w v hw hv |
| 103 | (twoHermitianReflections σ B v w hv hw x) = x := by |
| 104 | change ReferenceFamily.Hermitian.Reflection.hermitianReflection σ B w hw (ReferenceFamily.Hermitian.Reflection.hermitianReflection σ B v hv |
| 105 | (ReferenceFamily.Hermitian.Reflection.hermitianReflection σ B v hv (ReferenceFamily.Hermitian.Reflection.hermitianReflection σ B w hw x))) = x |
| 106 | rw [hermitianReflection_involutive σ B v hv, hermitianReflection_involutive σ B w hw] |
| 107 | |
| 108 | theorem twoHermitianReflections_symm |
| 109 | (v w : Fin 3 → k) (hv : B v v ≠ 0) (hw : B w w ≠ 0) : |
| 110 | (twoHermitianReflections σ B v w hv hw).symm = |
| 111 | twoHermitianReflections σ B w v hw hv := by |
| 112 | apply LinearEquiv.ext |
| 113 | intro x |
| 114 | apply (twoHermitianReflections σ B v w hv hw).injective |
| 115 | rw [LinearEquiv.apply_symm_apply] |
| 116 | exact (twoHermitianReflections_reverse_apply σ B w v hw hv x).symm |
| 117 | |
| 118 | end |
| 119 | |
| 120 | end OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.ReflectionDeterminant |