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.HilbertScheme.Presentations.Graded.ModuleGenerators |
| 2 | |
| 3 | /-! # Shift Equiv -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.Graded.ShiftEquiv.GradedModules |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! A homogeneous automorphism induces equivalences between shifted degree pieces. -/ |
| 10 | |
| 11 | open DirectSum |
| 12 | |
| 13 | universe u v |
| 14 | |
| 15 | variable {R : Type u} [CommRing R] {M : Type v} [AddCommGroup M] [Module R M] |
| 16 | variable (ℳ : ℤ → Submodule R M) [Decomposition ℳ] |
| 17 | |
| 18 | theorem map_shifted_component (f : M →ₗ[R] M) (e : ℤ) |
| 19 | (hf : ∀ d m, m ∈ ℳ d → f m ∈ ℳ (d + e)) (d : ℤ) (m : M) : |
| 20 | f (decompose ℳ m d).val = (decompose ℳ (f m) (d + e)).val := by |
| 21 | induction m using Decomposition.inductionOn ℳ with |
| 22 | | zero => simp |
| 23 | | homogeneous m => |
| 24 | rename_i i |
| 25 | by_cases hi : i = d |
| 26 | · subst i |
| 27 | rw [decompose_of_mem_same ℳ m.property, decompose_of_mem_same ℳ (hf d m.val m.property)] |
| 28 | · have hie : i + e ≠ d + e := fun h => hi (add_right_cancel h) |
| 29 | rw [decompose_of_mem_ne ℳ m.property hi, |
| 30 | decompose_of_mem_ne ℳ (hf i m.val m.property) hie, map_zero] |
| 31 | | add x y hx hy => |
| 32 | rw [decompose_add, map_add, decompose_add] |
| 33 | change f ((decompose ℳ x d).val + (decompose ℳ y d).val) = |
| 34 | (decompose ℳ (f x) (d + e)).val + (decompose ℳ (f y) (d + e)).val |
| 35 | rw [map_add, hx, hy] |
| 36 | |
| 37 | def shiftedDegreeMap (f : M →ₗ[R] M) (e : ℤ) |
| 38 | (hf : ∀ d m, m ∈ ℳ d → f m ∈ ℳ (d + e)) (d : ℤ) : ℳ d →ₗ[R] ℳ (d + e) := |
| 39 | (f.comp (ℳ d).subtype).codRestrict (ℳ (d + e)) (fun m => hf d m.val m.property) |
| 40 | |
| 41 | def gradedShiftEquiv (f : M ≃ₗ[R] M) (e : ℤ) |
| 42 | (hf : ∀ d m, m ∈ ℳ d → f m ∈ ℳ (d + e)) (d : ℤ) : ℳ d ≃ₗ[R] ℳ (d + e) := |
| 43 | LinearEquiv.ofBijective (shiftedDegreeMap ℳ f.toLinearMap e hf d) ⟨by |
| 44 | intro x y h |
| 45 | exact Subtype.ext (f.injective (congrArg Subtype.val h)), by |
| 46 | intro y |
| 47 | refine ⟨decompose ℳ (f.symm y.val) d, Subtype.ext ?_⟩ |
| 48 | refine (map_shifted_component ℳ f.toLinearMap e hf d (f.symm y.val)).trans ?_ |
| 49 | change (decompose ℳ (f (f.symm y.val)) (d + e)).val = y.val |
| 50 | rw [LinearEquiv.apply_symm_apply, decompose_of_mem_same ℳ y.property]⟩ |
| 51 | |
| 52 | end |
| 53 | |
| 54 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.Graded.ShiftEquiv.GradedModules |