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.Complex.Orientation |
| 2 | import Mathlib.RingTheory.Complex |
| 3 | import Mathlib.RingTheory.Norm.Transitivity |
| 4 | |
| 5 | /-! # Complex Orientation -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.CycleClass.Geometric.ComplexOrientation |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-!+# Complex orientations of finite-dimensional tangent model spaces |
| 12 | |
| 13 | The real determinant of a complex-linear automorphism is the squared complex |
| 14 | norm of its complex determinant and is therefore positive. The real bases |
| 15 | `(v₁, I v₁, …, vₙ, I vₙ)` consequently give one orientation independent of |
| 16 | the chosen complex basis. These are linear-algebraic prerequisites for cycle |
| 17 | orientations; this file does not construct fundamental or cycle classes. |
| 18 | -/ |
| 19 | |
| 20 | open _root_.Module |
| 21 | |
| 22 | variable {V W : Type*} |
| 23 | variable [AddCommGroup V] [Module ℂ V] [Module ℝ V] [IsScalarTower ℝ ℂ V] |
| 24 | variable [AddCommGroup W] [Module ℂ W] [Module ℝ W] [IsScalarTower ℝ ℂ W] |
| 25 | |
| 26 | /-- The determinant after restricting a complex-linear map to real scalars. -/ |
| 27 | theorem complexLinearMap_realDet (f : V →ₗ[ℂ] V) : |
| 28 | LinearMap.det (f.restrictScalars ℝ) = Complex.normSq (LinearMap.det f) := by |
| 29 | rw [LinearMap.det_restrictScalars, Algebra.norm_complex_apply] |
| 30 | |
| 31 | /-- Every complex-linear automorphism has positive real determinant. -/ |
| 32 | theorem complexLinearEquiv_realDet_pos (e : V ≃ₗ[ℂ] V) : |
| 33 | 0 < LinearMap.det ((e.restrictScalars ℝ).toLinearMap) := by |
| 34 | change 0 < LinearMap.det (e.toLinearMap.restrictScalars ℝ) |
| 35 | rw [complexLinearMap_realDet, Complex.normSq_pos] |
| 36 | exact e.isUnit_det'.ne_zero |
| 37 | |
| 38 | variable {ι : Type*} |
| 39 | |
| 40 | /-- The real basis obtained from a complex basis by replacing each vector with |
| 41 | itself and its multiple by `I`, in that order. -/ |
| 42 | def complexRealBasis (b : Basis ι ℂ V) : Basis (ι × Fin 2) ℝ V := |
| 43 | Complex.basisOneI.smulTower' b |
| 44 | |
| 45 | @[simp] |
| 46 | theorem complexRealBasis_apply (b : Basis ι ℂ V) (i : ι) (j : Fin 2) : |
| 47 | complexRealBasis b (i, j) = Complex.basisOneI j • b i := by |
| 48 | exact Complex.basisOneI.smulTower'_apply b (i, j) |
| 49 | |
| 50 | @[simp] |
| 51 | theorem complexRealBasis_map (b : Basis ι ℂ V) (e : V ≃ₗ[ℂ] W) : |
| 52 | complexRealBasis (b.map e) = (complexRealBasis b).map (e.restrictScalars ℝ) := by |
| 53 | ext ij |
| 54 | simp [complexRealBasis, Basis.smulTower'_apply] |
| 55 | |
| 56 | variable [Fintype ι] [DecidableEq ι] |
| 57 | |
| 58 | /-- The complex orientation as presented by a complex basis. -/ |
| 59 | def complexOrientationOfBasis (b : Basis ι ℂ V) : Orientation ℝ V (ι × Fin 2) := |
| 60 | (complexRealBasis b).orientation |
| 61 | |
| 62 | theorem complexOrientationOfBasis_map (b : Basis ι ℂ V) (e : V ≃ₗ[ℂ] W) : |
| 63 | complexOrientationOfBasis (b.map e) = |
| 64 | Orientation.map (ι × Fin 2) (e.restrictScalars ℝ) (complexOrientationOfBasis b) := by |
| 65 | rw [complexOrientationOfBasis, complexRealBasis_map, Basis.orientation_map] |
| 66 | rfl |
| 67 | |
| 68 | /-- A complex-linear automorphism preserves the orientation of any real basis. -/ |
| 69 | theorem complexLinearEquiv_preserves_realBasis_orientation |
| 70 | {κ : Type*} [Fintype κ] [DecidableEq κ] |
| 71 | (b : Basis κ ℝ V) (e : V ≃ₗ[ℂ] V) : |
| 72 | Orientation.map κ (e.restrictScalars ℝ) b.orientation = b.orientation := by |
| 73 | rw [← Basis.orientation_map] |
| 74 | exact (b.orientation_comp_linearEquiv_eq_iff_det_pos (e.restrictScalars ℝ)).2 |
| 75 | (complexLinearEquiv_realDet_pos e) |
| 76 | |
| 77 | /-- The orientation from the paired real basis is independent of the complex basis. -/ |
| 78 | theorem complexOrientationOfBasis_eq (b c : Basis ι ℂ V) : |
| 79 | complexOrientationOfBasis b = complexOrientationOfBasis c := by |
| 80 | let e := b.equiv c (Equiv.refl ι) |
| 81 | have he : b.map e = c := by |
| 82 | simp [e] |
| 83 | calc |
| 84 | complexOrientationOfBasis b = |
| 85 | Orientation.map (ι × Fin 2) (e.restrictScalars ℝ) (complexOrientationOfBasis b) := |
| 86 | (complexLinearEquiv_preserves_realBasis_orientation (complexRealBasis b) e).symm |
| 87 | _ = complexOrientationOfBasis (b.map e) := (complexOrientationOfBasis_map b e).symm |
| 88 | _ = complexOrientationOfBasis c := congrArg complexOrientationOfBasis he |
| 89 | |
| 90 | /-- Complex-linear coordinate transitions preserve the orientations defined by |
| 91 | any complex bases on the source and target. -/ |
| 92 | theorem complexOrientationOfBasis_equiv (b : Basis ι ℂ V) (c : Basis ι ℂ W) |
| 93 | (e : V ≃ₗ[ℂ] W) : |
| 94 | Orientation.map (ι × Fin 2) (e.restrictScalars ℝ) (complexOrientationOfBasis b) = |
| 95 | complexOrientationOfBasis c := by |
| 96 | rw [← complexOrientationOfBasis_map] |
| 97 | exact complexOrientationOfBasis_eq (b.map e) c |
| 98 | |
| 99 | /-- The standard complex orientation on the real tangent model space `ℂⁿ`. -/ |
| 100 | def standardComplexOrientation (n : ℕ) : |
| 101 | Orientation ℝ (Fin n → ℂ) (Fin n × Fin 2) := |
| 102 | complexOrientationOfBasis (Pi.basisFun ℂ (Fin n)) |
| 103 | |
| 104 | /-- Every complex-linear change of standard complex coordinates preserves |
| 105 | the standard real orientation. -/ |
| 106 | theorem standardComplexOrientation_preserved (n : ℕ) |
| 107 | (e : (Fin n → ℂ) ≃ₗ[ℂ] (Fin n → ℂ)) : |
| 108 | Orientation.map (Fin n × Fin 2) (e.restrictScalars ℝ) |
| 109 | (standardComplexOrientation n) = standardComplexOrientation n := by |
| 110 | exact complexOrientationOfBasis_equiv (Pi.basisFun ℂ (Fin n)) |
| 111 | (Pi.basisFun ℂ (Fin n)) e |
| 112 | |
| 113 | end |
| 114 | |
| 115 | end OAI.AlgebraicGeometry.CycleClass.Geometric.ComplexOrientation |