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 |
| 2 | |
| 3 | /-! # Inverse -/ |
| 4 | |
| 5 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.DividedPower.Inverse |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! |
| 10 | # IntegralComparison: inverses of divided-power ring maps |
| 11 | |
| 12 | A bijective divided-power ring map whose map on quotient rings is |
| 13 | injective has a divided-power inverse. The quotient condition ensures |
| 14 | that the inverse preserves the ideal as well as the ring operations. |
| 15 | -/ |
| 16 | |
| 17 | universe u v |
| 18 | |
| 19 | variable {A : Type u} {B : Type v} [CommRing A] [CommRing B] |
| 20 | variable {I : Ideal A} {J : Ideal B} {δ : DividedPowers I} {ε : DividedPowers J} |
| 21 | variable (φ : DividedPowers.DPMorphism δ ε) |
| 22 | |
| 23 | def quotientMap : A ⧸ I →+* B ⧸ J := |
| 24 | Ideal.quotientMap J φ.toRingHom (Ideal.map_le_iff_le_comap.mp φ.ideal_comp) |
| 25 | |
| 26 | variable (hφ : Function.Bijective φ) (hq : Function.Injective (Inverse.quotientMap φ)) |
| 27 | |
| 28 | def ringEquiv : A ≃+* B := RingEquiv.ofBijective φ.toRingHom hφ |
| 29 | |
| 30 | include hq in |
| 31 | lemma inverse_mem {x : B} (hx : x ∈ J) : (ringEquiv φ hφ).symm x ∈ I := by |
| 32 | apply Ideal.Quotient.eq_zero_iff_mem.mp |
| 33 | apply hq |
| 34 | change Ideal.Quotient.mk J (φ ((ringEquiv φ hφ).symm x)) = (Inverse.quotientMap φ) 0 |
| 35 | rw [map_zero] |
| 36 | change Ideal.Quotient.mk J ((ringEquiv φ hφ) ((ringEquiv φ hφ).symm x)) = 0 |
| 37 | rw [RingEquiv.apply_symm_apply] |
| 38 | exact Ideal.Quotient.eq_zero_iff_mem.mpr hx |
| 39 | |
| 40 | def inverse : DividedPowers.DPMorphism ε δ where |
| 41 | toRingHom := (ringEquiv φ hφ).symm.toRingHom |
| 42 | ideal_comp := Ideal.map_le_iff_le_comap.mpr (fun _ hx => inverse_mem φ hφ hq hx) |
| 43 | dpow_comp {n} x hx := by |
| 44 | have h := φ.dpow_comp (n := n) ((ringEquiv φ hφ).symm x) (inverse_mem φ hφ hq hx) |
| 45 | change ε.dpow n ((ringEquiv φ hφ) ((ringEquiv φ hφ).symm x)) = |
| 46 | (ringEquiv φ hφ) (δ.dpow n ((ringEquiv φ hφ).symm x)) at h |
| 47 | rw [RingEquiv.apply_symm_apply] at h |
| 48 | apply (ringEquiv φ hφ).injective |
| 49 | exact h.symm.trans ((ringEquiv φ hφ).apply_symm_apply (ε.dpow n x)).symm |
| 50 | |
| 51 | lemma inverse_comp : (inverse φ hφ hq).comp φ = DividedPowers.DPMorphism.id δ := by |
| 52 | apply DFunLike.ext |
| 53 | intro x |
| 54 | exact (ringEquiv φ hφ).symm_apply_apply x |
| 55 | |
| 56 | lemma comp_inverse : φ.comp (inverse φ hφ hq) = DividedPowers.DPMorphism.id ε := by |
| 57 | apply DFunLike.ext |
| 58 | intro x |
| 59 | exact (ringEquiv φ hφ).apply_symm_apply x |
| 60 | |
| 61 | end |
| 62 | |
| 63 | end OAI.NumberTheory.PadicHodge.IntegralComparison.DividedPower.Inverse |