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
121
leanexplore_declaration
leanexplore:381156
leanexplore_sqlite
leanexplore_declarations
lemma infinitePlace_isReal (v : InfinitePlace ℚ) : v.IsReal := Subsingleton.elim v infinitePlace ▸ isReal_infinitePlace
351
leanexplore_declaration
leanexplore:381157
leanexplore_sqlite
leanexplore_declarations
theorem AbsoluteValue.Completion.secondCountableTopology {K : Type*} [Field K] {v : AbsoluteValue K ℝ} {L : Type*} [NormedField L] [CompleteSpace L] {f : WithAbs v →+* L} [SecondCountableTopology L] (h : Isometry f) : SecondCountableTopology v.Completion := h.completion_extension.isClosedEmbedding.isI...
237
leanexplore_declaration
leanexplore:381158
leanexplore_sqlite
leanexplore_declarations
instance NumberField.InfinitePlace.Completion.secondCountableTopology {K : Type*} [Field K] (v : InfinitePlace K) : SecondCountableTopology (v.Completion) := AbsoluteValue.Completion.secondCountableTopology v.isometry_embedding
92
leanexplore_declaration
leanexplore:381160
leanexplore_sqlite
leanexplore_declarations
instance : Module.Free ℤ R := .of_equiv (IsIntegralClosure.intEquiv R).toIntLinearEquiv.symm
91
leanexplore_declaration
leanexplore:381161
leanexplore_sqlite
leanexplore_declarations
instance : Module.Finite ℤ R := .equiv (IsIntegralClosure.intEquiv R).toIntLinearEquiv.symm
100
leanexplore_declaration
leanexplore:381162
leanexplore_sqlite
leanexplore_declarations
instance : IsPrincipalIdealRing R := .of_surjective _ (IsIntegralClosure.intEquiv R).symm.surjective
172
leanexplore_declaration
leanexplore:381163
leanexplore_sqlite
leanexplore_declarations
@[simp] theorem intEquiv_apply_coe (z : R) : (IsIntegralClosure.intEquiv R z : R) = z := by obtain ⟨z, rfl⟩ := (IsIntegralClosure.intEquiv R).symm.surjective z simp
273
leanexplore_declaration
leanexplore:381164
leanexplore_sqlite
leanexplore_declarations
theorem pow_natGenerator_dvd_iff (v : HeightOneSpectrum R) {n : ℕ} (m : ℕ) : natGenerator v ^ m ∣ n ↔ ↑n ∈ (v.asIdeal.map (IsIntegralClosure.intEquiv R)) ^ m := by rw [← span_natGenerator, Ideal.span_singleton_pow, Ideal.mem_span_singleton] exact Int.ofNat_dvd.symm
812
leanexplore_declaration
leanexplore:381165
leanexplore_sqlite
leanexplore_declarations
theorem natGenerator_eq_absNorm (v : HeightOneSpectrum R) : natGenerator v = Ideal.absNorm v.asIdeal := by rw [natGenerator] conv_lhs => enter[1, 1] rw [← Int.ideal_span_absNorm_eq_self (Ideal.map (IsIntegralClosure.intEquiv R) v.asIdeal)] rw [Int.natAbs_eq_iff_associated.2 <| Submodule.IsPrincipal.as...
536
leanexplore_declaration
leanexplore:381166
leanexplore_sqlite
leanexplore_declarations
theorem intValuation_eq_padicValuation_iff_multiplicity_eq_multiplicity {x : R} (v : HeightOneSpectrum R) (hx : x ≠ 0) : intValuation v x = padicValuation (primesEquiv v) (IsIntegralClosure.intEquiv R x) ↔ multiplicity v.asIdeal (Ideal.span {x}) = multiplicity (primesEquiv v).1 (IsIntegralClosure....
558
leanexplore_declaration
leanexplore:381167
leanexplore_sqlite
leanexplore_declarations
theorem valuation_apply_coe_eq_padicValuation (x : R) (v : HeightOneSpectrum R) : v.valuation ℚ (algebraMap R ℚ x) = padicValuation (primesEquiv v) (IsIntegralClosure.intEquiv R x) := by rw [IsDedekindDomain.HeightOneSpectrum.valuation_of_algebraMap] rcases eq_or_ne x 0 with rfl | hx · simp · rw [...
440
leanexplore_declaration
leanexplore:381168
leanexplore_sqlite
leanexplore_declarations
theorem valuation_apply_eq_padicValuation (v : HeightOneSpectrum R) (x : ℚ) : v.valuation ℚ x = padicValuation (primesEquiv v) x := by obtain ⟨⟨n, d, hd⟩, hx⟩ := IsLocalization.surj (nonZeroDivisors R) x obtain rfl : x = IsLocalization.mk' ℚ n ⟨d, hd⟩ := IsLocalization.eq_mk'_iff_mul_eq.mpr hx simp [IsFractio...
205
leanexplore_declaration
leanexplore:381169
leanexplore_sqlite
leanexplore_declarations
theorem adicCompletion.padicEquiv_cast (v : IsDedekindDomain.HeightOneSpectrum R) (x : WithVal (v.valuation ℚ)) : (padicEquiv v) x = Padic.withValRingEquiv (mapEquiv (withValEquiv v) x) := by rfl
853
leanexplore_declaration
leanexplore:381170
leanexplore_sqlite
leanexplore_declarations
lemma adicCompletion.padicEquiv_norm_coe_eq (v : IsDedekindDomain.HeightOneSpectrum (𝓞 ℚ)) (x : WithVal (v.valuation ℚ)) : ‖(padicEquiv v) x‖ = ‖algebraMap _ (v.adicCompletion ℚ) x‖ := by rw [padicEquiv_cast v x, mapEquiv_coe, Padic.coe_withValRingEquiv, extension_coe ( by simpa using Padic.isUnifo...
313
leanexplore_declaration
leanexplore:381171
leanexplore_sqlite
leanexplore_declarations
lemma adicCompletion.padicEquiv_norm_eq (v : IsDedekindDomain.HeightOneSpectrum (𝓞 ℚ)) (x : v.adicCompletion ℚ) : ‖(padicEquiv v) x‖ = ‖x‖ := by induction x using induction_on with | hp => apply isClosed_eq <;> fun_prop | ih => simp [padicEquiv_norm_coe_eq v, UniformSpace.Completion.algebraMap_def]
78
leanexplore_declaration
leanexplore:381172
leanexplore_sqlite
leanexplore_declarations
@[simp, norm_cast] lemma coe_coeRingHom : ⇑(Coe.ringHom (p := p)) = (↑) := rfl
78
leanexplore_declaration
leanexplore:381173
leanexplore_sqlite
leanexplore_declarations
lemma coe_injective : Injective ((↑) : ℤ_[p] → ℚ_[p]) := Subtype.val_injective
95
leanexplore_declaration
leanexplore:381174
leanexplore_sqlite
leanexplore_declarations
@[simp] lemma coe_inj {x y : ℤ_[p]} : (x : ℚ_[p]) = (y : ℚ_[p]) ↔ x = y := coe_injective.eq_iff
48
leanexplore_declaration
leanexplore:381175
leanexplore_sqlite
leanexplore_declarations
instance : Infinite ℤ_[p] := CharZero.infinite _
78
leanexplore_declaration
leanexplore:381176
leanexplore_sqlite
leanexplore_declarations
@[simp] lemma nnnorm_p : ‖(p : ℤ_[p])‖₊ = (p : ℝ≥0)⁻¹ := by simp [nnnorm]; rfl
101
leanexplore_declaration
leanexplore:381177
leanexplore_sqlite
leanexplore_declarations
@[simp] protected lemma nnnorm_units (u : ℤ_[p]ˣ) : ‖(u : ℤ_[p])‖₊ = 1 := by simp [← norm_toNNReal]
131
leanexplore_declaration
leanexplore:381178
leanexplore_sqlite
leanexplore_declarations
lemma exists_unit_mul_p_pow_eq (hx : x ≠ 0) : ∃ (u : ℤ_[p]ˣ) (n : ℕ), (u : ℤ_[p]) * p ^ n = x := ⟨_, _, (unitCoeff_spec hx).symm⟩
140
leanexplore_declaration
leanexplore:381179
leanexplore_sqlite
leanexplore_declarations
@[simp] lemma image_coe_smul_set (x : ℤ_[p]) (s : Set ℤ_[p]) : ((↑) '' (x • s) : Set ℚ_[p]) = x • (↑) '' s := Set.image_comm fun _ ↦ rfl
89
leanexplore_declaration
leanexplore:381180
leanexplore_sqlite
leanexplore_declarations
noncomputable instance : Coe ℤ_[p]ˣ ℚ_[p]ˣ where coe := Units.map Coe.ringHom.toMonoidHom
672
leanexplore_declaration
leanexplore:381181
leanexplore_sqlite
leanexplore_declarations
lemma _root_.AddSubgroup.comap_smul_one (R A : Type*) [CommRing R] [CommRing A] [Algebra R A] [FaithfulSMul R A] (r : R) : AddSubgroup.comap (algebraMap R A) (r • (1 : Submodule R A).toAddSubgroup) = r • (1 : Submodule R R).toAddSubgroup := by ext s simp only [AddSubgroup.mem_comap, AddMonoidHom.coe_coe...
902
leanexplore_declaration
leanexplore:381182
leanexplore_sqlite
leanexplore_declarations
lemma index_span_p_pow (hx : x ≠ 0) : (Submodule.toAddSubgroup (Ideal.span {(p : ℤ_[p]) ^ x.valuation})).index = ‖(x : ℚ_[p])‖₊⁻¹ := by have quotient_equiv_zmod := RingHom.quotientKerEquivOfSurjective (f := PadicInt.toZModPow (x.valuation) (p := p)) (R := ℤ_[p]) (ZMod.ringHom_surjective (PadicInt.to...
382
leanexplore_declaration
leanexplore:381183
leanexplore_sqlite
leanexplore_declarations
lemma smul_submodule_one_index : (x • (1 : Submodule ℤ_[p] ℤ_[p])).toAddSubgroup.index = ‖(x : ℚ_[p])‖₊⁻¹ := by by_cases hx: x = 0 · simp [hx] · have x_factor := PadicInt.unitCoeff_spec hx nth_rw 1 [x_factor] rw [Submodule.smul_one_eq_span, ← smul_eq_mul, Submodule.span_singleton_smul_eq (Units....
1,376
leanexplore_declaration
leanexplore:381184
leanexplore_sqlite
leanexplore_declarations
/-- `x • S` has index `‖x‖⁻¹` in `S`, where `S` is the copy of `ℤ_[p]` inside `ℚ_[p]` -/ lemma smul_submodule_one_relIndex : (x • (1 : Submodule ℤ_[p] ℚ_[p]).toAddSubgroup).relIndex (1 : Submodule ℤ_[p] ℚ_[p]).toAddSubgroup = ‖x.val‖₊⁻¹ := by have relIndex_in_z_p : (x • (1 : Submodule ℤ_[p] ℤ_[p])).toAddSub...
367
leanexplore_declaration
leanexplore:381185
leanexplore_sqlite
leanexplore_declarations
/-- `x • S` has finite in `S`, where `S` is the copy of `ℤ_[p]` inside `ℚ_[p]` -/ lemma smul_submodule_one_isFiniteRelIndex (hx : x ≠ 0) : (x • (1 : Submodule ℤ_[p] ℚ_[p]).toAddSubgroup).IsFiniteRelIndex (1 : Submodule ℤ_[p] ℚ_[p]).toAddSubgroup where relIndex_ne_zero := by rw [← Nat.cast_ne_zero (R := ℝ...
154
leanexplore_declaration
leanexplore:381186
leanexplore_sqlite
leanexplore_declarations
noncomputable instance : Coe ℤ_[p]⁰ ℚ_[p]ˣ where coe x := .mk0 x.1 <| map_ne_zero_of_mem_nonZeroDivisors (M₀ := ℤ_[p]) Coe.ringHom coe_injective x.2
644
leanexplore_declaration
leanexplore:381187
leanexplore_sqlite
leanexplore_declarations
/-- Non-zero p-adic integers generate non-zero p-adic numbers as a group. -/ lemma closure_nonZeroDivisors_padicInt : Subgroup.closure (Set.range ((↑) : ℤ_[p]⁰ → ℚ_[p]ˣ)) = ⊤ := by set H := Subgroup.closure (Set.range ((↑) : ℤ_[p]⁰ → ℚ_[p]ˣ)) rw [eq_top_iff'] intro x obtain ⟨y, z, hz, hyzx⟩ := IsFractionRin...
136
leanexplore_declaration
leanexplore:381188
leanexplore_sqlite
leanexplore_declarations
lemma submodule_one_eq_closedBall : (1 : Submodule ℤ_[p] ℚ_[p]) = Metric.closedBall (0 : ℚ_[p]) 1 := by ext x; simp; simp [PadicInt]
238
leanexplore_declaration
leanexplore:381189
leanexplore_sqlite
leanexplore_declarations
lemma Filter.cofinite.sets.countable (ι : Type*) [Countable ι] : (Filter.cofinite : Filter ι).sets.Countable := Set.Countable.mono (fun _ h ↦ h) <| Set.Countable.preimage_of_injOn Set.Countable.setOf_finite compl_bijective.1.injOn
150
leanexplore_declaration
leanexplore:381190
leanexplore_sqlite
leanexplore_declarations
instance (ι : Type*) [Countable ι] : Countable (.cofinite : Filter ι).sets := by rw [Set.countable_coe_iff] exact Filter.cofinite.sets.countable ι
64
leanexplore_declaration
leanexplore:381191
leanexplore_sqlite
leanexplore_declarations
@[simp] lemma comp_def (g h : G) : ρ g ∘ₗ ρ h = ρ g * ρ h := rfl
420
leanexplore_declaration
leanexplore:381192
leanexplore_sqlite
leanexplore_declarations
noncomputable def gl_map_of_basis : G →* Matrix.GeneralLinearGroup ι R where toFun g := { val := LinearMap.toMatrix 𝓑 𝓑 (ρ g) inv := LinearMap.toMatrix 𝓑 𝓑 (ρ g⁻¹) val_inv := by rw [← toMatrix_comp, comp_def, ← map_mul]; simp inv_val := by rw [← toMatrix_comp, comp_def, ← map_mul]; sim...
230
leanexplore_declaration
leanexplore:381193
leanexplore_sqlite
leanexplore_declarations
noncomputable def baseChange (R' : Type*) [CommRing R'] [Algebra R R'] (ρ : Representation R G V) : Representation R' G (R' ⊗[R] V) where toFun g := LinearMap.baseChange R' (ρ g) map_one' := by aesop map_mul' := by aesop
45
leanexplore_declaration
leanexplore:381195
leanexplore_sqlite
leanexplore_declarations
scoped notation R' "⊗ᵣ'" ρ => baseChange R' ρ
482
leanexplore_declaration
leanexplore:381196
leanexplore_sqlite
leanexplore_declarations
instance {R : Type*} [CommRing R] [IsDedekindDomain R] (K : Type*) [Field K] [Countable K] [Algebra R K] [IsFractionRing R K] (v : HeightOneSpectrum R) : TopologicalSpace.SeparableSpace (v.adicCompletion K) where exists_countable_dense := by refine ⟨_, ?_, UniformSpace.Completion.denseRange_coe⟩ have ...
609
leanexplore_declaration
leanexplore:381197
leanexplore_sqlite
leanexplore_declarations
lemma intValuation_eq_coe_neg_multiplicity {A : Type*} [CommRing A] [IsDedekindDomain A] (v : HeightOneSpectrum A) {a : A} (hnz : a ≠ 0) : v.intValuation a = WithZero.exp (-(multiplicity v.asIdeal (Ideal.span {a}) : ℤ)) := by classical have hnb : Ideal.span {a} ≠ ⊥ := by rwa [ne_eq, Ideal.span_singleton...
177
leanexplore_declaration
leanexplore:381198
leanexplore_sqlite
leanexplore_declarations
/-- The integral adele subring inside the finite adele ring. -/ noncomputable abbrev integralAdeles : Subring (FiniteAdeleRing R K) := RestrictedProduct.structureSubring _ _ _
90
leanexplore_declaration
leanexplore:381199
leanexplore_sqlite
leanexplore_declarations
@[simp] lemma one_apply (v : HeightOneSpectrum R) : (1 : FiniteAdeleRing R K) v = 1 := rfl
112
leanexplore_declaration
leanexplore:381200
leanexplore_sqlite
leanexplore_declarations
@[simp] lemma mul_apply (a b : FiniteAdeleRing R K) (v : HeightOneSpectrum R) : (a * b) v = a v * b v := rfl
253
leanexplore_declaration
leanexplore:381201
leanexplore_sqlite
leanexplore_declarations
@[simp] lemma mk_apply (f : ∀ v, HeightOneSpectrum.adicCompletion K v) (h : ∀ᶠ (i : HeightOneSpectrum R) in Filter.cofinite, f i ∈ (fun v ↦ ↑(HeightOneSpectrum.adicCompletionIntegers K v)) i) (v : HeightOneSpectrum R) : mk f h v = f v := rfl
325
leanexplore_declaration
leanexplore:381202
leanexplore_sqlite
leanexplore_declarations
/-- The K-algebra map `𝔸_K^f → Kᵥ` from the finite adele ring of K to a completion. -/ noncomputable def evalAlgebraMap (j : HeightOneSpectrum R) : FiniteAdeleRing R K →ₐ[K] j.adicCompletion K := { __ := RestrictedProduct.evalContinuousAddMonoidHom _ j map_one' := rfl map_mul' _ _ := rfl commutes' _ := rfl...
521
leanexplore_declaration
leanexplore:381203
leanexplore_sqlite
leanexplore_declarations
/-- The continuous K-algebra map `𝔸_K^f → Kᵥ` from the finite adele ring of K to a completion. -/ noncomputable def evalContinuousAlgebraMap (j : HeightOneSpectrum R) : FiniteAdeleRing R K →A[K] j.adicCompletion K := { __ := RestrictedProduct.evalContinuousAddMonoidHom _ j __ := IsDedekindDomain.FiniteAdeleRin...
695
leanexplore_declaration
leanexplore:381204
leanexplore_sqlite
leanexplore_declarations
/-- The continuous K-linear inclusion Kᵥ → 𝔸_K^f from a completion to the finite K-adeles. -/ noncomputable def singleLinearMap (j : HeightOneSpectrum R) : j.adicCompletion K →ₗ[K] FiniteAdeleRing R K := { __ := RestrictedProduct.singleContinuousAddMonoidHom _ j map_smul' k x := by open RestrictedProduct i...
450
leanexplore_declaration
leanexplore:381205
leanexplore_sqlite
leanexplore_declarations
/-- The continuous K-linear inclusion Kᵥ → 𝔸_K^f from a completion to the finite K-adeles. -/ noncomputable def singleMulHom (j : HeightOneSpectrum R) : j.adicCompletion K →ₙ* FiniteAdeleRing R K := { __ := RestrictedProduct.singleContinuousAddMonoidHom _ j map_mul' a b := by ext v change Pi.single j (...
877
leanexplore_declaration
leanexplore:381206
leanexplore_sqlite
leanexplore_declarations
/-- The continuous K-linear inclusion Kᵥ → 𝔸_K^f from a completion to the finite K-adeles. -/ noncomputable def singleContinuousLinearMap (j : HeightOneSpectrum R) : j.adicCompletion K →L[K] FiniteAdeleRing R K := { __ := RestrictedProduct.singleContinuousAddMonoidHom _ j map_smul' k x := by open Restricte...
221
leanexplore_declaration
leanexplore:381207
leanexplore_sqlite
leanexplore_declarations
lemma evalContinuousAlgebraMap_singleContinuousLinearMap (j : HeightOneSpectrum R) (xj : j.adicCompletion K) : (evalContinuousAlgebraMap R K j) (singleContinuousLinearMap R K j xj) = xj := Pi.single_eq_same j xj
181
leanexplore_declaration
leanexplore:381208
leanexplore_sqlite
leanexplore_declarations
lemma evalAlgebraMap_singleLinearMap (j : HeightOneSpectrum R) (xj : j.adicCompletion K) : (evalAlgebraMap R K j) (singleLinearMap R K j xj) = xj := Pi.single_eq_same j xj
322
leanexplore_declaration
leanexplore:381209
leanexplore_sqlite
leanexplore_declarations
/-- `localIdempotent R K p` is the finite adele which is 1 at p and 0 elsewhere. -/ noncomputable def localIdempotent (p : HeightOneSpectrum R) : FiniteAdeleRing R K := ⟨Pi.single p 1, by apply Set.Finite.subset (Set.finite_singleton p) rw [Set.compl_subset_comm] intro q hq simp [Pi.single_eq_of_ne hq...
146
leanexplore_declaration
leanexplore:381210
leanexplore_sqlite
leanexplore_declarations
lemma eval_localIdempotent (p : HeightOneSpectrum R) : (evalContinuousAlgebraMap R K p) (localIdempotent R K p) = 1 := Pi.single_eq_same _ _
569
leanexplore_declaration
leanexplore:381211
leanexplore_sqlite
leanexplore_declarations
/-- The composite `𝔸_K^f --(eval)--> Kᵥ --(single)--> 𝔸_K^f` is multiplication by the local idempotent at v. -/ lemma singleContinuousAlgebraMap_comp_evalContinuousLinearMap (j : HeightOneSpectrum R) : ((singleContinuousLinearMap R K j).comp (evalContinuousAlgebraMap R K j).toContinuousLinearMap).toLinearMap ...
449
leanexplore_declaration
leanexplore:381212
leanexplore_sqlite
leanexplore_declarations
/-- Pulling back elements of `HeightOneSpectrum` along a ring isomorphism. -/ def RingEquiv.heightOneSpectrum_comap {A B : Type*} [CommRing A] [CommRing B] (e : A ≃+* B) (P : HeightOneSpectrum B) : HeightOneSpectrum A := { asIdeal := .comap e P.asIdeal isPrime := P.asIdeal.comap_isPrime e ne_bot h := ...
568
leanexplore_declaration
leanexplore:381213
leanexplore_sqlite
leanexplore_declarations
/-- The bijection `HeightOneSpectrum A ≃ HeightOneSpectrum B` induced by a ring isomorphism between `A` and `B`. -/ def RingEquiv.heightOneSpectrum {A B : Type*} [CommRing A] [CommRing B] (e : A ≃+* B) : HeightOneSpectrum A ≃ HeightOneSpectrum B where toFun := e.symm.heightOneSpectrum_comap invFun := e....
386
leanexplore_declaration
leanexplore:381214
leanexplore_sqlite
leanexplore_declarations
/-- The element of `HeightOneSpectrum ℤ` associated to a prime number. -/ def Nat.Prime.toHeightOneSpectrumInt {p : ℕ} (hp : p.Prime) : HeightOneSpectrum ℤ where asIdeal := .span {(p : ℤ)} isPrime := by rwa [Ideal.span_singleton_prime (Int.ofNat_ne_zero.mpr hp.ne_zero), ← prime_iff_prime_int] ne_bot := mt Sub...
293
leanexplore_declaration
leanexplore:381215
leanexplore_sqlite
leanexplore_declarations
/-- The element of `HeightOneSpectrum (𝓞 ℚ)` associated to a prime number. -/ noncomputable def Nat.Prime.toHeightOneSpectrumRingOfIntegersRat {p : ℕ} (hp : p.Prime) : IsDedekindDomain.HeightOneSpectrum (𝓞 ℚ) := Rat.ringOfIntegersEquiv.symm.heightOneSpectrum <| hp.toHeightOneSpectrumInt
132
leanexplore_declaration
leanexplore:381216
leanexplore_sqlite
leanexplore_declarations
theorem Ideal.Quotient.out_sub (x : R) : (Ideal.Quotient.mk I x).out - x ∈ I := by rw [← Ideal.Quotient.eq, Ideal.Quotient.mk_out]
97
leanexplore_declaration
leanexplore:381217
leanexplore_sqlite
leanexplore_declarations
instance IsLocalRing.quot : IsLocalRing (R ⧸ I) := .of_surjective' _ Ideal.Quotient.mk_surjective
118
leanexplore_declaration
leanexplore:381218
leanexplore_sqlite
leanexplore_declarations
instance IsLocalHom.quotient_mk : IsLocalHom (algebraMap R (R ⧸ I)) := .of_surjective _ Ideal.Quotient.mk_surjective
263
leanexplore_declaration
leanexplore:381219
leanexplore_sqlite
leanexplore_declarations
theorem IsLocalRing.maximalIdeal_le {R : Type*} [CommSemiring R] [IsLocalRing R] {J : Ideal R} (hJ : J ≠ ⊤) (h : IsLocalRing.maximalIdeal R ≤ J) : J.IsMaximal := (IsLocalRing.maximalIdeal.isMaximal R).eq_of_le hJ h ▸ IsLocalRing.maximalIdeal.isMaximal R
90
leanexplore_declaration
leanexplore:381220
leanexplore_sqlite
leanexplore_declarations
@[simp] lemma moduleLid_symm_apply (m : M₁) : (moduleLid S A M₁).symm m = 1 ⊗ₜ[R] m := rfl
129
leanexplore_declaration
leanexplore:381221
leanexplore_sqlite
leanexplore_declarations
@[simp] lemma map_moduleTensorEquiv_tmul (m₁ : M₁) (m₂ : M₂) : moduleTensorEquiv S A M₁ M₂ (m₁ ⊗ₜ[A] m₂) = m₁ ⊗ₜ[R] m₂ := rfl
141
leanexplore_declaration
leanexplore:381222
leanexplore_sqlite
leanexplore_declarations
@[simp] lemma map_moduleTensorEquiv_symm_tmul (m₁ : M₁) (m₂ : M₂) : (moduleTensorEquiv S A M₁ M₂).symm (m₁ ⊗ₜ[R] m₂) = m₁ ⊗ₜ[A] m₂ := rfl
474
leanexplore_declaration
leanexplore:381223
leanexplore_sqlite
leanexplore_declarations
theorem tensorProduct_ext {g h : L ⊗[K] M →ₗ[K] P} (H : ∀ (x : B) (y : M), g ((algebraMap _ L x) ⊗ₜ[K] y) = h ((algebraMap _ L x) ⊗ₜ[K] y)) : g = h := by apply TensorProduct.ext' intro l m obtain ⟨⟨x, s⟩, hl : (s : A) • l = algebraMap B L x⟩ := IsLocalizedModule.surj (M:=B) (M':=L) S (Algebra.linearMa...
918
leanexplore_declaration
leanexplore:381224
leanexplore_sqlite
leanexplore_declarations
/-- If `A` is a localization of R, tensoring two A-modules over A is the same as tensoring them over R. This is `IsLocalization.moduleTensorEquiv` as an `M₁`-linear equivalence (more generally an `M'`-linear equivalence where `M₁` is an `M'`-module). -/ @[simps!] noncomputable def leftModuleTensorEquiv {R : Type*} (M' ...
74
leanexplore_declaration
leanexplore:381225
leanexplore_sqlite
leanexplore_declarations
@[simps!] noncomputable def leftModuleTensorEquiv {R : Type*} (M' : Type*)
596
leanexplore_declaration
leanexplore:381227
leanexplore_sqlite
leanexplore_declarations
lemma leftModuleTensorEquiv_restrictScalars_eq {R M' : Type*} [CommSemiring M'] [CommSemiring R] (S : Submonoid R) (A : Type*) [CommSemiring A] [Algebra R A] [Algebra A M'] [Algebra M' R] [IsLocalization S A] (M₁ : Type*) (M₂ : Type*) [AddCommMonoid M₁] [AddCommMonoid M₂] [Module M' M₁] [Module R M₁] [Modul...
244
leanexplore_declaration
leanexplore:381228
leanexplore_sqlite
leanexplore_declarations
@[simp] lemma span_eq_bot {R : Type*} [NonUnitalNonAssocRing R] {s : Set R} : span s = ⊥ ↔ ∀ x ∈ s, x = 0 := eq_bot_iff.trans ⟨fun H _ h => (mem_bot R).mp <| H <| subset_span h, fun H => span_le.mpr fun x h => (mem_bot R).mpr <| H x h⟩
119
leanexplore_declaration
leanexplore:381229
leanexplore_sqlite
leanexplore_declarations
lemma span_singleton_eq_bot {R : Type*} [NonUnitalNonAssocRing R] {x : R} : span ({x} : Set R) = ⊥ ↔ x = 0 := by simp
285
leanexplore_declaration
leanexplore:381230
leanexplore_sqlite
leanexplore_declarations
lemma map_bot {R S : Type*} [NonUnitalNonAssocRing R] [NonUnitalNonAssocRing S] {F : Type*} [FunLike F R S] [ZeroHomClass F R S] {f : F} : (⊥ : TwoSidedIdeal R).map f = ⊥ := by ext x simp [map, coe_bot, Set.image_singleton, map_zero f, mem_bot, span_singleton_eq_bot.2]
249
leanexplore_declaration
leanexplore:381231
leanexplore_sqlite
leanexplore_declarations
protected theorem mem_map_of_mem {R S : Type*} [NonUnitalNonAssocRing R] [NonUnitalNonAssocRing S] {F : Type*} [FunLike F R S] {f : F} {I : TwoSidedIdeal R} {x : R} (hx : x ∈ I) : f x ∈ I.map f := TwoSidedIdeal.subset_span ⟨x, hx, rfl⟩
555
leanexplore_declaration
leanexplore:381232
leanexplore_sqlite
leanexplore_declarations
theorem Submodule.mem_span_range_iff_exists {α M R : Type*} [Semiring R] [AddCommMonoid M] [Module R M] {v : α → M} {x : M} : x ∈ Submodule.span R (Set.range v) ↔ ∃ (s : Finset α) (c : α → R), ∑ i ∈ s, c i • v i = x := by classical rw [← Set.image_univ, Submodule.mem_span_image_iff_exists_fun] simp only [...
4,672
leanexplore_declaration
leanexplore:381233
leanexplore_sqlite
leanexplore_declarations
lemma TwoSidedIdeal.eq_bot_of_map_comap_eq_bot [hA : IsSimpleRing A] [isCentral_A : Algebra.IsCentral K A] [IsSimpleRing B] (I : TwoSidedIdeal (A ⊗[K] B)) (hAB : letI f : B →ₐ[K] A ⊗[K] B := Algebra.TensorProduct.includeRight (I.comap f).map f = ⊥) : I = ⊥ := by set f : B →ₐ[K] A ⊗[K] B := Algebra.Tenso...
1,136
leanexplore_declaration
leanexplore:381234
leanexplore_sqlite
leanexplore_declarations
lemma TensorProduct.map_comap_eq [IsSimpleRing A] [Algebra.IsCentral K A] [hB : IsSimpleRing B] (I : TwoSidedIdeal (A ⊗[K] B)) : letI f : B →ₐ[K] A ⊗[K] B := Algebra.TensorProduct.includeRight (I.comap f).map f = I := by let f : B →ₐ[K] A ⊗[K] B := Algebra.TensorProduct.includeRight refine (le_antisymm ...
643
leanexplore_declaration
leanexplore:381235
leanexplore_sqlite
leanexplore_declarations
instance TensorProduct.simple {A B : Type*} [Ring A] [IsSimpleRing A] [Algebra K A] [Ring B] [Algebra K B] [Algebra.IsCentral K A] [isSimple_B : IsSimpleRing B] : IsSimpleRing (A ⊗[K] B) := by let f : B →ₐ[K] A ⊗[K] B := Algebra.TensorProduct.includeRight refine ⟨⟨fun I ↦ ?_⟩⟩ rcases isSimple_B.1.2 (I.com...
639
leanexplore_declaration
leanexplore:381236
leanexplore_sqlite
leanexplore_declarations
/-- The lift of an `R`-basis of `A` to a `B`-basis of the base change `A ⊗[R] B`. -/ noncomputable def Module.Basis.rightBaseChange [DecidableEq ι] (b : Module.Basis ι R A) : Module.Basis ι B (A ⊗[R] B) where repr := let comm : B ⊗[R] A ≃ₗ[B] A ⊗[R] B := TensorProduct.RightActions.Algebra.TensorProduct....
414
leanexplore_declaration
leanexplore:381237
leanexplore_sqlite
leanexplore_declarations
@[simp] lemma Module.Basis.rightBaseChange_repr [DecidableEq ι] (b : Module.Basis ι R A) (i) (x : B) : (b.rightBaseChange A).repr (b i ⊗ₜ x) = Finsupp.single i x := by have : ∑ (j : ι), (Pi.single i (1 : R) : ι → R) j • (b j) = b i := by conv => lhs arg 2 intro j rw [Pi.single_comm, Pi...
194
leanexplore_declaration
leanexplore:381238
leanexplore_sqlite
leanexplore_declarations
@[simp] lemma Module.Basis.rightBaseChange_apply [DecidableEq ι] (b : Basis ι R A) (i) : b.rightBaseChange A i = b i ⊗ₜ (1 : B) := by rw [apply_eq_iff] exact rightBaseChange_repr A b i 1
365
leanexplore_declaration
leanexplore:381239
leanexplore_sqlite
leanexplore_declarations
lemma finrank_rightAlgebra [Module.Finite R A] [Module.Free R A] : Module.finrank B (A ⊗[R] B) = Module.finrank R A := by have : Nontrivial R := RingHom.domain_nontrivial (algebraMap R B) let b := Module.Free.chooseBasis R A let b' : Module.Basis _ _ (A ⊗[R] B) := b.rightBaseChange A rw [Module.finrank_eq_c...
432
leanexplore_declaration
leanexplore:381240
leanexplore_sqlite
leanexplore_declarations
theorem Algebra.TensorProduct.piScalarRight_symm_apply_of_algebraMap (R S N ι : Type*) [CommSemiring R] [CommSemiring S] [Algebra R S] [Semiring N] [Algebra R N] [Algebra S N] [IsScalarTower R S N] [Fintype ι] [DecidableEq ι] (x : ι → R) : (TensorProduct.piScalarRight R S N ι).symm (fun i => algebraMap _ _ ...
141
leanexplore_declaration
leanexplore:381241
leanexplore_sqlite
leanexplore_declarations
lemma ValuationSubring.subtype_inj {R : ValuationSubring F} {x y : R} : R.subtype x = R.subtype y ↔ x = y := R.subtype_injective.eq_iff
540
leanexplore_declaration
leanexplore:381242
leanexplore_sqlite
leanexplore_declarations
theorem ValuationSubring.valued_eq_one_of_isUnit {K : Type*} [Field K] {Γ₀ : Type*} [LinearOrderedCommGroupWithZero Γ₀] [hv : Valued K Γ₀] (x : hv.v.valuationSubring) (hx : IsUnit x) : Valued.v x.val = 1 := by obtain ⟨u, hu⟩ := hx apply le_antisymm ((hv.v.mem_valuationSubring_iff _).1 x.2) rw [← Valued.v....
558
leanexplore_declaration
leanexplore:381243
leanexplore_sqlite
leanexplore_declarations
theorem ValuationSubring.isUnit_of_valued_eq_one {K : Type*} [Field K] {Γ₀ : Type*} [LinearOrderedCommGroupWithZero Γ₀] [hv : Valued K Γ₀] (x : hv.v.valuationSubring) (hx : Valued.v x.val = 1) : IsUnit x := by have : IsUnit x.val := by rw [isUnit_iff_ne_zero, ne_eq, ← map_eq_zero hv.v, hx]; aesop obtain ⟨u,...
267
leanexplore_declaration
leanexplore:381244
leanexplore_sqlite
leanexplore_declarations
theorem ValuationSubring.isUnit_iff_valued_eq_one {K : Type*} [Field K] {Γ₀ : Type*} [LinearOrderedCommGroupWithZero Γ₀] [hv : Valued K Γ₀] (x : hv.v.valuationSubring) : IsUnit x ↔ Valued.v x.val = 1 := ⟨valued_eq_one_of_isUnit x, isUnit_of_valued_eq_one x⟩
399
leanexplore_declaration
leanexplore:381245
leanexplore_sqlite
leanexplore_declarations
/-- A `SemialgHom` (i.e., `ψ` such that `ψ (r • a) = φ r • ψ a` for some `φ : R →+* S`) that is also continuous. -/ structure ContinuousSemialgHom {R S : Type*} [CommSemiring R] [CommSemiring S] (φ : R →+* S) (A B : Type*) [TopologicalSpace A] [TopologicalSpace B] [Semiring A] [Semiring B] [Algebra R A] [Algebr...
949
leanexplore_declaration
leanexplore:381246
leanexplore_sqlite
leanexplore_declarations
@[inherit_doc ContinuousSemialgHom] infixr:25 " →SA " => ContinuousSemialgHom _ @[inherit_doc] notation:25 A " →SA[" φ:25 "] " B:0 => ContinuousSemialgHom φ A B /-- `ContinuousSemialgHomClass F φ A B` states that `F` is the type of continuous semi-algebra maps from `A` to `B` with respect to `φ`. -/ class ContinuousS...
868
leanexplore_declaration
leanexplore:381247
leanexplore_sqlite
leanexplore_declarations
@[inherit_doc] notation:25 A " →SA[" φ:25 "] " B:0 => ContinuousSemialgHom φ A B /-- `ContinuousSemialgHomClass F φ A B` states that `F` is the type of continuous semi-algebra maps from `A` to `B` with respect to `φ`. -/ class ContinuousSemialgHomClass (F : Type*) {R S : outParam Type*} [CommSemiring R] [CommSemir...
490
leanexplore_declaration
leanexplore:381248
leanexplore_sqlite
leanexplore_declarations
/-- `ContinuousSemialgHomClass F φ A B` states that `F` is the type of continuous semi-algebra maps from `A` to `B` with respect to `φ`. -/ class ContinuousSemialgHomClass (F : Type*) {R S : outParam Type*} [CommSemiring R] [CommSemiring S] (φ : outParam (R →+* S)) (A B : outParam Type*) [Semiring A] [Semiring ...
171
leanexplore_declaration
leanexplore:381249
leanexplore_sqlite
leanexplore_declarations
instance instFunLike : FunLike (A →SA[φ] B) A B where coe f := f.toFun coe_injective' f g h := by cases f cases g congr exact DFunLike.coe_injective' h
74
leanexplore_declaration
leanexplore:381250
leanexplore_sqlite
leanexplore_declarations
instance : CoeOut (A →SA[φ] B) (A →ₛₐ[φ] B) := ⟨fun f => f.toSemialgHom⟩
237
leanexplore_declaration
leanexplore:381251
leanexplore_sqlite
leanexplore_declarations
instance : ContinuousSemialgHomClass (A →SA[φ] B) φ A B where map_add ψ := ψ.map_add map_smulₛₗ ψ := ψ.map_smulₛₗ map_mul ψ := ψ.map_mul map_one ψ := ψ.map_one map_zero ψ := ψ.map_zero continuous_toFun ψ := ψ.continuous_toFun
287
leanexplore_declaration
leanexplore:381252
leanexplore_sqlite
leanexplore_declarations
/-- Turn an element of `F` which satisfies `ContinuousSemialgHomClass F φ A B` to a `ContinuousSemialgHom`. -/ def _root_.ContinuousSemialgHomClass.toContinuousSemialgHom (f : F) : A →SA[φ] B := { (f : A →ₛₐ[φ] B) with continuous_toFun := ContinuousSemialgHomClass.continuous_toFun f }
87
leanexplore_declaration
leanexplore:381253
leanexplore_sqlite
leanexplore_declarations
instance : CoeTC F (A →SA[φ] B) := ⟨ContinuousSemialgHomClass.toContinuousSemialgHom⟩
64
leanexplore_declaration
leanexplore:381254
leanexplore_sqlite
leanexplore_declarations
@[simp] theorem coe_coe (f : F) : ⇑(f : A →SA[φ] B) = f := rfl
74
leanexplore_declaration
leanexplore:381255
leanexplore_sqlite
leanexplore_declarations
theorem toSemialgHom_eq_coe (f : A →SA[φ] B) : f.toSemialgHom = f := rfl
83
leanexplore_declaration
leanexplore:381256
leanexplore_sqlite
leanexplore_declarations
@[simp] theorem toLinearMap_eq_coe (f : A →SA[φ] B) : f.toLinearMap = f := by rfl
76
leanexplore_declaration
leanexplore:381257
leanexplore_sqlite
leanexplore_declarations
@[simp] theorem toRingHom_eq_coe (f : A →SA[φ] B) : f.toRingHom = f := rfl
122
leanexplore_declaration
leanexplore:381258
leanexplore_sqlite
leanexplore_declarations
theorem commutes (ψ : A →SA[φ] B) (r : R) : ψ (algebraMap R A r) = algebraMap S B (φ r) := ψ.toSemialgHom.commutes r