chars
int64
40
24k
content_type
stringclasses
9 values
id
stringlengths
13
64
source
stringclasses
5 values
subset
stringclasses
31 values
text
stringlengths
40
24k
141
leanexplore_declaration
leanexplore:380121
leanexplore_sqlite
leanexplore_declarations
@[simp] lemma algebraMap_apply (x : K) (v : HeightOneSpectrum A) : algebraMap K 𝔸ᶠ[A, K] x v = algebraMap K (v.adicCompletion K) x := rfl
599
leanexplore_declaration
leanexplore:380122
leanexplore_sqlite
leanexplore_declarations
@[simp] lemma baseChangeLinearEquiv_tmul [FiniteDimensional K L] (b : B) (x : 𝔸ᶠ[A, K]) : baseChangeLinearEquiv A K L B (algebraMap B L b ⊗ₜ x) = (algebraMap _ 𝔸ᶠ[B, L] b) * (algebraMap _ 𝔸ᶠ[B, L] x) := by ext w simpa [baseChangeLinearEquiv, restrictedProduct_prod_equiv_apply, tensorEquivTensor_tmul, ...
1,513
leanexplore_declaration
leanexplore:380123
leanexplore_sqlite
leanexplore_declarations
theorem baseChange_bijective [FiniteDimensional K L] : Function.Bijective (SemialgHom.baseChange_of_algebraMap <| (mapSemialgHom A K L B).toSemialgHom) := by suffices ⇑(SemialgHom.baseChange_of_algebraMap <| FiniteAdeleRing.mapSemialgHom A K L B) = ⇑(FiniteAdeleRing.baseChangeLinearEquiv A K L B) by ...
289
leanexplore_declaration
leanexplore:380124
leanexplore_sqlite
leanexplore_declarations
/-- The `L`-algebra isomorphism `L ⊗_K 𝔸_K^∞ ≅ 𝔸_L^∞`. -/ def baseChangeAlgEquiv [FiniteDimensional K L] : L ⊗[K] 𝔸ᶠ[A, K] ≃ₐ[L] 𝔸ᶠ[B, L] := .ofBijective (SemialgHom.baseChange_of_algebraMap <| FiniteAdeleRing.mapSemialgHom A K L B) (FiniteAdeleRing.baseChange_bijective A K L B)
396
leanexplore_declaration
leanexplore:380125
leanexplore_sqlite
leanexplore_declarations
/-- The `𝔸_K^∞`-algebra isomorphism `L ⊗_K 𝔸_K^∞ ≅ 𝔸_L^∞`. -/ def baseChangeAdeleAlgEquiv [FiniteDimensional K L] : L ⊗[K] 𝔸ᶠ[A, K] ≃ₐ[𝔸ᶠ[A, K]] 𝔸ᶠ[B, L] where __ := SemialgHom.baseChangeRightOfAlgebraMap <| (FiniteAdeleRing.mapSemialgHom A K L B).toSemialgHom __ := FiniteAdeleRing.baseChangeAlgEquiv ...
155
leanexplore_declaration
leanexplore:380126
leanexplore_sqlite
leanexplore_declarations
instance [FiniteDimensional K L] : Module.Finite 𝔸ᶠ[A, K] 𝔸ᶠ[B, L] := Module.Finite.equiv (FiniteAdeleRing.baseChangeAdeleAlgEquiv A K L B).toLinearEquiv
329
leanexplore_declaration
leanexplore:380127
leanexplore_sqlite
leanexplore_declarations
/-- `𝓞_v`-module structure on `∏ L_w` from restricting the scalars of the `K_v`-module structure. -/ noncomputable local instance (v : HeightOneSpectrum A) : Module (adicCompletionIntegers K v) ((w : Extension B v) → adicCompletion L w.val) := Module.compHom _ (algebraMap (adicCompletionIntegers K v) (adicComple...
241
leanexplore_declaration
leanexplore:380128
leanexplore_sqlite
leanexplore_declarations
/-- SMul instance from the module structure. -/ noncomputable local instance (v : HeightOneSpectrum A) : SMul (adicCompletionIntegers K v) ((w : Extension B v) → adicCompletion L w.val) := Module.toDistribMulAction.toDistribSMul.toSMul
226
leanexplore_declaration
leanexplore:380129
leanexplore_sqlite
leanexplore_declarations
/-- A shortcut instance for the action of `𝓞ᵥ` on `Kᵥ`. -/ noncomputable local instance (v : HeightOneSpectrum A) : MulAction (v.adicCompletionIntegers K) (v.adicCompletion K) := LieAlgebra.ofAssociativeAlgebra.toMulAction
946
leanexplore_declaration
leanexplore:380130
leanexplore_sqlite
leanexplore_declarations
/-- `∏_{w∣v} 𝓞_w` as an `𝓞_v`-submodule of `∏_{w∣v} L_w` -/ noncomputable def piAdicIntegerSubmodule (v : HeightOneSpectrum A) : Submodule (adicCompletionIntegers K v) ((w : Extension B v) → adicCompletion L w.val) := let module (w : Extension B v) := Module.compHom (adicCompletion L w.val) (algebraMap (adi...
375
leanexplore_declaration
leanexplore:380131
leanexplore_sqlite
leanexplore_declarations
/-- An auxiliary 𝔸_K-module structure on restricted product over v of (product of w's dividing v of L_w wrt 𝓞_w). Only used in this file to compare L ⊗ 𝔸_K and 𝔸_L. -/ noncomputable local instance : Module 𝔸ᶠ[A, K] Πʳ (v : HeightOneSpectrum A), [(w : Extension B v) → adicCompletion L w.1, ↑(piAdicIntegerSu...
727
leanexplore_declaration
leanexplore:380132
leanexplore_sqlite
leanexplore_declarations
/-- The continuous `𝔸 K`-Linear equivalence between `∏'_v ∏_{w∣v} L_w` and `𝔸 L` given by reaindexing the elements. -/ noncomputable def restrictedProduct_pi_equiv : Πʳ (v : HeightOneSpectrum A), [(w : Extension B v) → adicCompletion L w.val, piAdicIntegerSubmodule A K L B v] ≃L[𝔸ᶠ[A, K]] 𝔸ᶠ[B, L] := ha...
695
leanexplore_declaration
leanexplore:380133
leanexplore_sqlite
leanexplore_declarations
lemma restrictedProduct_pi_isModuleTopology [FiniteDimensional K L] : IsModuleTopology 𝔸ᶠ[A, K] (Πʳ (v : HeightOneSpectrum A), [(w : Extension B v) → adicCompletion L w.val, piAdicIntegerSubmodule A K L B v]) := by have := Module.Finite.equiv (FiniteAdeleRing.restrictedProduct_pi_equiv A K L B).symm.to...
204
leanexplore_declaration
leanexplore:380134
leanexplore_sqlite
leanexplore_declarations
instance [FiniteDimensional K L] : IsModuleTopology 𝔸ᶠ[A, K] 𝔸ᶠ[B, L] := have := restrictedProduct_pi_isModuleTopology A K L B IsModuleTopology.iso (FiniteAdeleRing.restrictedProduct_pi_equiv A K L B)
277
leanexplore_declaration
leanexplore:380135
leanexplore_sqlite
leanexplore_declarations
/-- The continuous `𝔸_K^∞`-algebra isomorphism `L ⊗_K 𝔸_K^∞ ≅ 𝔸_L^∞` -/ noncomputable def baseChangeAdeleContinuousAlgEquiv [FiniteDimensional K L] : L ⊗[K] 𝔸ᶠ[A, K] ≃A[𝔸ᶠ[A, K]] 𝔸ᶠ[B, L] := IsModuleTopology.continuousAlgEquivOfAlgEquiv <| baseChangeAdeleAlgEquiv A K L B
298
leanexplore_declaration
leanexplore:380136
leanexplore_sqlite
leanexplore_declarations
/-- The continuous `L`-algebra isomorphism `L ⊗_K 𝔸_K^∞ ≅ 𝔸_L^∞` -/ noncomputable def baseChangeContinuousAlgEquiv [FiniteDimensional K L] : L ⊗[K] 𝔸ᶠ[A, K] ≃A[L] 𝔸ᶠ[B, L] where __ := FiniteAdeleRing.baseChangeAlgEquiv A K L B __ := FiniteAdeleRing.baseChangeAdeleContinuousAlgEquiv A K L B
44
leanexplore_declaration
leanexplore:380137
leanexplore_sqlite
leanexplore_declarations
instance : Nonempty 𝓕.setsᵒᵈ := ⟨⊤, by simp⟩
229
leanexplore_declaration
leanexplore:380138
leanexplore_sqlite
leanexplore_declarations
instance instDirectedSystem : DirectedSystem (fun (S : 𝓕.setsᵒᵈ) ↦ Πʳ i, [R i, C i]_[𝓟 S.1]) (fun _ _ h ↦ RestrictedProduct.inclusion _ _ <| monotone_principal h) where map_self _ _ := rfl map_map _ _ _ _ _ _ := rfl
182
leanexplore_declaration
leanexplore:380139
leanexplore_sqlite
leanexplore_declarations
instance : DirectedSystem (fun (S : ℱ.setsᵒᵈ) ↦ Πʳ i, [R i, C i]_[𝓟 S.1]) fun _ _ h ↦ (inclusionLinearMap A R C <| monotone_principal h) := RestrictedProduct.instDirectedSystem
215
leanexplore_declaration
leanexplore:380140
leanexplore_sqlite
leanexplore_declarations
instance directed : IsDirected (ℱ.setsᵒᵈ) (· ≤ ·) where directed Si Sj := by obtain ⟨Si, hi⟩ := Si obtain ⟨Sj, hj⟩ := Sj use ⟨Si ∩ Sj, ℱ.inter_sets hi hj⟩, inter_subset_left, inter_subset_right
236
leanexplore_declaration
leanexplore:380141
leanexplore_sqlite
leanexplore_declarations
instance {I : Type*} [Preorder I] (𝓖 : I → Filter ι) (h𝓖 : Antitone 𝓖) : DirectedSystem (fun x ↦ Πʳ (i : ι), [R i, ↑(C i)]_[𝓖 x]) (inclusionLinearMap A R C <| @h𝓖 · · ·) where map_self _ _ := rfl map_map _ _ _ _ _ _ := rfl
915
leanexplore_declaration
leanexplore:380142
leanexplore_sqlite
leanexplore_declarations
instance instIsDirectLimit {I : Type*} [Preorder I] [Nonempty I] [IsDirected I (· ≤ ·)] (𝓖 : I → Filter ι) (h𝓖 : Antitone 𝓖) (hℱ : ℱ = iInf 𝓖) : IsDirectLimit (inclusionLinearMap A R C <| @h𝓖 · · ·) (inclusionLinearMap A R C <| hℱ.trans_le <| iInf_le 𝓖 ·) where inj Sᵢ Sⱼ mi mj hmij := by obtain ...
402
leanexplore_declaration
leanexplore:380143
leanexplore_sqlite
leanexplore_declarations
instance instIsDirectLimit' : IsDirectLimit (M := fun (S : ℱ.setsᵒᵈ) ↦ Πʳ i, [R i, C i]_[𝓟 S.1]) ((fun _ _ h ↦ inclusionLinearMap A R C <| monotone_principal h)) (fun S ↦ inclusionLinearMap A R C <| Filter.le_principal_iff.2 S.2) := by apply instIsDirectLimit exact eq_iInf_of_mem_iff_exists_mem (fun {s} ↦ ...
277
leanexplore_declaration
leanexplore:380144
leanexplore_sqlite
leanexplore_declarations
/-- A uniformiser associated to `v` in the integers of the completion `Kᵥ`. -/ noncomputable def adicCompletionIntegersUniformizer (v : HeightOneSpectrum A) : v.adicCompletionIntegers K := algebraMap A (v.adicCompletionIntegers K) v.intValuation_exists_uniformizer.choose
238
leanexplore_declaration
leanexplore:380145
leanexplore_sqlite
leanexplore_declarations
/-- A uniformiser associated to `v` in the completion `Kᵥ`. -/ noncomputable def adicCompletionUniformizer (v : HeightOneSpectrum A) : v.adicCompletion K := algebraMap K (v.adicCompletion K) (v.valuation_exists_uniformizer K).choose
373
leanexplore_declaration
leanexplore:380146
leanexplore_sqlite
leanexplore_declarations
lemma adicCompletionUniformizer_spec (v : HeightOneSpectrum A) : Valued.v (v.adicCompletionUniformizer K) = (Multiplicative.ofAdd (-1 : ℤ)) := by let u := (v.valuation_exists_uniformizer K).choose have h : (valuation K v) u = (Multiplicative.ofAdd (-1 : ℤ)) := (v.valuation_exists_uniformizer K).choose_spec ...
202
leanexplore_declaration
leanexplore:380147
leanexplore_sqlite
leanexplore_declarations
lemma adicCompletionUniformizer_ne_zero (v : HeightOneSpectrum A) : v.adicCompletionUniformizer K ≠ 0 := by intro h apply_fun Valued.v at h rw [adicCompletionUniformizer_spec] at h simp at h
260
leanexplore_declaration
leanexplore:380148
leanexplore_sqlite
leanexplore_declarations
/-- A uniformiser associated to `v` in the units of the completion `Kᵥ`. -/ noncomputable def adicCompletionUniformizerUnit (v : HeightOneSpectrum A) : (v.adicCompletion K)ˣ := .mk0 (v.adicCompletionUniformizer K) <| v.adicCompletionUniformizer_ne_zero K
426
leanexplore_declaration
leanexplore:380149
leanexplore_sqlite
leanexplore_declarations
/-- `localUniformiser v` is an adele which is 1 at all finite places except `v`, where it is a uniformiser. -/ noncomputable def localUniformiser (v : HeightOneSpectrum A) [DecidableEq (HeightOneSpectrum A)] : FiniteAdeleRing A K := ⟨Pi.mulSingle v (v.adicCompletionUniformizer K), by apply Set.Finite.subset (...
214
leanexplore_declaration
leanexplore:380150
leanexplore_sqlite
leanexplore_declarations
@[simp] lemma localUniformiser_eval (v : HeightOneSpectrum A) [DecidableEq (HeightOneSpectrum A)] (w : HeightOneSpectrum A) : localUniformiser K v w = Pi.mulSingle v (v.adicCompletionUniformizer K) w := rfl
807
leanexplore_declaration
leanexplore:380151
leanexplore_sqlite
leanexplore_declarations
/-- `localUniformiser v` is an idele which is 1 at all finite places except `v`, where it is a uniformiser. -/ noncomputable def localUniformiserUnit (v : HeightOneSpectrum A) [DecidableEq (HeightOneSpectrum A)] : (FiniteAdeleRing A K)ˣ := ⟨localUniformiser K v, ⟨Pi.mulSingle v (v.adicCompletionUniformize...
787
leanexplore_declaration
leanexplore:380152
leanexplore_sqlite
leanexplore_declarations
/-- `localUnit K α` for `α : (v.adicCompletion K)ˣ`, is the finite idele which is `α` at `v` and `1` elsewhere. -/ noncomputable def localUnit {v : HeightOneSpectrum A} (α : (v.adicCompletion K)ˣ) [DecidableEq (HeightOneSpectrum A)] : (FiniteAdeleRing A K)ˣ := ⟨⟨Pi.mulSingle v α, by apply Set.Finite.sub...
175
leanexplore_declaration
leanexplore:380153
leanexplore_sqlite
leanexplore_declarations
lemma localUnit_eval_of_eq {v : HeightOneSpectrum A} (α : (v.adicCompletion K)ˣ) [DecidableEq (HeightOneSpectrum A)] : (localUnit K α).1 v = α := by simp [localUnit]
218
leanexplore_declaration
leanexplore:380154
leanexplore_sqlite
leanexplore_declarations
lemma localUnit_eval_of_ne {v : HeightOneSpectrum A} (α : (v.adicCompletion K)ˣ) [DecidableEq (HeightOneSpectrum A)] (w : HeightOneSpectrum A) (hw : w ≠ v) : (localUnit K α).1 w = 1 := by simp [localUnit, hw]
1,163
leanexplore_declaration
leanexplore:380155
leanexplore_sqlite
leanexplore_declarations
theorem Module.FinitePresentation.exists_fin_exact (R : Type*) (M : Type*) [Ring R] [AddCommGroup M] [Module R M] [fp : Module.FinitePresentation R M] : ∃ (n m : ℕ) (f : (Fin m → R) →ₗ[R] (Fin n → R)) (g : (Fin n → R) →ₗ[R] M), Exact f g ∧ Surjective g := by obtain ⟨n, K, iso, S, hS⟩ := Module.FinitePresentat...
1,277
leanexplore_declaration
leanexplore:380156
leanexplore_sqlite
leanexplore_declarations
/-- `⨁ⱼ(∏ᵢ Nᵢⱼ) ≅ ∏ᵢ(⨁ⱼNᵢⱼ)` if `j` ranges over a finite index set and `i` over an arbitrary index set. This variant is for `R`-modules and gives an `R`-module isomorphism. -/ def directSumPi_equiv_piSum : (⨁ (i' : ι'), (∀ i, N i i')) ≃ₗ[R] (∀ i, (⨁ i', N i i')) where toFun nm i := ∑ i', DirectSum.of (fun i' ↦ N i i'...
416
leanexplore_declaration
leanexplore:380157
leanexplore_sqlite
leanexplore_declarations
/-- The isomorphism `M ⊗ ∏ᵢ Nᵢ ≅ (B →₀ R) ⊗ ∏ᵢ Nᵢ`, where `M` is assumed free and `B` is the basis of `M` given by Lean's global axiom-of-choice operator. This is an auxiliary definition. -/ noncomputable def freeModule_tensorPiEquiv : M ⊗[R] (∀ i, N i) ≃ₗ[R] (Module.Free.ChooseBasisIndex R M →₀ R) ⊗[R] (∀ i, N i) ...
747
leanexplore_declaration
leanexplore:380158
leanexplore_sqlite
leanexplore_declarations
/-- If `B` is finite then tensoring by the free module with basis `B` commutes with arbitrary products. -/ noncomputable def finsuppLeft_TensorPi_equiv_piTensor (B : Type*) [Fintype B] [DecidableEq B] : (B →₀ R) ⊗[R] (Π i, N i) ≃ₗ[R] Π i, (B →₀ R) ⊗[R] (N i) := -- (B →₀ R) ⊗[R] (Π i, N i) ≃ₗ[R] B →₀ (Π i, N i) ...
440
leanexplore_declaration
leanexplore:380159
leanexplore_sqlite
leanexplore_declarations
/-- The isomorphism `Πᵢ ((B →₀ R) ⊗ Nᵢ) ≅ Πᵢ (M ⊗ Nᵢ)` where `M` is assumed free and `B` is the basis of `M` given by Lean's global axiom-of-choice operator. This is an auxiliary definition. -/ noncomputable def tensorPiEquiv_finitefreeModule : (Π i, (Module.Free.ChooseBasisIndex R M →₀ R) ⊗[R] N i) ≃ₗ[R] Π i, (M ⊗...
414
leanexplore_declaration
leanexplore:380160
leanexplore_sqlite
leanexplore_declarations
/-- Tensoring with a finite free module commutes with arbitrary products. -/ noncomputable def tensorPi_equiv_piTensor : M ⊗[R] (Π i, N i) ≃ₗ[R] Π i, (M ⊗[R] N i) := -- M ⊗ (Π i, N i) ≃ₗ[R] (B →₀ R) ⊗ (Π i, N i) (freeModule_tensorPiEquiv R M N) ≪≫ₗ -- ≃ₗ[R] Π i, ((B →₀ R) ⊗ N i) (finsuppLeft_TensorPi_eq...
1,386
leanexplore_declaration
leanexplore:380161
leanexplore_sqlite
leanexplore_declarations
lemma tensorPi_equiv_piTensor_apply (m : M) (n : ∀ i, N i) : tensorPi_equiv_piTensor R M N (m ⊗ₜ n) = fun i ↦ (m ⊗ₜ n i) := by unfold tensorPi_equiv_piTensor simp only [freeModule_tensorPiEquiv, LinearEquiv.trans_apply, congr_tmul, LinearEquiv.refl_apply] let m' := (Module.Free.chooseBasis R M).repr m h...
5,012
leanexplore_declaration
leanexplore:380162
leanexplore_sqlite
leanexplore_declarations
/-- Tensoring with a finitely-presented module commutes with arbitrary products. To prove this, we consider the following commutative diagram. The goal is to show that `i₃` is an isomorphism, which we do using the five lemma: ``` Rᵐ ⊗[R] (Π i, N i) --f₁--> Rⁿ ⊗[R] (Π i, N i) --f₂--> M ⊗[R] (Π i, N i) --f₃--> 0 --f₄-->...
133
leanexplore_declaration
leanexplore:380163
leanexplore_sqlite
leanexplore_declarations
lemma tensorPi_equiv_piTensor'_apply (m : M) (n : ∀ i, N i) : tensorPi_equiv_piTensor' R M N (m ⊗ₜ n) = fun i ↦ (m ⊗ₜ n i) := rfl
1,163
leanexplore_declaration
leanexplore:380164
leanexplore_sqlite
leanexplore_declarations
/-- If `φ : 𝔸_K^f ⊗[K] V → 𝔸_K^f ⊗[K] V` is `𝔸_K^f`-linear and `p : HeightOneSpectrum (𝓞 K)` then `localcomponent R K V p φ : Kₚ ⊗[K] V →[K] Kₚ ⊗[K] V` is the associated map `φₚ` defined as `Kₚ ⊗[K] V --(single)--> 𝔸_K^f ⊗ V --(φ)--> 𝔸_K^f ⊗ V --(eval)--> Kₚ ⊗ V`. This map morally satisfies `φ = Πₚ φₚ` but becaus...
504
leanexplore_declaration
leanexplore:380165
leanexplore_sqlite
leanexplore_declarations
lemma TensorProduct.localcomponent_id_apply (p : HeightOneSpectrum R) (x : p.adicCompletion K ⊗[K] V) : TensorProduct.localcomponent R K V p (ContinuousLinearMap.id _ _) x = x := by have : (evalContinuousAlgebraMap R K p).toContinuousLinearMap ∘ₗ (singleContinuousLinearMap R K p).toLinearMap ...
1,550
leanexplore_declaration
leanexplore:380166
leanexplore_sqlite
leanexplore_declarations
lemma TensorProduct.localcomponent_comp_apply (p : HeightOneSpectrum R) (φ ψ : FiniteAdeleRing R K ⊗[K] V →L[FiniteAdeleRing R K] FiniteAdeleRing R K ⊗[K] V) (x : p.adicCompletion K ⊗[K] V) : TensorProduct.localcomponent R K V p (φ.comp ψ) x = (TensorProduct.localcomponent R K V p φ) ((TensorProdu...
1,472
leanexplore_declaration
leanexplore:380167
leanexplore_sqlite
leanexplore_declarations
/-- If `φ : 𝔸_K^f ⊗ V → 𝔸_K^f ⊗ V` is `𝔸_K^f`-linear and `φₚ` is its local component at a place `p` then for all `x : 𝔸_K^f ⊗ V` we have `(evalₚ ⊗ id_V) (φ x) = φₚ ((evalₚ ⊗ id_V) x)`, or, more colloquiually, `(φ x)ₚ = φₚ (xₚ)`. -/ lemma TensorProduct.localcomponent_apply (φ : FiniteAdeleRing R K ⊗[K] V →L[Fini...
1,134
leanexplore_declaration
leanexplore:380168
leanexplore_sqlite
leanexplore_declarations
/-- If `φ : 𝔸_K^f ⊗[K] V → 𝔸_K^f ⊗[K] V` is `𝔸_K^f`-linear and `p : HeightOneSpectrum (𝓞 K)` then `localcomponent R K V p φ : Kₚ ⊗[K] V →[K] Kₚ ⊗[K] V` is the associated map `φₚ` defined as `Kₚ ⊗[K] V --(single)--> 𝔸_K^f ⊗ V --(φ)--> 𝔸_K^f ⊗ V --(eval)--> Kₚ ⊗ V`. This map morally satisfies `φ = Πₚ φₚ` but becaus...
169
leanexplore_declaration
leanexplore:380169
leanexplore_sqlite
leanexplore_declarations
/-- `M ⊗_R (L i)` as an `R`-submodule of `M ⊗_R (N i)`. -/ def rangeLTensor (i : ι) : Submodule R (M ⊗[R] N i) := LinearMap.range (LinearMap.lTensor M ((L i).subtype))
373
leanexplore_declaration
leanexplore:380170
leanexplore_sqlite
leanexplore_declarations
/-- `M ⊗_R (L i)` as an `M`-submodule of `M ⊗_R (N i)`. -/ noncomputable def rangeLTensorLeft (R M : Type*) [CommSemiring R] [CommSemiring M] [Algebra R M] {ι : Type*} (N : ι → Type*) [∀ i, Semiring (N i)] [∀ i, Algebra R (N i)] (L : ∀ i, Submodule R (N i)) (i : ι) : Submodule M (M ⊗[R] N i) := (TensorProduct...
651
leanexplore_declaration
leanexplore:380171
leanexplore_sqlite
leanexplore_declarations
/-- The `R`-linear map `φ : M ⊗_R ∏'_i [N i, L i]_[𝓕] → ∏'_i [M ⊗_R (N i), M ⊗_R (L i)]_[𝓕]` given by `φ (m ⊗ n) i = m ⊗ (n i)`. -/ def lTensor : M ⊗[R] Πʳ i, [N i, L i]_[ℱ] →ₗ[R] Πʳ i, [M ⊗[R] N i, rangeLTensor R M N L i]_[ℱ] := have hmap : ∀ (m : M), ∀ᶠ (j : ι) in ℱ, Set.MapsTo (TensorProduct.mk R M (N ...
1,116
leanexplore_declaration
leanexplore:380172
leanexplore_sqlite
leanexplore_declarations
/-- The `M`-linear map `φ : M ⊗_R ∏'_i [N i, L i]_[𝓕] → ∏'_i [M ⊗_R (N i), M ⊗_R (L i)]_[𝓕]` given by `φ (m ⊗ n) i = m ⊗ (n i)`. -/ noncomputable def lTensorLeft (R M : Type*) [CommRing R] [CommRing M] [Algebra R M] {ι : Type*} (N : ι → Type*) [∀ i, Ring (N i)] [∀ i, Algebra R (N i)] (ℱ : Filter ι) (L : ∀ i, ...
126
leanexplore_declaration
leanexplore:380173
leanexplore_sqlite
leanexplore_declarations
@[simp] lemma lTensor_tmul (m : M) (f : Πʳ i, [N i, L i]_[ℱ]) (i : ι) : lTensor R M N ℱ L (m ⊗ₜ f) i = m ⊗ₜ (f i) := rfl
465
leanexplore_declaration
leanexplore:380174
leanexplore_sqlite
leanexplore_declarations
@[simp] lemma lTensorLeft_tmul (R M : Type*) [CommRing R] [CommRing M] [Algebra R M] {ι : Type*} (N : ι → Type*) [∀ i, Ring (N i)] [∀ i, Algebra R (N i)] (L : ∀ i, Submodule R (N i)) (ℱ : Filter ι) (m : M) (f : Πʳ i, [N i, L i]_[ℱ]) (i : ι) : lTensorLeft R M N ℱ L (m ⊗ₜ f) i = m ⊗ₜ (f i) := by rw [lTensor...
501
leanexplore_declaration
leanexplore:380175
leanexplore_sqlite
leanexplore_declarations
lemma coe_lTensorLeft_eq_lTensor (R M : Type*) [CommRing R] [CommRing M] [Algebra R M] {ι : Type*} (N : ι → Type*) [∀ i, Ring (N i)] [∀ i, Algebra R (N i)] (L : ∀ i, Submodule R (N i)) (ℱ : Filter ι) : ⇑(lTensorLeft R M N ℱ L) = lTensor R M N ℱ L := by ext x i induction x using TensorProduct.induction_o...
363
leanexplore_declaration
leanexplore:380176
leanexplore_sqlite
leanexplore_declarations
/-- `R`-Linear isomorphism between `M ⊗_R (L i)` and `rangeLTensor R M N L i`. -/ noncomputable def tmulEquivRangeLTensor (i : ι) : M ⊗[R] (L i) ≃ₗ[R] rangeLTensor R M N L i := LinearEquiv.ofInjective (LinearMap.lTensor M (Submodule.subtype <| L i)) (Module.Flat.lTensor_preserves_injective_linearMap (L i).subtype...
1,944
leanexplore_declaration
leanexplore:380177
leanexplore_sqlite
leanexplore_declarations
/-- `R`-Linear isomorphism that's propositionally equal to `lTensor`. -/ noncomputable def lTensorPrincipalEquiv : M ⊗[R] Πʳ i, [N i, L i]_[𝓟 S] ≃ₗ[R] Πʳ i, [M ⊗[R] N i, rangeLTensor R M N L i]_[𝓟 S] := open scoped Classical in let N' (i : ι) := if i ∈ S then L i else (⊤ : Submodule R (N i)) let f : Πʳ i, [...
249
leanexplore_declaration
leanexplore:380178
leanexplore_sqlite
leanexplore_declarations
lemma lTensorPrincipalEquiv_tmul (m : M) (x : Πʳ i, [N i, L i]_[𝓟 S]) (i : ι) : lTensorPrincipalEquiv R M N L S (m ⊗ₜ x) i = m ⊗ₜ x i := by simp [lTensorPrincipalEquiv, tensorPi_equiv_piTensor'_apply, tmulEquivRangeLTensor, rangeLTensor]
3,312
leanexplore_declaration
leanexplore:380179
leanexplore_sqlite
leanexplore_declarations
lemma lTensor_bijective : Function.Bijective (lTensor R M N ℱ L) := by classical let comp1 := TensorProduct.directLimitRight (ι := ℱ.setsᵒᵈ) (fun _ _ x3 ↦ (inclusionLinearMap _ _ L <| Filter.monotone_principal x3)) M (R:=R) let comp := IsDirectLimit.Module.linearEquiv (fun _ _ h ↦ (inclusionLinearMap _ _ ...
377
leanexplore_declaration
leanexplore:380180
leanexplore_sqlite
leanexplore_declarations
lemma lTensorLeft_bijective (R M : Type*) [CommRing R] [CommRing M] [Algebra R M] {ι : Type*} (N : ι → Type*) [∀ i, Ring (N i)] [∀ i, Algebra R (N i)] (L : ∀ i, Submodule R (N i)) (ℱ : Filter ι) [Module.Flat R M] [Module.FinitePresentation R M] : Function.Bijective (lTensorLeft R M N ℱ L) := by rw [coe_lT...
287
leanexplore_declaration
leanexplore:380181
leanexplore_sqlite
leanexplore_declarations
/-- The `R`-linear isomorphism given by `lTensor` when `M` is a finite flat `R`-module. -/ noncomputable def lTensorEquiv : M ⊗[R] Πʳ i, [N i, L i]_[ℱ] ≃ₗ[R] Πʳ i, [M ⊗[R] N i, rangeLTensor R M N L i]_[ℱ] := LinearEquiv.ofBijective (lTensor R M N ℱ L) (lTensor_bijective R M N ℱ L)
528
leanexplore_declaration
leanexplore:380182
leanexplore_sqlite
leanexplore_declarations
/-- The `M`-linear isomorphism given by `lTensor` when `M` is a finite flat `R`-module. -/ noncomputable def lTensorEquivLeft (R M : Type*) [CommRing R] [CommRing M] [Algebra R M] {ι : Type*} (N : ι → Type*) [∀ i, Ring (N i)] [∀ i, Algebra R (N i)] (L : ∀ i, Submodule R (N i)) (ℱ : Filter ι) [Module.Flat R M] [...
136
leanexplore_declaration
leanexplore:380183
leanexplore_sqlite
leanexplore_declarations
@[simp] lemma lTensorEquiv_tmul (m : M) (f : Πʳ i, [N i, L i]_[ℱ]) (i : ι) : lTensorEquiv R M N ℱ L (m ⊗ₜ f) i = m ⊗ₜ (f i) := rfl
396
leanexplore_declaration
leanexplore:380184
leanexplore_sqlite
leanexplore_declarations
@[simp] lemma lTensorEquivLeft_tmul (R M : Type*) [CommRing R] [CommRing M] [Algebra R M] {ι : Type*} (N : ι → Type*) [∀ i, Ring (N i)] [∀ i, Algebra R (N i)] (L : ∀ i, Submodule R (N i)) (ℱ : Filter ι) [Module.Flat R M] [Module.FinitePresentation R M] (m : M) (f : Πʳ i, [N i, L i]_[ℱ]) (i : ι) : lTenso...
284
leanexplore_declaration
leanexplore:380185
leanexplore_sqlite
leanexplore_declarations
/-- If `B` is an `A`-algebra and `v : HeightOneSpectrum A` is a nonzero prime, then `v.Extension B` is the subtype of `HeightOneSpeectrum B` consisting of valuations of `B` which restrict to `v`. -/ def Extension (v : HeightOneSpectrum A) := {w : HeightOneSpectrum B // w.under A = v}
2,618
leanexplore_declaration
leanexplore:380186
leanexplore_sqlite
leanexplore_declarations
lemma mk_count_factors_map (hAB : Function.Injective (algebraMap A B)) (w : HeightOneSpectrum B) (I : Ideal A) : (Associates.mk w.asIdeal).count (Associates.mk (Ideal.map (algebraMap A B) I)).factors = Ideal.ramificationIdx (under A w).asIdeal w.asIdeal * (Associates.mk (under A w).asIdeal).count ...
308
leanexplore_declaration
leanexplore:380187
leanexplore_sqlite
leanexplore_declarations
lemma ramificationIdx_ne_zero (hAB : Function.Injective (algebraMap A B)) (w : HeightOneSpectrum B) : Ideal.ramificationIdx (under A w).asIdeal w.asIdeal ≠ 0 := Ideal.IsDedekindDomain.ramificationIdx_ne_zero ((Ideal.map_eq_bot_iff_of_injective hAB).not.mpr (under A w).3) w.2 Ideal.map_comap_le
729
leanexplore_declaration
leanexplore:380188
leanexplore_sqlite
leanexplore_declarations
/-- If w | v then for a ∈ A we have w(a)=v(a)^e where e is the ramification index. -/ lemma intValuation_comap (hAB : Function.Injective (algebraMap A B)) (w : HeightOneSpectrum B) (x : A) : (under A w).intValuation x ^ (Ideal.ramificationIdx (under A w).asIdeal w.asIdeal) = w.intValuation (algebraMap A...
540
leanexplore_declaration
leanexplore:380189
leanexplore_sqlite
leanexplore_declarations
/-- If w | v then for x ∈ K we have w(x)=v(x)^e where e is the ramification index. -/ lemma valuation_comap (w : HeightOneSpectrum B) (x : K) : (under A w).valuation K x ^ (Ideal.ramificationIdx (under A w).asIdeal w.asIdeal) = w.valuation L (algebraMap K L x) := by obtain ⟨x, y, hy, rfl⟩ := IsFractionR...
246
leanexplore_declaration
leanexplore:380190
leanexplore_sqlite
leanexplore_declarations
lemma isTorsionFree [IsDomain B] : Module.IsTorsionFree A B := by have : FaithfulSMul A B := FaithfulSMul.of_field_isFractionRing A B K L have : Nontrivial A := (IsFractionRing.nontrivial_iff_nontrivial A K).mpr inferInstance infer_instance
743
leanexplore_declaration
leanexplore:380191
leanexplore_sqlite
leanexplore_declarations
/-- There are only finitely many nonzero primes of B above a nonzero prime of A. -/ theorem Extension.finite (v : HeightOneSpectrum A) : Finite (v.Extension B) := by have := isTorsionFree A K L B rw [Extension, ← Set.coe_setOf] rw [@Set.finite_coe_iff] have := primesOver_finite v.asIdeal B refine Set.Finite.o...
234
leanexplore_declaration
leanexplore:380192
leanexplore_sqlite
leanexplore_declarations
/-- There are only finitely many nonzero primes of B above a nonzero prime of A. -/ @[reducible] noncomputable def Extension.fintype : Fintype (Extension B v) := have := Extension.finite A K L B v Fintype.ofFinite <| Extension B v
281
leanexplore_declaration
leanexplore:380193
leanexplore_sqlite
leanexplore_declarations
theorem preimage_comap_finite (S : Set (HeightOneSpectrum A)) (hS : S.Finite) : ((under A : HeightOneSpectrum B → HeightOneSpectrum A) ⁻¹' S).Finite := by rw [← Set.biUnion_preimage_singleton (under A) S] exact Set.Finite.biUnion' hS <| fun v _ ↦ Extension.finite A K L B v
350
leanexplore_declaration
leanexplore:380194
leanexplore_sqlite
leanexplore_declarations
/-- Given an inclusion of Dedekind domains A → B, making B finite over A, this is the preimage of a Finset of finite places of A, as a Finset of finite places of B. -/ noncomputable def preimageComapFinset (S : Finset (HeightOneSpectrum A)) : Finset (HeightOneSpectrum B) := Set.Finite.toFinset <| preimage_comap_f...
1,373
leanexplore_declaration
leanexplore:380195
leanexplore_sqlite
leanexplore_declarations
/-- `Ideal.sum_ramification_inertia`, rewritten as a sum over extensions. -/ lemma _root_.Ideal.sum_ramification_inertia_extensions [Module.Finite A B] : letI := Extension.fintype A K L B v ∑ (w : Extension B v), Ideal.ramificationIdx v.asIdeal w.val.asIdeal * (v.asIdeal).inertiaDeg (w.val.asIdeal) = Modu...
734
leanexplore_declaration
leanexplore:380196
leanexplore_sqlite
leanexplore_declarations
/-- The canonical `K`-linear isomorphism `L ≅ K ⊗ B`. -/ noncomputable def LinearEquivTensorProduct : L ≃ₗ[K] K ⊗[A] B := let f := LocalizedModule.equivTensorProduct (nonZeroDivisors A) B have := IsIntegralClosure.isLocalization A K L B have : IsLocalizedModule (nonZeroDivisors A) (IsScalarTower.toAlgHom A B ...
355
leanexplore_declaration
leanexplore:380197
leanexplore_sqlite
leanexplore_declarations
lemma LinearEquivTensorProduct_symm_one_tmul (b : B) : (LinearEquivTensorProduct A K L B).symm (1 ⊗ₜ b) = (algebraMap _ _ b) := by have : (SemilinearEquivClass.semilinearEquiv (Localization.algEquiv (nonZeroDivisors A) K)).symm 1 = 1 := map_one (Localization.algEquiv (nonZeroDivisors A) K).symm si...
304
leanexplore_declaration
leanexplore:380198
leanexplore_sqlite
leanexplore_declarations
lemma LinearEquivTensorProduct_symm_tmul (k : K) (b : B) : (LinearEquivTensorProduct A K L B).symm (k ⊗ₜ b) = k • (algebraMap _ _ b) := by have : k ⊗ₜ b = k • (1 ⊗ₜ b : K ⊗[A] B) := by simp [TensorProduct.smul_tmul'] rw [this, LinearEquiv.map_smul, LinearEquivTensorProduct_symm_one_tmul]
797
leanexplore_declaration
leanexplore:380199
leanexplore_sqlite
leanexplore_declarations
/-- The canonical `A`-linear isomorphism `L ⊗ M ≅ B ⊗ M` for any `K`-module `M`. -/ noncomputable def linearEquivTensorProductModule : L ⊗[K] M ≃ₗ[A] B ⊗[A] M := let f₁ : L ⊗[K] M ≃ₗ[A] L ⊗[A] M := IsLocalization.moduleTensorEquiv (nonZeroDivisors A) K L M |>.restrictScalars A let f₂ : L ≃ₗ[A] B ⊗[A] K := Linea...
1,077
leanexplore_declaration
leanexplore:380200
leanexplore_sqlite
leanexplore_declarations
/-- The canonical `B`-linear isomorphism `L ⊗ M ≅ B ⊗ M` for any `K`-module `M`. -/ noncomputable def linearEquivTensorProductModuleLeft : L ⊗[K] M ≃ₗ[B] B ⊗[A] M := let f₁ : L ⊗[K] M ≃ₗ[B] L ⊗[A] M := IsLocalization.leftModuleTensorEquiv B (nonZeroDivisors A) K L M let f₂ : B ⊗[A] K ≃ₗ[B] L := { __ := Line...
188
leanexplore_declaration
leanexplore:380201
leanexplore_sqlite
leanexplore_declarations
lemma linearEquivTensorProductModuleLeft_restrictScalars : (linearEquivTensorProductModuleLeft A K L B M).restrictScalars A = linearEquivTensorProductModule A K L B M := by rfl
237
leanexplore_declaration
leanexplore:380202
leanexplore_sqlite
leanexplore_declarations
lemma linearEquivTensorProductModule_symm_tmul (b : B) (m : M) : (linearEquivTensorProductModule A K L B M).symm (b ⊗ₜ m) = (algebraMap B L b) ⊗ₜ m := by simp [linearEquivTensorProductModule, LinearEquivTensorProduct_symm_one_tmul]
224
leanexplore_declaration
leanexplore:380203
leanexplore_sqlite
leanexplore_declarations
lemma linearEquivTensorProductModule_tmul (b : B) (m : M) : (linearEquivTensorProductModule A K L B M) ((algebraMap B L b) ⊗ₜ m) = b ⊗ₜ m := by rw [← LinearEquiv.eq_symm_apply, linearEquivTensorProductModule_symm_tmul]
249
leanexplore_declaration
leanexplore:380204
leanexplore_sqlite
leanexplore_declarations
lemma linearEquivTensorProductModuleLeft_symm_tmul (b : B) (m : M) : (linearEquivTensorProductModuleLeft A K L B M).symm (b ⊗ₜ m) = (algebraMap B L b) ⊗ₜ m := by simp [linearEquivTensorProductModuleLeft, LinearEquivTensorProduct_symm_one_tmul]
236
leanexplore_declaration
leanexplore:380205
leanexplore_sqlite
leanexplore_declarations
lemma linearEquivTensorProductModuleLeft_tmul (b : B) (m : M) : (linearEquivTensorProductModuleLeft A K L B M) ((algebraMap B L b) ⊗ₜ m) = b ⊗ₜ m := by rw [← LinearEquiv.eq_symm_apply, linearEquivTensorProductModuleLeft_symm_tmul]
773
leanexplore_declaration
leanexplore:380206
leanexplore_sqlite
leanexplore_declarations
lemma _root_.IsIntegralClosure.isLocalizedModule : IsLocalizedModule (nonZeroDivisors A) ((Algebra.linearMap B L).restrictScalars A) := by have hlocal := IsIntegralClosure.isLocalization A K L B rw [← isLocalizedModule_iff_isLocalization'] at hlocal exact { map_units x := by obtain ⟨x, hx⟩ := x ...
174
leanexplore_declaration
leanexplore:380207
leanexplore_sqlite
leanexplore_declarations
/-- `InverseLimit G f` is the Inverse Limit of the objects `G i` glued by functions `f`. -/ def InverseLimit : Type _ := {x : (i : ι) → G i // ∀ i j h, f i j h (x j) = (x i)}
106
leanexplore_declaration
leanexplore:380208
leanexplore_sqlite
leanexplore_declarations
lemma InverseLimit_def : InverseLimit G f = {x : (i : ι) → G i // ∀ i j h, f i j h (x j) = (x i)} := rfl
75
leanexplore_declaration
leanexplore:380209
leanexplore_sqlite
leanexplore_declarations
instance : CoeOut (InverseLimit G f) ((i : ι) → G i) where coe x := x.val
76
leanexplore_declaration
leanexplore:380210
leanexplore_sqlite
leanexplore_declarations
@[simp] lemma prop : ∀ (i j : _) (h : i ≤ j), f i j h (x.1 j) = x.1 i := x.2
112
leanexplore_declaration
leanexplore:380211
leanexplore_sqlite
leanexplore_declarations
@[ext] lemma ext_lemma (h : ∀ i, x.1 i = y.1 i) : x = y := by simp only [InverseLimit_def] ext i exact h i
61
leanexplore_declaration
leanexplore:380212
leanexplore_sqlite
leanexplore_declarations
@[ext] lemma ext_lemma (h : ∀ i, x.1 i = y.1 i) : x = y := by
92
leanexplore_declaration
leanexplore:380213
leanexplore_sqlite
leanexplore_declarations
@[to_additive] instance instOne : One (InverseLimit G f) where one := ⟨fun _ ↦ 1, by simp⟩
83
leanexplore_declaration
leanexplore:380215
leanexplore_sqlite
leanexplore_declarations
@[to_additive (attr := simp)] theorem one_def : (1 : InverseLimit G f).1 = 1 := rfl
110
leanexplore_declaration
leanexplore:380217
leanexplore_sqlite
leanexplore_declarations
@[to_additive] instance : Mul (InverseLimit G f) where mul x y := ⟨fun (i : ι) ↦ (x.1 i) * (y.1 i), by simp⟩
82
leanexplore_declaration
leanexplore:380219
leanexplore_sqlite
leanexplore_declarations
@[to_additive (attr := simp)] theorem mul_def : (x * y).1 = (x.1 * y.1) := rfl
172
leanexplore_declaration
leanexplore:380221
leanexplore_sqlite
leanexplore_declarations
@[to_additive] instance [∀ i, CommMagma (G i)] [∀ i j h, MulHomClass (T h) (G j) (G i)] : CommMagma (InverseLimit G f) where mul_comm a b := by ext i; simp [mul_comm]
128
leanexplore_declaration
leanexplore:380222
leanexplore_sqlite
leanexplore_declarations
@[to_additive] instance [∀ i, CommMagma (G i)] [∀ i j h, MulHomClass (T h) (G j) (G i)] : CommMagma (InverseLimit G f) where
176
leanexplore_declaration
leanexplore:380223
leanexplore_sqlite
leanexplore_declarations
@[to_additive] instance [∀ i, Semigroup (G i)] [∀ i j h, MulHomClass (T h) (G j) (G i)] : Semigroup (InverseLimit G f) where mul_assoc a b c := by ext i; simp [mul_assoc]
128
leanexplore_declaration
leanexplore:380224
leanexplore_sqlite
leanexplore_declarations
@[to_additive] instance [∀ i, Semigroup (G i)] [∀ i j h, MulHomClass (T h) (G j) (G i)] : Semigroup (InverseLimit G f) where