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.ArithmeticGeometry.Models.SpreadingOut.FiberDomainTransfer |
| 2 | import Mathlib.RingTheory.TensorProduct.Quotient |
| 3 | |
| 4 | /-! # Principal Flat Shrink -/ |
| 5 | |
| 6 | namespace OAI.ArithmeticGeometry.Models.SpreadingOut.PrincipalFlatShrink.Construction |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Shrinking a Dedekind base makes a prescribed principal quotient flat, |
| 11 | so integrality of the principal chart controls every ambient field fiber. -/ |
| 12 | |
| 13 | open scoped TensorProduct |
| 14 | |
| 15 | universe u |
| 16 | |
| 17 | def tensorPrincipalQuotientIso |
| 18 | (R S B : Type u) [CommRing R] [CommRing S] [CommRing B] |
| 19 | [Algebra R S] [Algebra R B] (b : B) : |
| 20 | S ⊗[R] (B ⧸ Ideal.span ({b} : Set B)) ≃ₐ[S] |
| 21 | (S ⊗[R] B) ⧸ Ideal.span ({(1 : S) ⊗ₜ[R] b} : Set _) := by |
| 22 | refine (Algebra.TensorProduct.tensorQuotientEquiv S B S (Ideal.span {b})).trans |
| 23 | (Ideal.quotientEquivAlgOfEq S ?_) |
| 24 | rw [Ideal.map_span, Set.image_singleton] |
| 25 | rfl |
| 26 | |
| 27 | theorem tensor_mulLeft_eq_lTensor |
| 28 | (R S B : Type u) [CommRing R] [CommRing S] [CommRing B] |
| 29 | [Algebra R S] [Algebra R B] (b : B) : |
| 30 | LinearMap.mulLeft R (1 ⊗ₜ[R] b : S ⊗[R] B) = (LinearMap.mulLeft R b).lTensor S := by |
| 31 | ext s x |
| 32 | change (1 ⊗ₜ[R] b) * (s ⊗ₜ[R] x) = s ⊗ₜ[R] (b * x) |
| 33 | rw [Algebra.TensorProduct.tmul_mul_tmul, one_mul] |
| 34 | |
| 35 | theorem principal_quotient_flat_after_inverting_base_element |
| 36 | (R B : Type u) [CommRing R] [IsDedekindDomain R] |
| 37 | [CommRing B] [IsNoetherianRing B] [Algebra R B] (b : B) : |
| 38 | ∃ r : R, r ≠ 0 ∧ Module.Flat (Localization.Away r) |
| 39 | ((Localization.Away r ⊗[R] B) ⧸ Ideal.span ({(1 : Localization.Away r) ⊗ₜ[R] b} : Set _)) := by |
| 40 | obtain ⟨r, hr, hf⟩ := GenericFlatness.Construction.finite_module_flat_over_localization R B (B ⧸ Ideal.span {b}) |
| 41 | have := hf |
| 42 | exact ⟨r, hr, Module.Flat.of_linearEquiv (tensorPrincipalQuotientIso R (Localization.Away r) B b).symm.toLinearEquiv⟩ |
| 43 | |
| 44 | theorem principal_chart_controls_fibers_after_shrinking |
| 45 | (R B : Type u) [CommRing R] [IsDedekindDomain R] |
| 46 | [CommRing B] [IsDomain B] [IsNoetherianRing B] [Algebra R B] (b : B) (hb : b ≠ 0) : |
| 47 | ∃ r : R, r ≠ 0 ∧ |
| 48 | ∀ (k : Type u) [Field k] [Algebra (Localization.Away r) k], |
| 49 | IsDomain (k ⊗[Localization.Away r] |
| 50 | Localization.Away (1 ⊗ₜ[R] b : Localization.Away r ⊗[R] B)) → |
| 51 | IsDomain (k ⊗[Localization.Away r] (Localization.Away r ⊗[R] B)) := by |
| 52 | obtain ⟨r, hr, hf⟩ := principal_quotient_flat_after_inverting_base_element R B b |
| 53 | have := hf |
| 54 | refine ⟨r, hr, fun k _ _ hk ↦ ?_⟩ |
| 55 | have := hk |
| 56 | apply FiberDomainTransfer.Construction.fiber_domain_of_flat_principal_quotient (Localization.Away r) k |
| 57 | (Localization.Away r ⊗[R] B) (1 ⊗ₜ[R] b) |
| 58 | change Function.Injective (LinearMap.mulLeft R (1 ⊗ₜ[R] b : Localization.Away r ⊗[R] B)) |
| 59 | rw [tensor_mulLeft_eq_lTensor] |
| 60 | exact Module.Flat.lTensor_preserves_injective_linearMap (LinearMap.mulLeft R b) |
| 61 | (mul_right_injective₀ hb) |
| 62 | |
| 63 | end |
| 64 | |
| 65 | end OAI.ArithmeticGeometry.Models.SpreadingOut.PrincipalFlatShrink.Construction |