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.RingTheory.Valuation.ValuationRing |
| 2 | import Mathlib.RingTheory.LocalRing.RingHom.Basic |
| 3 | |
| 4 | /-! # Valuation Birational -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.ValuationBirational |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! A local birational extension of a valuation ring is an isomorphism. |
| 11 | This gives the local-ring comparison for proper birational maps over a |
| 12 | codimension-one point of a normal scheme. -/ |
| 13 | |
| 14 | theorem algebraMap_bijective (R A K : Type*) [CommRing R] [CommRing A] |
| 15 | [IsDomain R] [ValuationRing R] [IsDomain A] [Field K] |
| 16 | [Algebra R A] [Algebra R K] [Algebra A K] [IsScalarTower R A K] |
| 17 | [IsFractionRing R K] [IsFractionRing A K] [IsLocalHom (algebraMap R A)] : |
| 18 | Function.Bijective (algebraMap R A) := by |
| 19 | have hiA := IsFractionRing.injective A K |
| 20 | have hiR : Function.Injective (algebraMap R A) := by |
| 21 | apply Function.Injective.of_comp (f := algebraMap A K) |
| 22 | simpa only [← RingHom.coe_comp, ← IsScalarTower.algebraMap_eq] using IsFractionRing.injective R K |
| 23 | refine ⟨hiR, fun a => ?_⟩ |
| 24 | by_cases ha : a = 0 |
| 25 | · exact ⟨0, by simp [ha]⟩ |
| 26 | have haK : algebraMap A K a ≠ 0 := (map_ne_zero_iff _ hiA).mpr ha |
| 27 | obtain ⟨r, hr⟩ | ⟨r, hr⟩ := |
| 28 | (ValuationRing.iff_isInteger_or_isInteger R K).mp inferInstance (algebraMap A K a) |
| 29 | · refine ⟨r, hiA ?_⟩ |
| 30 | rw [← IsScalarTower.algebraMap_apply] |
| 31 | exact hr |
| 32 | · have he : algebraMap R A r * a = 1 := by |
| 33 | apply hiA |
| 34 | rw [map_mul, ← IsScalarTower.algebraMap_apply, hr, inv_mul_cancel₀ haK, map_one] |
| 35 | have hu : IsUnit r := isUnit_of_map_unit (algebraMap R A) r (IsUnit.of_mul_eq_one a he) |
| 36 | obtain ⟨v, hv⟩ := hu |
| 37 | refine ⟨↑v⁻¹, hiA ?_⟩ |
| 38 | rw [← IsScalarTower.algebraMap_apply, map_units_inv, hv, hr, inv_inv] |
| 39 | |
| 40 | def birationalLocalEquiv (R A K : Type*) [CommRing R] [CommRing A] |
| 41 | [IsDomain R] [ValuationRing R] [IsDomain A] [Field K] |
| 42 | [Algebra R A] [Algebra R K] [Algebra A K] [IsScalarTower R A K] |
| 43 | [IsFractionRing R K] [IsFractionRing A K] [IsLocalHom (algebraMap R A)] : R ≃ₐ[R] A := |
| 44 | AlgEquiv.ofBijective (Algebra.ofId R A) (algebraMap_bijective R A K) |
| 45 | |
| 46 | end |
| 47 | |
| 48 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.ValuationBirational |