Download data/lean/OAI/AlgebraicGeometry/FormalGeometry/Completion/CoefficientLimit.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 4.76 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/AlgebraicGeometry/FormalGeometry/Completion/CoefficientLimit.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/AlgebraicGeometry/FormalGeometry/Completion/CoefficientLimit.lean
-
curl -L -o CoefficientLimit.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/AlgebraicGeometry/FormalGeometry/Completion/CoefficientLimit.lean
4.76 kB
| import OAI.AlgebraicGeometry.FormalGeometry.Completion.Finite.CoefficientTopology | |
| /-! # Coefficient Limit -/ | |
| namespace OAI.AlgebraicGeometry.FormalGeometry.Completion.CoefficientLimit.Construction | |
| noncomputable section | |
| /-! | |
| # Completion: integral coefficients as the inverse limit of finite coefficients | |
| The inverse-limit description includes the topology. Compatible continuous | |
| finite-coefficient functions therefore reconstruct a unique continuous | |
| integral coefficient function. | |
| -/ | |
| variable (β : β) [Fact β.Prime] | |
| /-- Compatible residues in all finite coefficient rings. -/ | |
| def coherentFiniteCoefficients : Subring (β n : β, ZMod (β ^ n)) where | |
| carrier := {a | β m n (h : m β€ n), ZMod.castHom (pow_dvd_pow β h) (ZMod (β ^ m)) (a n) = a m} | |
| zero_mem' := fun m n h => (ZMod.castHom (pow_dvd_pow β h) (ZMod (β ^ m))).map_zero | |
| one_mem' := fun m n h => (ZMod.castHom (pow_dvd_pow β h) (ZMod (β ^ m))).map_one | |
| add_mem' := by | |
| intro a b ha hb m n h | |
| exact (map_add _ _ _).trans (congrArgβ (Β· + Β·) (ha m n h) (hb m n h)) | |
| mul_mem' := by | |
| intro a b ha hb m n h | |
| exact (map_mul _ _ _).trans (congrArgβ (Β· * Β·) (ha m n h) (hb m n h)) | |
| neg_mem' := by | |
| intro a ha m n h | |
| exact (map_neg _ _).trans (congrArg Neg.neg (ha m n h)) | |
| /-- Projection to one finite coefficient ring. -/ | |
| def coherentFiniteProjection (n : β) : coherentFiniteCoefficients β β+* ZMod (β ^ n) where | |
| toFun a := a.val n | |
| map_zero' := rfl | |
| map_one' := rfl | |
| map_add' _ _ := rfl | |
| map_mul' _ _ := rfl | |
| omit [Fact β.Prime] in | |
| theorem coherentFiniteProjection_compatible (m n : β) (h : m β€ n) : | |
| (ZMod.castHom (pow_dvd_pow β h) (ZMod (β ^ m))).comp | |
| (coherentFiniteProjection β n) = coherentFiniteProjection β m := by | |
| ext a | |
| exact a.property m n h | |
| /-- The integral coefficient determined by a compatible residue tower. -/ | |
| def coherentFiniteLift : coherentFiniteCoefficients β β+* β€_[β] := | |
| PadicInt.lift (coherentFiniteProjection_compatible β) | |
| theorem coherentFiniteLift_spec (a : coherentFiniteCoefficients β) (n : β) : | |
| PadicInt.toZModPow n (coherentFiniteLift β a) = a.val n := | |
| congrArg (fun f => f a) (PadicInt.lift_spec (coherentFiniteProjection_compatible β) n) | |
| /-- All residues of an integral coefficient, as a compatible tower. -/ | |
| def padicIntToCoherentFinite : β€_[β] β+* coherentFiniteCoefficients β where | |
| toFun a := β¨fun n => PadicInt.toZModPow n a, fun m n h => | |
| congrArg (fun f => f a) (PadicInt.zmod_cast_comp_toZModPow m n h)β© | |
| map_zero' := by ext n; exact map_zero _ | |
| map_one' := by ext n; exact map_one _ | |
| map_add' a b := by ext n; exact map_add _ _ _ | |
| map_mul' a b := by ext n; exact map_mul _ _ _ | |
| /-- Integral coefficients and coherent finite coefficients are isomorphic as rings. -/ | |
| def padicIntCoherentFiniteEquiv : β€_[β] β+* coherentFiniteCoefficients β where | |
| __ := padicIntToCoherentFinite β | |
| invFun := coherentFiniteLift β | |
| left_inv a := PadicInt.ext_of_toZModPow.mp fun n => coherentFiniteLift_spec β _ n | |
| right_inv a := by | |
| apply Subtype.ext | |
| funext n | |
| exact coherentFiniteLift_spec β a n | |
| theorem continuous_padicIntToCoherentFinite : Continuous (padicIntToCoherentFinite β) := | |
| (continuous_pi (fun n => Finite.CoefficientTopology.Construction.continuous_padicInt_toZModPow β n)).subtype_mk _ | |
| /-- The inverse-limit ring isomorphism respects the actual β-adic topology. -/ | |
| def padicIntCoherentFiniteHomeomorph : β€_[β] ββ coherentFiniteCoefficients β := | |
| (padicIntCoherentFiniteEquiv β).toEquiv.toHomeomorphOfContinuousClosed | |
| (continuous_padicIntToCoherentFinite β) (continuous_padicIntToCoherentFinite β).isClosedMap | |
| /-- Compatible continuous finite-coefficient functions reconstruct uniquely. -/ | |
| theorem continuousMap_existsUnique_of_coherentFinite {T : Type*} [TopologicalSpace T] | |
| (f : β n : β, C(T, ZMod (β ^ n))) | |
| (hf : β m n (h : m β€ n) t, | |
| ZMod.castHom (pow_dvd_pow β h) (ZMod (β ^ m)) (f n t) = f m t) : | |
| β! g : C(T, β€_[β]), β n t, PadicInt.toZModPow n (g t) = f n t := by | |
| let a : C(T, coherentFiniteCoefficients β) := | |
| β¨fun t => β¨fun n => f n t, fun m n h => hf m n h tβ©, | |
| (continuous_pi (fun n => (f n).continuous)).subtype_mk _β© | |
| let g : C(T, β€_[β]) := β¨fun t => coherentFiniteLift β (a t), | |
| (padicIntCoherentFiniteHomeomorph β).symm.continuous.comp a.continuousβ© | |
| refine β¨g, fun n t => coherentFiniteLift_spec β (a t) n, ?_β© | |
| intro g' hg' | |
| apply ContinuousMap.ext | |
| intro t | |
| apply PadicInt.ext_of_toZModPow.mp | |
| intro n | |
| exact (hg' n t).trans (coherentFiniteLift_spec β (a t) n).symm | |
| end | |
| end OAI.AlgebraicGeometry.FormalGeometry.Completion.CoefficientLimit.Construction | |