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
1,872
leanexplore_declaration
leanexplore:381466
leanexplore_sqlite
leanexplore_declarations
/-- The group homeomorphism between a restricted product of finite products of groups, and a finite product of restricted products of groups, when the products are with respect to open subgroups. -/ @[to_additive /-- The additive group homeomorphism between a restricted product of finite products of additive groups, an...
655
leanexplore_declaration
leanexplore:381467
leanexplore_sqlite
leanexplore_declarations
@[to_additive /-- The additive group homeomorphism between a restricted product of finite products of additive groups, and a finite product of restricted products of additive groups, when the products are with respect to additive open subgroups. -/] def ContinuousMulEquiv.restrictedProductPi {ι : Type*} {n : Type*} [Fi...
465
leanexplore_declaration
leanexplore:381468
leanexplore_sqlite
leanexplore_declarations
@[to_additive (attr := simp)] lemma ContinuousMulEquiv.restrictedProductPi_apply {ι : Type*} {n : Type*} [Fintype n] {A : n → ι → Type*} [∀ j i, TopologicalSpace (A j i)] [∀ j i, Group (A j i)] {C : (j : n) → (i : ι) → Subgroup (A j i)} {hCopen : ∀ j i, IsOpen (C j i : Set (A j i))} {x : Πʳ i, [Π j, A j i, ...
116
leanexplore_declaration
leanexplore:381469
leanexplore_sqlite
leanexplore_declarations
@[to_additive (attr := simp)] lemma ContinuousMulEquiv.restrictedProductPi_apply {ι : Type*} {n : Type*} [Fintype n]
438
leanexplore_declaration
leanexplore:381470
leanexplore_sqlite
leanexplore_declarations
@[to_additive (attr := simp)] lemma ContinuousMulEquiv.restrictedProductPi_symm_apply {ι : Type*} {n : Type*} [Fintype n] {A : n → ι → Type*} [∀ j i, TopologicalSpace (A j i)] [∀ j i, Group (A j i)] {C : (j : n) → (i : ι) → Subgroup (A j i)} {hCopen : ∀ j i, IsOpen (C j i : Set (A j i))} {x : Π j, (Πʳ i, [A...
121
leanexplore_declaration
leanexplore:381471
leanexplore_sqlite
leanexplore_declarations
@[to_additive (attr := simp)] lemma ContinuousMulEquiv.restrictedProductPi_symm_apply {ι : Type*} {n : Type*} [Fintype n]
359
leanexplore_declaration
leanexplore:381472
leanexplore_sqlite
leanexplore_declarations
theorem Homeomorph.restrictedProductMatrix_aux {ι n : Type*} [Finite n] {A : ι → Type*} [(i : ι) → TopologicalSpace (A i)] {C : (i : ι) → Set (A i)} (i : ι) (hCopen : ∀ (i : ι), IsOpen (C i)) : IsOpen {f : n → A i | ∀ (a : n), f a ∈ C i} := by convert isOpen_set_pi (s := fun _ : n ↦ C i) (Set.toFinite .un...
619
leanexplore_declaration
leanexplore:381473
leanexplore_sqlite
leanexplore_declarations
/-- The homeomorphism between a restricted product of m x n matrices, and m x n matrices of restricted products, when the products are with respect to open sets. -/ def Homeomorph.restrictedProductMatrix {ι : Type*} {m n : Type*} [Fintype m] [Fintype n] {A : ι → Type*} [∀ i, TopologicalSpace (A i)] {C : (i : ι)...
319
leanexplore_declaration
leanexplore:381474
leanexplore_sqlite
leanexplore_declarations
lemma Homeomorph.restrictedProductMatrix_toEquiv {ι : Type*} {m n : Type*} [Fintype m] [Fintype n] {A : ι → Type*} [∀ i, TopologicalSpace (A i)] {C : (i : ι) → Set (A i)} (hCopen : ∀ i, IsOpen (C i)) : (restrictedProductMatrix hCopen).toEquiv = Equiv.restrictedProductMatrix (m := m) (n := n) := rfl
1,456
leanexplore_declaration
leanexplore:381475
leanexplore_sqlite
leanexplore_declarations
/-- The equivalence `Submonoid.unitsEquivUnitsType`, for monoids equipped with a topology. -/ @[to_additive /-- The equivalence `AddSubmonoid.addUnitsAddEquivUnitsType`, for monoids equipped with a topology. -/] def Submonoid.unitsContinuousMulEquivUnitsType {M : Type*} [TopologicalSpace M] [Monoid M] {S : Submonoi...
317
leanexplore_declaration
leanexplore:381476
leanexplore_sqlite
leanexplore_declarations
@[to_additive /-- The equivalence `AddSubmonoid.addUnitsAddEquivUnitsType`, for monoids equipped with a topology. -/] def Submonoid.unitsContinuousMulEquivUnitsType {M : Type*} [TopologicalSpace M] [Monoid M] {S : Submonoid M} (hS : IsOpen (S : Set M)) : S.units ≃ₜ* Sˣ where toMulEquiv := S.unitsEquivUnitsType
2,543
leanexplore_declaration
leanexplore:381477
leanexplore_sqlite
leanexplore_declarations
/-- The monoid homeomorphism between the units of a restricted product of topological monoids and the restricted product of the units of the monoids, when the products are with respect to open submonoids. -/ def ContinuousMulEquiv.restrictedProductUnits {ι : Type*} {M : ι → Type*} [(i : ι) → Monoid (M i)] [(i : ι) ...
1,314
leanexplore_declaration
leanexplore:381478
leanexplore_sqlite
leanexplore_declarations
/-- The monoid homeomorphism between a restricted product of n x n matrices, and n x n matrices of restricted products, when the products are with respect to open sets. -/ def ContinuousMulEquiv.restrictedProductMatrix {ι : Type*} {n : Type*} [Fintype n] [DecidableEq n] {A : ι → Type*} [∀ i, TopologicalSpace (A...
790
leanexplore_declaration
leanexplore:381479
leanexplore_sqlite
leanexplore_declarations
/-- The monoid homeomorphism between the matrix units over a restricted product and the restricted product of the matrix units over the factors, when the products are with respect to open submonoids. -/ def ContinuousMulEquiv.restrictedProductMatrixUnits {ι : Type*} {n : Type*} [Fintype n] [DecidableEq n] {A : ...
1,537
leanexplore_declaration
leanexplore:381480
leanexplore_sqlite
leanexplore_declarations
/-- The canonical homeomorphism from a restricted product of products over fibres of a map on indexing sets to the restricted product over the original indexing set. -/ def flatten_homeomorph : Πʳ j, [Π (i : f ⁻¹' {j}), G i, Set.pi Set.univ (fun (i : f ⁻¹' {j}) => C i)]_[𝒢] ≃ₜ Πʳ i, [G i, C i]_[ℱ] where __ :...
112
leanexplore_declaration
leanexplore:381481
leanexplore_sqlite
leanexplore_declarations
@[simp] lemma flatten_homeomorph_apply (x) (i : ι) : flatten_homeomorph C hf x i = x (f i) ⟨i, rfl⟩ := rfl
132
leanexplore_declaration
leanexplore:381482
leanexplore_sqlite
leanexplore_declarations
@[simp] lemma flatten_homeomorph_symm_apply (x) (i : ι₂) (j : f ⁻¹' {i}) : (flatten_homeomorph C hf).symm x i j = x j.1 := rfl
381
leanexplore_declaration
leanexplore:381483
leanexplore_sqlite
leanexplore_declarations
/-- The homeomorphism given by `flatten` when both restricted products are over the cofinite filter and there's a topology on the factors. -/ def flatten_homeomorph' : Πʳ j, [Π (i : f ⁻¹' {j}), G i, Set.pi Set.univ (fun (i : f ⁻¹' {j}) => C i)] ≃ₜ Πʳ i, [G i, C i] := flatten_homeomorph C <| le_antisymm (F...
114
leanexplore_declaration
leanexplore:381484
leanexplore_sqlite
leanexplore_declarations
@[simp] lemma flatten_homeomorph'_apply (x) (i : ι) : flatten_homeomorph' C hf x i = x (f i) ⟨i, rfl⟩ := rfl
134
leanexplore_declaration
leanexplore:381485
leanexplore_sqlite
leanexplore_declarations
@[simp] lemma flatten_homeomorph'_symm_apply (x) (i : ι₂) (j : f ⁻¹' {i}) : (flatten_homeomorph' C hf).symm x i j = x j.1 := rfl
662
leanexplore_declaration
leanexplore:381486
leanexplore_sqlite
leanexplore_declarations
/-- An explicit condition for a set to be in the neighborhood of `x : Πʳ i, [G i, C i]_[𝓟 T]` in terms of a product of neighbourhoods on the factors. -/ lemma RestrictedProduct.mem_nhds_iff_of_principal {T : Set ι} {x : Πʳ i, [G i, C i]_[𝓟 T]} (U : Set Πʳ i, [G i, C i]_[𝓟 T]) : U ∈ nhds x ↔ ∃ (I : Set ι) (s ...
1,404
leanexplore_declaration
leanexplore:381487
leanexplore_sqlite
leanexplore_declarations
/-- A condition for a set to be a neighborhood in `Πʳ i, [G i, C i]`, slightly weaker than the condition in `mem_nhds_iff_of_cofinite`. -/ lemma RestrictedProduct.mem_nhds_of_exists_nhds_of_cofinite {x : Πʳ i, [G i, C i]} {U : Set Πʳ i, [G i, C i]} (hCopen : ∀ i, IsOpen (C i : Set (G i))) (s : (i : ι) → Set (G i)) ...
1,668
leanexplore_declaration
leanexplore:381488
leanexplore_sqlite
leanexplore_declarations
/-- The classical condition for a set to be a neighborhood in the restricted product. -/ lemma RestrictedProduct.mem_nhds_iff_of_cofinite {x : Πʳ i, [G i, C i]} {U : Set Πʳ i, [G i, C i]} (hCopen : ∀ i, IsOpen (C i : Set (G i))) : U ∈ nhds x ↔ ∃ (s : (i : ι) → Set (G i)), (∀ i, s i ∈ nhds (x i)) ∧ (∀ᶠ i in ...
929
leanexplore_declaration
leanexplore:381489
leanexplore_sqlite
leanexplore_declarations
lemma RestrictedProduct.isOpenMap_of_open_components (hCopen : ∀ i, IsOpen (C i : Set (G i))) (hDopen : ∀ i, IsOpen (D i : Set (H i))) (f : Πʳ i, [G i, C i] → Πʳ i, [H i, D i]) (g : (i : ι) → G i → H i) (hcomponent : ∀ x i, f x i = g i (x i)) (hg : ∀ i, IsOpenMap (g i)) (hsurj : ∀ᶠ i in Filter.cofinite,...
343
leanexplore_declaration
leanexplore:381490
leanexplore_sqlite
leanexplore_declarations
instance RestrictedProduct.SecondCountableTopology_of_principal {ι : Type*} [Countable ι] (X : ι → Type*) [∀ i, TopologicalSpace (X i)] (C : (i : ι) → Set (X i)) [∀ i, SecondCountableTopology (X i)] {S : Set ι} : SecondCountableTopology (Πʳ i, [X i, C i]_[𝓟 S]) := isEmbedding_coe_of_principal...
596
leanexplore_declaration
leanexplore:381491
leanexplore_sqlite
leanexplore_declarations
lemma RestrictedProduct.secondCountableTopology {ι : Type*} [Countable ι] {X : ι → Type*} [∀ i, TopologicalSpace (X i)] {C : (i : ι) → Set (X i)} (hCopen : ∀ (i : ι), IsOpen (C i)) [∀ i, SecondCountableTopology (X i)] : SecondCountableTopology (Πʳ i, [X i, C i]) := TopologicalSpace.secondCountableTopo...
950
leanexplore_declaration
leanexplore:381492
leanexplore_sqlite
leanexplore_declarations
/-- The canonical homeomorphism between a restricted product `Πʳ i, [R i, A i]_[𝓟 J]` over a principal filter, and the corresponding product `(Π i : J, A i) × (Π i : Jᶜ, R i)`. -/ noncomputable def Homeomorph.restrictedProductPrincipal {ι : Type*} (R : ι → Type*) (A : Π i, Set (R i)) [∀ i, TopologicalSpace (R i)] ...
828
leanexplore_declaration
leanexplore:381493
leanexplore_sqlite
leanexplore_declarations
/-- The canonical homeomorphism of group between a restricted product `Πʳ i, [R i, A i]_[𝓟 J]` over a principal filter, and the corresponding product `(Π i : J, A i) × (Π i : Jᶜ, R i)`. -/ @[to_additive /-- The canonical homeomorphism of group between a restricted product `Πʳ i, [R i, A i]_[𝓟 J]` over a principal fil...
279
leanexplore_declaration
leanexplore:381494
leanexplore_sqlite
leanexplore_declarations
@[to_additive /-- The canonical homeomorphism of group between a restricted product `Πʳ i, [R i, A i]_[𝓟 J]` over a principal filter, and the corresponding product `(Π i : J, A i) × (Π i : Jᶜ, R i)`. -/] noncomputable def ContinuousMulEquiv.restrictedProductPrincipal {ι : Type*}
740
leanexplore_declaration
leanexplore:381495
leanexplore_sqlite
leanexplore_declarations
/-- The inclusion from a factor into the restricted product of topological additive groups, as a continuous group homomorphism. -/ noncomputable def singleContinuousAddMonoidHom (j : ι) : A j →ₜ+ Πʳ i, [A i, B i] where __ := singleAddMonoidHom A j continuous_toFun := by let S : Set ι := {j}ᶜ let single' : A...
158
leanexplore_declaration
leanexplore:381496
leanexplore_sqlite
leanexplore_declarations
lemma singleContinuousAddMonoidHom_apply_same {j : ι} (x : A j) : (singleContinuousAddMonoidHom A j x : Πʳ i, [A i, B i]) j = x := Pi.single_eq_same j x
174
leanexplore_declaration
leanexplore:381497
leanexplore_sqlite
leanexplore_declarations
lemma singleContinuousAddMonoidHom_apply_of_ne {j i : ι} (h : i ≠ j) (x : A j) : (singleContinuousAddMonoidHom A j x : Πʳ i, [A i, B i]) i = 0 := Pi.single_eq_of_ne h x
253
leanexplore_declaration
leanexplore:381498
leanexplore_sqlite
leanexplore_declarations
/-- The continuous additive projection from a restricted product of topological additive groups to a factor. -/ def evalContinuousAddMonoidHom (j : ι) : Πʳ i, [A i, B i] →ₜ+ A j := { __ := evalAddMonoidHom A j continuous_toFun := continuous_eval j }
569
leanexplore_declaration
leanexplore:381499
leanexplore_sqlite
leanexplore_declarations
noncomputable def mapSemialgHom {α : Type*} [CommRing α] [UniformSpace α] [IsTopologicalRing α] [IsUniformAddGroup α] {β : Type*} [UniformSpace β] [CommRing β] [IsUniformAddGroup β] [IsTopologicalRing β] (f : α →+* β) (hf : Continuous f) : Completion α →ₛₐ[f] Completion β where __ := UniformSpace.Completi...
345
leanexplore_declaration
leanexplore:381500
leanexplore_sqlite
leanexplore_declarations
theorem mapSemialgHom_apply {α : Type*} [CommRing α] [UniformSpace α] [IsTopologicalRing α] [IsUniformAddGroup α] {β : Type*} [UniformSpace β] [CommRing β] [IsUniformAddGroup β] [IsTopologicalRing β] (f : α →+* β) (hf : Continuous f) (x : UniformSpace.Completion α) : mapSemialgHom f hf x = UniformSpace....
347
leanexplore_declaration
leanexplore:381501
leanexplore_sqlite
leanexplore_declarations
theorem mapSemialgHom_coe {α : Type*} [CommRing α] [UniformSpace α] [IsTopologicalRing α] [IsUniformAddGroup α] {β : Type*} [UniformSpace β] [CommRing β] [IsUniformAddGroup β] [IsTopologicalRing β] {f : α →+* β} (hf : UniformContinuous f) (a : α) : mapSemialgHom f hf.continuous a = f a := by rw [mapSe...
291
leanexplore_declaration
leanexplore:381502
leanexplore_sqlite
leanexplore_declarations
@[simp] lemma Valued.isUnit_valuationSubring_iff {Γ₀ : Type*} [LinearOrderedCommGroupWithZero Γ₀] [Valued F Γ₀] {x : Valued.v.valuationSubring} : IsUnit x ↔ Valued.v (x.val : F) = 1 := by convert Valuation.Integers.isUnit_iff_valuation_eq_one _ exact Valuation.integer.integers _
241
leanexplore_declaration
leanexplore:381503
leanexplore_sqlite
leanexplore_declarations
theorem irreducible_valuation_lt_one {ϖ : 𝒪[K]} (h : Irreducible ϖ) : v ϖ.1 < 1 := by have := mt (Valuation.integer.integers _).isUnit_iff_valuation_eq_one.2 h.not_isUnit exact lt_of_le_of_ne (Valuation.mem_integer_iff _ _ |>.1 ϖ.2) this
274
leanexplore_declaration
leanexplore:381504
leanexplore_sqlite
leanexplore_declarations
theorem irreducible_valuation_le_ofAdd_neg_one {ϖ : 𝒪[K]} (h : Irreducible ϖ) : v ϖ.1 ≤ ofAdd (-1 : ℤ) := by letI := (lt_ofAdd_iff (show v ϖ.1 ≠ 0 by simp [h.ne_zero])).1 (irreducible_valuation_lt_one h) rw [le_ofAdd_iff (show v ϖ.1 ≠ 0 by simp [h.ne_zero])] omega
507
leanexplore_declaration
leanexplore:381505
leanexplore_sqlite
leanexplore_declarations
theorem mem_maximalIdeal_pow_valuation [IsDiscreteValuationRing 𝒪[K]] {x : 𝒪[K]} {n : ℕ} (hx : x ∈ 𝓂[K] ^ n) {ϖ : 𝒪[K]} (h : Irreducible ϖ) : v x.val ≤ v ϖ.1 ^ n := by by_cases hx₀ : x = 0 · simp [hx₀] · simp_rw [h.maximalIdeal_eq, Ideal.span_singleton_pow, Ideal.mem_span_singleton] at hx let ⟨y, ...
932
leanexplore_declaration
leanexplore:381506
leanexplore_sqlite
leanexplore_declarations
lemma finite_quotient_maximalIdeal_pow_of_finite_residueField {K Γ₀ : Type*} [Field K] [LinearOrderedCommGroupWithZero Γ₀] [Valued K Γ₀] [IsDiscreteValuationRing 𝒪[K]] (h : Finite 𝓀[K]) (n : ℕ) : Finite (𝒪[K] ⧸ 𝓂[K] ^ n) := by induction n with | zero => simp only [pow_zero, Ideal.one_eq_top] ...
1,120
leanexplore_declaration
leanexplore:381507
leanexplore_sqlite
leanexplore_declarations
/-- The ring of integers `𝒪[K]` of a `ℤᵐ⁰`-valued field `K` with finite residue field has a finite covering by elements of the basis of uniformity of `K`, whenever `𝒪[K]` is a discrete valuation ring. -/ theorem finite_cover_of_uniformity_basis [IsDiscreteValuationRing 𝒪[K]] (γ : ℤᵐ⁰ˣ) (h : Finite 𝓀[K]) : ∃...
989
leanexplore_declaration
leanexplore:381508
leanexplore_sqlite
leanexplore_declarations
/-- The ring of integers `𝒪[K]` of a complete `ℤᵐ⁰`-valued field `K` with finite residue field is compact, whenever `𝒪[K]` is a discrete valuation ring. -/ theorem integer_compactSpace [CompleteSpace K] [IsDiscreteValuationRing 𝒪[K]] [hv.v.IsRankOneDiscrete] (h : Finite 𝓀[K]) (hsurj : Function.Surjective hv.v) ...
744
leanexplore_declaration
leanexplore:381509
leanexplore_sqlite
leanexplore_declarations
lemma TopologicalSpace.secondCountableTopology_of_countable_cover' {α : Type*} [TopologicalSpace α] {ι : Sort*} [Countable ι] {U : ι → Type*} [∀ i, TopologicalSpace (U i)] [∀ (i : ι), SecondCountableTopology (U i)] (f : ∀ i, U i → α) (hf : ∀ i, Topology.IsOpenEmbedding (f i)) (hc : ∀ a, ∃ (i : ι) (u : U...
328
leanexplore_declaration
leanexplore:381510
leanexplore_sqlite
leanexplore_declarations
theorem DenseRange.codRestrict_comp {Y Z : Type*} [TopologicalSpace Y] [TopologicalSpace Z] {α : Type*} {g : Y → Z} {f : α → Y} (hf : DenseRange f) (cg : Continuous g) : DenseRange <| (Set.range g).codRestrict g (fun _ => by simp) ∘ f := DenseRange.comp (Set.codRestrict_range_surjective g).denseRange hf (by f...
544
leanexplore_declaration
leanexplore:381511
leanexplore_sqlite
leanexplore_declarations
theorem Continuous.piSemialgHomPi {I J : Type*} {R S : Type*} (f : I → Type*) (g : J → Type*) [CommSemiring R] [CommSemiring S] {φ : R →+* S} [(i : I) → Semiring (f i)] [(i : I) → Algebra S (f i)] [(j : J) → Semiring (g j)] [(j : J) → Algebra R (g j)] {r : I → J} [(j : J) → TopologicalSpace (g j)] [(i :...
856
leanexplore_declaration
leanexplore:381512
leanexplore_sqlite
leanexplore_declarations
theorem DiscretePi {X Y : Type*} [TopologicalSpace Y] (f : X → Y) (n : ℕ) (h : ∀ (x : X), ∃ U, IsOpen U ∧ f ⁻¹' U = {x}) (x' : Fin n → X) : (∃ U' : Set (Fin n → Y), IsOpen U' ∧ (fun (t : Fin n → X) (i : Fin n) ↦ f (t i))⁻¹' U' = {x'}) := by have h (i : Fin n) := h (x' i) use Set.pi (Set.univ) (fun (i : ...
615
leanexplore_declaration
leanexplore:381513
leanexplore_sqlite
leanexplore_declarations
theorem HomeoDiscrete_of_Discrete {X Y Y' : Type*} [TopologicalSpace Y] [TopologicalSpace Y'] (f : X → Y) (h : Y ≃ₜ Y') (H : ∀ (x : X), ∃ U, IsOpen U ∧ f ⁻¹' U = {x}) (x : X) : (∃ U' : Set Y', IsOpen U' ∧ (h ∘ f)⁻¹' U' = {x}) := by obtain ⟨U, Uopen, Ueq⟩ := H x use h '' U refine ⟨(Homeomorph.isOpen_image ...
640
leanexplore_declaration
leanexplore:381514
leanexplore_sqlite
leanexplore_declarations
theorem Discrete_of_HomeoDiscrete {X Y Y' : Type*} [TopologicalSpace Y] [TopologicalSpace Y'] (f : X → Y) (h : Y ≃ₜ Y') (H : ∀ (x : X), ∃ U', IsOpen U' ∧ ⇑h ∘ f ⁻¹' U' = {x}) (x : X) : (∃ U : Set Y, IsOpen U ∧ f⁻¹' U = {x}) := by obtain ⟨U, Uopen, Ueq⟩ := H x use h.symm '' U refine ⟨(Homeomorph.isOpen_im...
311
leanexplore_declaration
leanexplore:381515
leanexplore_sqlite
leanexplore_declarations
theorem HomeoDiscrete_iff_Discrete {X Y Y' : Type*} [TopologicalSpace Y] [TopologicalSpace Y'] (f : X → Y) (h : Y ≃ₜ Y') : (∀ x : X, ∃ U : Set Y, IsOpen U ∧ f⁻¹' U = {x}) ↔ (∀ x : X, ∃ U' : Set Y', IsOpen U' ∧ (h ∘ f)⁻¹' U' = {x}) := ⟨HomeoDiscrete_of_Discrete f h, Discrete_of_HomeoDiscrete f h⟩
290
leanexplore_declaration
leanexplore:381516
leanexplore_sqlite
leanexplore_declarations
theorem HomDiscrete_of_Discrete {X X' Y : Type*} [TopologicalSpace Y] (f : X → Y) (h : X ≃ X') (H : ∀ (x : X), ∃ U, IsOpen U ∧ f ⁻¹' U = {x}) (x : X') : (∃ U' : Set Y, IsOpen U' ∧ h '' (f ⁻¹' U') = {x}):= by obtain ⟨U, Uopen, Ueq⟩ := H (h.symm x) exact ⟨U, Uopen, by simp [Ueq]⟩
407
leanexplore_declaration
leanexplore:381517
leanexplore_sqlite
leanexplore_declarations
theorem Discrete_of_HomDiscrete {X X' Y : Type*} [TopologicalSpace Y] (f : X → Y) (h : X ≃ X') (H : ∀ (x' : X'), ∃ U', IsOpen U' ∧ ⇑h '' (f ⁻¹' U') = {x'}) (x : X) : (∃ U : Set Y, IsOpen U ∧ f⁻¹' U = {x}) := by obtain ⟨U, Uopen, Ueq⟩ := H (h x) refine ⟨U, Uopen, ?_⟩ simp_rw [(Equiv.eq_preimage_iff_image_...
282
leanexplore_declaration
leanexplore:381518
leanexplore_sqlite
leanexplore_declarations
theorem HomDiscrete_iff_Discrete {X X' Y : Type*} [TopologicalSpace Y] (f : X → Y) (h : X ≃ X') : (∀ x' : X', ∃ U' : Set Y, IsOpen U' ∧ h '' (f ⁻¹' U') = {x'}) ↔ (∀ x : X, ∃ U : Set Y, IsOpen U ∧ f⁻¹' U = {x}) := ⟨Discrete_of_HomDiscrete f h, HomDiscrete_of_Discrete f h⟩
449
leanexplore_declaration
leanexplore:381519
leanexplore_sqlite
leanexplore_declarations
lemma inter_Discrete {A : Type*} [TopologicalSpace A] (X Y : Set A) [DiscreteTopology X] : DiscreteTopology ↑(Y ∩ X) := by refine discreteTopology_iff_isOpen_singleton.mpr ?_ intro ⟨a, InY, InX⟩ refine isOpen_mk.mpr ?_ have h : DiscreteTopology ↑X := inferInstance apply (discreteTopology_iff_isOpen_single...
175
leanexplore_declaration
leanexplore:381520
leanexplore_sqlite
leanexplore_declarations
lemma Discrete_inter {A : Type*} [TopologicalSpace A] (X Y : Set A) [DiscreteTopology X] : DiscreteTopology ↑(X ∩ Y) := by rw [Set.inter_comm] exact inter_Discrete X Y
181
leanexplore_declaration
leanexplore:381521
leanexplore_sqlite
leanexplore_declarations
instance (R : Type*) [CommRing R] [TopologicalSpace R] [IsTopologicalRing R] (m n : Type*) [Finite m] [Finite n] : IsModuleTopology R (Matrix m n R) := IsModuleTopology.instPi
133
leanexplore_declaration
leanexplore:381522
leanexplore_sqlite
leanexplore_declarations
instance : SecondCountableTopology (v.Completion) := (isometry_extensionEmbedding v).isEmbedding.isInducing.secondCountableTopology
945
leanexplore_declaration
leanexplore:381523
leanexplore_sqlite
leanexplore_declarations
/-- Let `A : X → Matrix n n R` be a parameterisation of a matrix ring with entries in a seminormed commutative ring `R` by a metric space `X` and let `f : Y → X` be dense. If the identity matrix is in the parameterisation `A`, then there exists a `y : Y` such that `A (f y)` has non-zero determinant. -/ theorem DenseRan...
1,405
leanexplore_declaration
leanexplore:381524
leanexplore_sqlite
leanexplore_declarations
lemma open_of_locally_compact_dense_metrizable {X Y : Type*} [TopologicalSpace X] [T2Space X] [TopologicalSpace Y] [T2Space Y] [LocallyCompactSpace Y] (f : Y → X) (hf : Continuous f) (indf : IsInducing f) (dn : DenseRange f) : IsOpen (Set.range f) := by rw [isOpen_iff_mem_nhds] intro x hx rw [_root_.m...
850
leanexplore_declaration
leanexplore:381525
leanexplore_sqlite
leanexplore_declarations
theorem polish_of_locally_compact_second_countable (X : Type*) [TopologicalSpace X] [SecondCountableTopology X] [T2Space X] [LocallyCompactSpace X] : PolishSpace X := by letI _ : MetrizableSpace X := metrizableSpace_of_t3_secondCountable X letI _ : MetricSpace X := metrizableSpaceMetric X have dn : IsOpen...
120
leanexplore_declaration
leanexplore:381526
leanexplore_sqlite
leanexplore_declarations
/-- `𝔸 K` for `K` a number field, is notation for `AdeleRing (𝓞 K) K`. -/ scoped notation:max "𝔸" K => AdeleRing (𝓞 K) K
132
leanexplore_declaration
leanexplore:381527
leanexplore_sqlite
leanexplore_declarations
/-- `𝔸ᶠ[K]` is notation for `FiniteAdeleRing (𝓞 K) K`, where `K` is a number field. -/ scoped notation:max "𝔸ᶠ[" K "]" => 𝔸ᶠ[𝓞 K, K]
100
leanexplore_declaration
leanexplore:381528
leanexplore_sqlite
leanexplore_declarations
instance [SMul (𝔸 K) (𝔸 L)] : SMul (K∞ × 𝔸ᶠ[K]) (L∞ × 𝔸ᶠ[L]) := inferInstanceAs (SMul (𝔸 K) (𝔸 L))
195
leanexplore_declaration
leanexplore:381529
leanexplore_sqlite
leanexplore_declarations
lemma smul_fst [SMul K∞ L∞] [SMul 𝔸ᶠ[K] 𝔸ᶠ[L]] [SMul (𝔸 K) (𝔸 L)] [Prod.IsProdSMul K∞ 𝔸ᶠ[K] L∞ 𝔸ᶠ[L]] (x : 𝔸 K) (y : 𝔸 L) : (x • y).1 = x.1 • y.1 := by rw [Prod.IsProdSMul.smul_fst]
198
leanexplore_declaration
leanexplore:381530
leanexplore_sqlite
leanexplore_declarations
lemma smul_snd [SMul K∞ L∞] [Algebra 𝔸ᶠ[K] 𝔸ᶠ[L]] [SMul (𝔸 K) (𝔸 L)] [Prod.IsProdSMul K∞ 𝔸ᶠ[K] L∞ 𝔸ᶠ[L]] (x : 𝔸 K) (y : 𝔸 L) : (x • y).2 = x.2 • y.2 := by rw [Prod.IsProdSMul.smul_snd]
225
leanexplore_declaration
leanexplore:381531
leanexplore_sqlite
leanexplore_declarations
/-- The canonical map from the adeles of K to the adeles of L -/ noncomputable def baseChange : (𝔸 K) →SA[algebraMap K L] 𝔸 L := (InfiniteAdeleRing.baseChange K L).prodMap (FiniteAdeleRing.mapSemialgHom (𝓞 K) K L (𝓞 L))
164
leanexplore_declaration
leanexplore:381532
leanexplore_sqlite
leanexplore_declarations
@[simp] lemma baseChange_fst_apply (a : 𝔸 K) : (baseChange K L a).1 = InfiniteAdeleRing.baseChange K L a.1 := rfl @[simp] lemma baseChange_snd_apply (a : 𝔸 K) :
130
leanexplore_declaration
leanexplore:381533
leanexplore_sqlite
leanexplore_declarations
@[simp] lemma baseChange_snd_apply (a : 𝔸 K) : (baseChange K L a).2 = FiniteAdeleRing.mapSemialgHom (𝓞 K) K L (𝓞 L) a.2 := rfl
118
leanexplore_declaration
leanexplore:381534
leanexplore_sqlite
leanexplore_declarations
instance instPiIsModuleTopology : IsModuleTopology (𝔸 K) (Fin (Module.finrank K L) → 𝔸 K) := IsModuleTopology.instPi
372
leanexplore_declaration
leanexplore:381535
leanexplore_sqlite
leanexplore_declarations
/-- The L-algebra isomorphism `L ⊗[K] 𝔸_K = 𝔸_L`. -/ noncomputable def baseChangeAlgEquiv : (L ⊗[K] 𝔸 K) ≃ₐ[L] 𝔸 L := let tensor := Algebra.TensorProduct.prodRight K L L (InfiniteAdeleRing K) 𝔸ᶠ[K] let prod := AlgEquiv.prodCongr (NumberField.InfiniteAdeleRing.baseChangeAlgEquiv K L) (FiniteAdeleRin...
144
leanexplore_declaration
leanexplore:381536
leanexplore_sqlite
leanexplore_declarations
@[simp] lemma baseChangeAlgEquiv_apply (l : L) (a : 𝔸 K) : baseChangeAlgEquiv K L (l ⊗ₜ a) = algebraMap _ _ l * baseChange K L a := by rfl
157
leanexplore_declaration
leanexplore:381537
leanexplore_sqlite
leanexplore_declarations
lemma baseChangeAlgEquiv_fst_apply (l : L) (x : 𝔸 K) : (baseChangeAlgEquiv K L (l ⊗ₜ x)).1 = InfiniteAdeleRing.baseChangeAlgEquiv K L (l ⊗ₜ x.1) := rfl
173
leanexplore_declaration
leanexplore:381538
leanexplore_sqlite
leanexplore_declarations
lemma baseChangeAlgEquiv_snd_apply (l : L) (x : 𝔸 K) : (baseChangeAlgEquiv K L (l ⊗ₜ x)).2 = FiniteAdeleRing.baseChangeAlgEquiv (𝓞 K) K L (𝓞 L) (l ⊗ₜ x.2) := rfl
2,256
leanexplore_declaration
leanexplore:381539
leanexplore_sqlite
leanexplore_declarations
/-- Take arbitrary `Algebra K L∞`, `Algebra K∞ L∞`, `Algebra 𝔸ᶠ[K] 𝔸ᶠ[L]`, Algebra K 𝔸ᶠ[L]`, `Algebra (𝓞 K) 𝔸ᶠ[L]` and `Algebra (𝔸 K) (𝔸 L)` instances. Assume: - `Algebra K L∞` factors through (existing) `Algebra K L` and `Algebra L L∞`. - `Algebra K∞ L∞` and `Algebra 𝔸ᶠ[K] 𝔸ᶠ[L]` are determined by the fibers ...
234
leanexplore_declaration
leanexplore:381540
leanexplore_sqlite
leanexplore_declarations
/-- The `L`-algebra homeomorphism `L ⊗[K] 𝔸 K = 𝔸 L`. -/ noncomputable def baseChangeEquiv [IsModuleTopology (𝔸 K) (𝔸 L)] : (L ⊗[K] 𝔸 K) ≃A[L] 𝔸 L := IsModuleTopology.continuousAlgEquivOfIsBiscalar (𝔸 K) (baseChangeAlgEquiv K L)
270
leanexplore_declaration
leanexplore:381541
leanexplore_sqlite
leanexplore_declarations
theorem baseChangeEquiv_tsum_apply_right (l : L) : baseChangeEquiv K L (l ⊗ₜ[K] 1) = algebraMap L (𝔸 L) l := by have h : (l ⊗ₜ[K] (1 : 𝔸 K)) = l • 1 := by simp [Algebra.TensorProduct.one_def, TensorProduct.smul_tmul'] simp [h, Algebra.algebraMap_eq_smul_one]
738
leanexplore_declaration
leanexplore:381542
leanexplore_sqlite
leanexplore_declarations
/-- A continuous `K`-linear isomorphism `L ⊗[K] 𝔸_K = (𝔸_K)ⁿ` for `n = [L:K]` -/ noncomputable abbrev tensorProductEquivPi : L ⊗[K] (𝔸 K) ≃L[𝔸 K] (Fin (Module.finrank K L) → 𝔸 K) := letI := instPiIsModuleTopology K L -- `𝔸 K ⊗[K] L ≃ₗ[𝔸 K] L ⊗[K] 𝔸 K` -- Note: needs to be this order to avoid instance ...
439
leanexplore_declaration
leanexplore:381543
leanexplore_sqlite
leanexplore_declarations
/-- A continuous additive isomorphism `(𝔸_K)ⁿ ≃ 𝔸_L` for `n = [L:K]` -/ noncomputable abbrev piEquiv : (Fin (Module.finrank K L) → 𝔸 K) ≃ₜ+ 𝔸 L := -- `⊕ 𝔸 K ≃L[K] L ⊗[K] 𝔸 K` from previous def let π := (tensorProductEquivPi K L).symm.toContinuousAddEquiv -- `L ⊗[K] 𝔸 K ≃L[K] 𝔸 L` base change restricted t...
531
leanexplore_declaration
leanexplore:381544
leanexplore_sqlite
leanexplore_declarations
theorem piEquiv_apply_of_algebraMap {x : Fin (Module.finrank K L) → 𝔸 K} {y : Fin (Module.finrank K L) → K} (h : ∀ i, algebraMap K (𝔸 K) (y i) = x i) : piEquiv K L x = algebraMap L _ (Module.Finite.equivPi _ _ |>.symm y) := by simp only [← funext h, ContinuousAddEquiv.trans_apply, ContinuousLine...
377
leanexplore_declaration
leanexplore:381545
leanexplore_sqlite
leanexplore_declarations
theorem piEquiv_mem_principalSubgroup {x : Fin (Module.finrank K L) → 𝔸 K} (h : x ∈ AddSubgroup.pi Set.univ fun _ => principalSubgroup (𝓞 K) K) : piEquiv K L x ∈ principalSubgroup (𝓞 L) L := by simp only [AddSubgroup.mem_pi, Set.mem_univ, forall_const] at h choose y hy using h exact piEquiv_apply_o...
554
leanexplore_declaration
leanexplore:381546
leanexplore_sqlite
leanexplore_declarations
theorem piEquiv_map_principalSubgroup : (AddSubgroup.pi Set.univ (fun (_ : Fin (Module.finrank K L)) => principalSubgroup (𝓞 K) K)).map (piEquiv K L) = principalSubgroup (𝓞 L) L := by ext x simp only [AddSubgroup.mem_map, AddMonoidHom.coe_coe] refine ⟨fun ⟨a, h, ha⟩ => ha ▸ piEquiv_mem_principalSubgro...
314
leanexplore_declaration
leanexplore:381547
leanexplore_sqlite
leanexplore_declarations
theorem comap_piEquiv_principalSubgroup : (AddSubgroup.pi Set.univ (fun (_ : Fin (Module.finrank K L)) => principalSubgroup (𝓞 K) K)) = (principalSubgroup (𝓞 L) L).comap (piEquiv K L) := by rw [← piEquiv_map_principalSubgroup K L, AddSubgroup.comap_map_eq_self_of_injective (piEquiv K L).injective]
458
leanexplore_declaration
leanexplore:381548
leanexplore_sqlite
leanexplore_declarations
/-- A continuous additive isomorphism `(𝔸_K / K)ⁿ = 𝔸_L / L` where `n = [L:K]`. -/ noncomputable def piQuotientEquiv : (Fin (Module.finrank K L) → (𝔸 K) ⧸ principalSubgroup (𝓞 K) K) ≃ₜ+ (𝔸 L) ⧸ principalSubgroup (𝓞 L) L := -- The map `⊕ 𝔸 K ≃L[K] 𝔸 L` reduces to quotients `⊕ 𝔸 K / K ≃ₜ+ 𝔸 L / L` ...
429
leanexplore_declaration
leanexplore:381549
leanexplore_sqlite
leanexplore_declarations
/-- V ⊗[K] 𝔸_K = V ⊗[L] 𝔸_L as L-modules for V an L-module and K ⊆ L number fields. -/ noncomputable def ModuleBaseChangeLinearEquiv : V ⊗[K] (𝔸 K) ≃ₗ[L] (V ⊗[L] (𝔸 L)) := TensorProduct.AlgebraTensorModule.congr ((TensorProduct.rid L V).symm) (.refl _ _) ≪≫ₗ TensorProduct.AlgebraTensorModule.assoc K L L V L...
180
leanexplore_declaration
leanexplore:381550
leanexplore_sqlite
leanexplore_declarations
@[simp] theorem ModuleBaseChangeLinearEquiv_tmul_apply (v : V) (x : 𝔸 K) : ModuleBaseChangeLinearEquiv K L V (v ⊗ₜ[K] x) = v ⊗ₜ[L] (baseChangeAlgEquiv K L (1 ⊗ₜ[K] x)) := rfl
953
leanexplore_declaration
leanexplore:381551
leanexplore_sqlite
leanexplore_declarations
instance [Algebra K∞ L∞] [Algebra (𝔸 K) (𝔸 L)] [Pi.FiberwiseSMul (fun a => a.comap (algebraMap K L)) Completion Completion] [Prod.IsProdSMul K∞ 𝔸ᶠ[K] L∞ 𝔸ᶠ[L]] [Module (𝔸 K) (V ⊗[L] 𝔸 L)] [IsScalarTower (𝔸 K) (𝔸 L) (V ⊗[L] 𝔸 L)] : IsBiscalar L (𝔸 K) (ModuleBaseChangeLinearEquiv K L V) where ...
1,056
leanexplore_declaration
leanexplore:381552
leanexplore_sqlite
leanexplore_declarations
/-- 𝔸_K ⊗[K] V = 𝔸_L ⊗[L] V as topological additive groups for V an L-module and K ⊆ L number fields. -/ noncomputable def ModuleBaseChangeContinuousLinearEquiv [FiniteDimensional L V] [FiniteDimensional K V] [Algebra K∞ L∞] [Algebra (𝔸 K) (𝔸 L)] [Pi.FiberwiseSMul (fun a => a.comap (algebraMap K L)) Com...
159
leanexplore_declaration
leanexplore:381553
leanexplore_sqlite
leanexplore_declarations
/-- The `K∞`-algebra on `L∞`, induced by `InfiniteAdeleRing.baseChange K L`. -/ scoped instance : Algebra K∞ L∞ := (InfiniteAdeleRing.baseChange K L).toAlgebra
254
leanexplore_declaration
leanexplore:381554
leanexplore_sqlite
leanexplore_declarations
/-- Ensures that `Algebra K∞ L∞` is built out of local algebras `Algebra v.Completion wv.Completion`. -/ scoped instance : Pi.FiberwiseSMul (fun a => a.comap (algebraMap K L)) Completion Completion where map_smul r x b σ := by obtain ⟨a, rfl⟩ := σ; rfl
183
leanexplore_declaration
leanexplore:381555
leanexplore_sqlite
leanexplore_declarations
/-- The `𝔸ᶠ[K]`-algebra on `𝔸ᶠ[L]`, induced by `FiniteAdeleRing.mapRingHom (𝓞 K) K L (𝓞 L)`. -/ scoped instance : Algebra 𝔸ᶠ[K] 𝔸ᶠ[L] := (FiniteAdeleRing.mapRingHom _ K L _).toAlgebra
151
leanexplore_declaration
leanexplore:381556
leanexplore_sqlite
leanexplore_declarations
/-- The `𝔸 K`-algebra on `𝔸 L`, induced by `AdeleRing.baseChange K L`. -/ scoped instance : Algebra (𝔸 K) (𝔸 L) := (AdeleRing.baseChange K L).toAlgebra
125
leanexplore_declaration
leanexplore:381557
leanexplore_sqlite
leanexplore_declarations
scoped instance : FiniteAdeleRing.ComapFiberwiseSMul (𝓞 K) K L (𝓞 L) where map_smul r x b σ := by obtain ⟨a, rfl⟩ := σ; rfl
188
leanexplore_declaration
leanexplore:381558
leanexplore_sqlite
leanexplore_declarations
/-- Says that `𝔸 K`-algebra on `𝔸 L` is built from the `K∞`-algebra on `L∞` and the finite adele algebra. -/ scoped instance : Prod.IsProdSMul K∞ 𝔸ᶠ[K] L∞ 𝔸ᶠ[L] where map_smul _ _ := rfl
131
leanexplore_declaration
leanexplore:381559
leanexplore_sqlite
leanexplore_declarations
scoped instance : Module.Finite (𝔸 K) (𝔸 L) := Module.Finite.equiv ((baseChangeAlgEquiv K L).changeScalars (𝔸 K)).toLinearEquiv
109
leanexplore_declaration
leanexplore:381560
leanexplore_sqlite
leanexplore_declarations
scoped instance instIsModuleTopology : IsModuleTopology (𝔸 K) (𝔸 L) := IsModuleTopology.instProd' (A := K∞)
1,329
leanexplore_declaration
leanexplore:381561
leanexplore_sqlite
leanexplore_declarations
theorem Rat.AdeleRing.integral_and_norm_lt_one (x : ℚ) (h2 : ∀ v, ((algebraMap ℚ (FiniteAdeleRing (𝓞 ℚ) ℚ)) x) v ∈ IsDedekindDomain.HeightOneSpectrum.adicCompletionIntegers ℚ v) (h1 : ∀ (v : InfinitePlace ℚ), ‖algebraMap ℚ (InfiniteAdeleRing ℚ) x v‖ < 1) : x = 0 := by simp only [InfiniteAdeleRing.algeb...
1,598
leanexplore_declaration
leanexplore:381562
leanexplore_sqlite
leanexplore_declarations
theorem Rat.AdeleRing.zero_discrete : ∃ U : Set (AdeleRing (𝓞 ℚ) ℚ), IsOpen U ∧ (algebraMap ℚ (AdeleRing (𝓞 ℚ) ℚ)) ⁻¹' U = {0} := by let integralAdeles := {f : FiniteAdeleRing (𝓞 ℚ) ℚ | ∀ v , f v ∈ IsDedekindDomain.HeightOneSpectrum.adicCompletionIntegers ℚ v} use {f | ∀ v, f v ∈ (Metric.ball 0 1)} ×ˢ in...
1,170
leanexplore_declaration
leanexplore:381563
leanexplore_sqlite
leanexplore_declarations
theorem NumberField.AdeleRing.zero_discrete : ∃ U : Set (AdeleRing (𝓞 K) K), IsOpen U ∧ (algebraMap K (AdeleRing (𝓞 K) K)) ⁻¹' U = {0} := by obtain ⟨V, hV, hV0⟩ := Rat.AdeleRing.zero_discrete use (piEquiv ℚ K) '' {f | ∀i, f i ∈ V } constructor · rw [← (piEquiv ℚ K).coe_toHomeomorph, Homeomorph.isOpen_imag...
608
leanexplore_declaration
leanexplore:381564
leanexplore_sqlite
leanexplore_declarations
theorem NumberField.AdeleRing.discrete : ∀ x : K, ∃ U : Set (AdeleRing (𝓞 K) K), IsOpen U ∧ (algebraMap K (AdeleRing (𝓞 K) K)) ⁻¹' U = {x} := by obtain ⟨V, hV, hV0⟩ := zero_discrete K intro x let ι := algebraMap K (AdeleRing (𝓞 K) K) set xₐ := ι x with hxₐ set f := Homeomorp...
57
leanexplore_declaration
leanexplore:381565
leanexplore_sqlite
leanexplore_declarations
local instance {p : Nat.Primes} : Fact p.1.Prime := ⟨p.2⟩