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 | /- |
| 2 | Copyright 2026 The Formal Conjectures Authors. |
| 3 | |
| 4 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | you may not use this file except in compliance with the License. |
| 6 | You may obtain a copy of the License at |
| 7 | |
| 8 | https://www.apache.org/licenses/LICENSE-2.0 |
| 9 | |
| 10 | Unless required by applicable law or agreed to in writing, software |
| 11 | distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | See the License for the specific language governing permissions and |
| 14 | limitations under the License. |
| 15 | This file has been modified. |
| 16 | -/ |
| 17 | import OAI.Algebra.DeRham.Basic |
| 18 | |
| 19 | /-! # Basic Squared -/ |
| 20 | |
| 21 | namespace OAI.Algebra.DeRham.BasicSquared |
| 22 | |
| 23 | noncomputable section |
| 24 | |
| 25 | open _root_.Algebra |
| 26 | |
| 27 | /-! |
| 28 | # Algebraic de Rham forms |
| 29 | |
| 30 | -/ |
| 31 | |
| 32 | universe u |
| 33 | |
| 34 | open CliffordAlgebra (involute involute_ι) |
| 35 | open TrivSqZeroExt (snd) |
| 36 | |
| 37 | variable (R A : Type u) [CommRing R] [CommRing A] [Algebra R A] |
| 38 | |
| 39 | variable {R A} |
| 40 | |
| 41 | variable (R A) |
| 42 | |
| 43 | /-- The exterior derivative anticommutes with the grade involution, since it raises the degree |
| 44 | by one. -/ |
| 45 | lemma extDeriv_involute (x : Basic.ExtAlg R A) : |
| 46 | Basic.extDeriv R A (involute x) = -involute (Basic.extDeriv R A x) := by |
| 47 | induction x using ExteriorAlgebra.induction with |
| 48 | | algebraMap a => simp |
| 49 | | ι ω => simp [Basic.involute_snd_phi] |
| 50 | | mul x y hx hy => |
| 51 | rw [map_mul, Basic.extDeriv_mul, hx, hy, Basic.extDeriv_mul, map_add, map_mul, map_mul, |
| 52 | CliffordAlgebra.involute_involute] |
| 53 | simp only [mul_neg, neg_mul, neg_add] |
| 54 | | add x y hx hy => simp only [map_add, hx, hy, neg_add] |
| 55 | |
| 56 | lemma extDeriv_snd_phi (ω : Ω[A⁄R]) : Basic.extDeriv R A (snd (Basic.phi R A ω)) = 0 := by |
| 57 | induction ω using Basic.D_induction with |
| 58 | | D a => simp |
| 59 | | zero => simp |
| 60 | | add x y hx hy => rw [map_add, TrivSqZeroExt.snd_add, map_add, hx, hy, add_zero] |
| 61 | | smul a x hx => |
| 62 | rw [Basic.snd_phi_smul, map_add, Algebra.smul_def, Basic.extDeriv_mul, Basic.extDeriv_mul, hx, |
| 63 | AlgHom.commutes, Basic.extDeriv_algebraMap, mul_zero, zero_add, involute_ι] |
| 64 | simp only [Basic.extDeriv_ι, Basic.phi_D, TrivSqZeroExt.snd_inl, zero_mul, add_zero, neg_mul] |
| 65 | abel |
| 66 | |
| 67 | /-- The exterior derivative squares to zero. -/ |
| 68 | lemma extDeriv_extDeriv (x : Basic.ExtAlg R A) : Basic.extDeriv R A (Basic.extDeriv R A x) = 0 := by |
| 69 | induction x using ExteriorAlgebra.induction with |
| 70 | | algebraMap a => simp |
| 71 | | ι ω => rw [Basic.extDeriv_ι]; exact extDeriv_snd_phi R A ω |
| 72 | | mul x y hx hy => |
| 73 | rw [Basic.extDeriv_mul, map_add, Basic.extDeriv_mul, Basic.extDeriv_mul, hx, hy, extDeriv_involute, |
| 74 | CliffordAlgebra.involute_involute] |
| 75 | simp only [mul_zero, zero_mul, neg_mul, zero_add, add_zero, neg_add_cancel] |
| 76 | | add x y hx hy => rw [map_add, map_add, hx, hy, add_zero] |
| 77 | |
| 78 | lemma differential_squared (p : ℕ) (x : Basic.Form R A p) : |
| 79 | Basic.differential R A (p + 1) (Basic.differential R A p x) = 0 := |
| 80 | Subtype.ext (extDeriv_extDeriv R A x) |
| 81 | |
| 82 | /-! ### Functoriality -/ |
| 83 | |
| 84 | section Tower |
| 85 | |
| 86 | variable (B : Type u) [CommRing B] [Algebra R B] [Algebra A B] [IsScalarTower R A B] |
| 87 | |
| 88 | lemma extAlgMap_involute (x : Basic.ExtAlg R A) : |
| 89 | Basic.extAlgMap R A B (involute x) = involute (Basic.extAlgMap R A B x) := by |
| 90 | induction x using ExteriorAlgebra.induction with |
| 91 | | algebraMap a => simp |
| 92 | | ι ω => simp |
| 93 | | mul x y hx hy => simp only [map_mul, hx, hy] |
| 94 | | add x y hx hy => simp only [map_add, hx, hy] |
| 95 | |
| 96 | lemma extAlgMap_snd_phi (ω : Ω[A⁄R]) : |
| 97 | Basic.extAlgMap R A B (snd (Basic.phi R A ω)) = |
| 98 | snd (Basic.phi R B (KaehlerDifferential.map R R A B ω)) := by |
| 99 | induction ω using Basic.D_induction with |
| 100 | | D a => simp |
| 101 | | zero => simp |
| 102 | | add x y hx hy => simp only [map_add, Basic.Sq.snd_add, hx, hy] |
| 103 | | smul a x hx => |
| 104 | rw [Basic.snd_phi_smul, map_add, map_smul, hx, map_mul, Basic.extAlgMap_ι, Basic.extAlgMap_ι, |
| 105 | KaehlerDifferential.map_D, map_smul, |
| 106 | ← algebraMap_smul (R := A) B a (KaehlerDifferential.map R R A B x), Basic.snd_phi_smul, |
| 107 | ← algebraMap_smul (R := A) B a (snd (Basic.phi R B (KaehlerDifferential.map R R A B x)))] |
| 108 | |
| 109 | lemma extAlgMap_extDeriv (x : Basic.ExtAlg R A) : |
| 110 | Basic.extAlgMap R A B (Basic.extDeriv R A x) = Basic.extDeriv R B (Basic.extAlgMap R A B x) := by |
| 111 | induction x using ExteriorAlgebra.induction with |
| 112 | | algebraMap a => |
| 113 | rw [Basic.extDeriv_algebraMap, Basic.extAlgMap_ι, KaehlerDifferential.map_D, Basic.extAlgMap_algebraMap, |
| 114 | Basic.extDeriv_algebraMap] |
| 115 | | ι ω => rw [Basic.extDeriv_ι, extAlgMap_snd_phi, Basic.extAlgMap_ι, Basic.extDeriv_ι] |
| 116 | | mul x y hx hy => |
| 117 | rw [Basic.extDeriv_mul, map_add, map_mul, map_mul, hx, hy, extAlgMap_involute, map_mul, |
| 118 | Basic.extDeriv_mul] |
| 119 | | add x y hx hy => simp only [map_add, hx, hy] |
| 120 | |
| 121 | end Tower |
| 122 | |
| 123 | variable {A} |
| 124 | variable {B C : Type u} [CommRing B] [CommRing C] [Algebra R B] [Algebra R C] |
| 125 | |
| 126 | lemma map_differential (f : A →ₐ[R] B) (p : ℕ) (x : Basic.Form R A p) : |
| 127 | Basic.map R f (p + 1) (Basic.differential R A p x) = Basic.differential R B p (Basic.map R f p x) := by |
| 128 | let _ := f.toAlgebra |
| 129 | exact Subtype.ext (extAlgMap_extDeriv R A B x) |
| 130 | |
| 131 | end |
| 132 | |
| 133 | end OAI.Algebra.DeRham.BasicSquared |