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
228
leanexplore_declaration
leanexplore:381666
leanexplore_sqlite
leanexplore_declarations
/-- Construct a `v.RamifiedExtension L` term from a `w : v.Extension L` such that `w.1.IsRamified K`. -/ def Extension.toRamifiedExtension {w : v.Extension L} (h : w.1.IsRamified K) : v.RamifiedExtension L := ⟨w.1, ⟨w.2, h⟩⟩
238
leanexplore_declaration
leanexplore:381667
leanexplore_sqlite
leanexplore_declarations
/-- Construct a `v.UnramifiedExtension L` term from a `w : v.Extension L` such that `w.1.IsUnramified K`. -/ def Extension.toUnramifiedExtension {w : v.Extension L} (h : w.1.IsUnramified K) : v.UnramifiedExtension L := ⟨w.1, ⟨w.2, h⟩⟩
86
leanexplore_declaration
leanexplore:381668
leanexplore_sqlite
leanexplore_declarations
theorem comap_eq (w : v.RamifiedExtension L) : w.1.comap (algebraMap K L) = v := w.2.1
74
leanexplore_declaration
leanexplore:381669
leanexplore_sqlite
leanexplore_declarations
theorem isRamified (w : v.RamifiedExtension L) : w.1.IsRamified K := w.2.2
125
leanexplore_declaration
leanexplore:381670
leanexplore_sqlite
leanexplore_declarations
theorem isReal_comap (w : v.RamifiedExtension L) : (w.1.comap (algebraMap K L)).IsReal := (isRamified_iff.1 w.isRamified).2
84
leanexplore_declaration
leanexplore:381671
leanexplore_sqlite
leanexplore_declarations
instance : Coe (v.RamifiedExtension L) (v.Extension L) where coe w := ⟨w.1, w.2.1⟩
86
leanexplore_declaration
leanexplore:381672
leanexplore_sqlite
leanexplore_declarations
theorem isReal (w : v.RamifiedExtension L) : v.IsReal := w.comap_eq ▸ w.isReal_comap
124
leanexplore_declaration
leanexplore:381673
leanexplore_sqlite
leanexplore_declarations
theorem isComplex (w : v.RamifiedExtension L) : (w.1 : InfinitePlace L).IsComplex := (isRamified_iff.1 w.isRamified).1
88
leanexplore_declaration
leanexplore:381674
leanexplore_sqlite
leanexplore_declarations
theorem comap_eq (w : UnramifiedExtension L v) : w.1.comap (algebraMap K L) = v := w.2.1
80
leanexplore_declaration
leanexplore:381675
leanexplore_sqlite
leanexplore_declarations
theorem isUnramified (w : UnramifiedExtension L v) : w.1.IsUnramified K := w.2.2
91
leanexplore_declaration
leanexplore:381676
leanexplore_sqlite
leanexplore_declarations
instance : Coe (v.UnramifiedExtension L) (v.Extension L) where coe w := ⟨w.1, w.comap_eq⟩
339
leanexplore_declaration
leanexplore:381678
leanexplore_sqlite
leanexplore_declarations
theorem setOf_norm_one_lt_finite (x : ℚ) : {p : Nat.Primes | 1 < ‖(x : ℚ_[p])‖}.Finite := by apply Set.Finite.subset _ fun p ↦ mt (Padic.norm_rat_le_one) ∘ not_le.2 apply Set.Finite.of_finite_image _ Nat.Primes.coe_nat_injective.injOn apply Set.Finite.subset (s := x.den.primeFactors) (by simp) exact fun _ ⟨...
232
leanexplore_declaration
leanexplore:381680
leanexplore_sqlite
leanexplore_declarations
theorem padic_valuation_neg_of_mem_indexSupport {x : Πʳ (p : Nat.Primes), [ℚ_[p], subring p]} {p : Nat.Primes} (hp : p ∈ x.indexSupport) : (x p).valuation < 0 := by contrapose! hp simpa [Padic.norm_le_one_iff_val_nonneg]
239
leanexplore_declaration
leanexplore:381681
leanexplore_sqlite
leanexplore_declarations
/-- The smallest positive natural `n : ℕ` for which `x p * n` is a `p`-adic integer for all `p`. -/ noncomputable def padicNatDen (x : Πʳ (p : Nat.Primes), [ℚ_[p], subring p]) : ℕ := ∏ p ∈ x.indexSupport, p.1 ^ (x p).valuation.natAbs
181
leanexplore_declaration
leanexplore:381682
leanexplore_sqlite
leanexplore_declarations
theorem padicNatDen_ne_zero (x : Πʳ (p : Nat.Primes), [ℚ_[p], subring p]) : x.padicNatDen ≠ 0 := by rw [padicNatDen, Finset.prod_ne_zero_iff] intro p hp simp [p.2.ne_zero]
576
leanexplore_declaration
leanexplore:381683
leanexplore_sqlite
leanexplore_declarations
theorem padicNatDen_norm_of_mem {x : Πʳ (p : Nat.Primes), [ℚ_[p], subring p]} {p : Nat.Primes} (hp : p ∈ x.indexSupport) : ‖(x.padicNatDen : ℚ_[p])‖ = (p.1 : ℝ) ^ (-((x p).valuation.natAbs : ℤ)) := by simp only [padicNatDen, Nat.cast_prod, norm_prod, Nat.cast_pow, norm_pow] rw [Finset.prod_eq_single_of_mem ...
454
leanexplore_declaration
leanexplore:381684
leanexplore_sqlite
leanexplore_declarations
theorem padicNatDen_norm_of_notMem {x : Πʳ (p : Nat.Primes), [ℚ_[p], subring p]} {p : Nat.Primes} (hp : p ∉ x.indexSupport) : ‖(x.padicNatDen : ℚ_[p])‖ = 1 := by simp only [padicNatDen, Nat.cast_prod, norm_prod, Nat.cast_pow, norm_pow] refine Finset.prod_eq_one fun q hq ↦ ?_ rw [(Padic.norm_natCast_eq_one...
589
leanexplore_declaration
leanexplore:381685
leanexplore_sqlite
leanexplore_declarations
theorem padicNatDen_norm_mul_le_one (x : Πʳ (p : Nat.Primes), [ℚ_[p], subring p]) (p : Nat.Primes) : ‖(x.padicNatDen : ℚ) * x p‖ ≤ 1 := by by_cases hp : p ∈ x.indexSupport · by_cases hx : x p = 0 · simp [hx] · simp only [Rat.cast_natCast, norm_mul, padicNatDen_norm_of_mem hp, Nat.cast_natAbs, a...
248
leanexplore_declaration
leanexplore:381686
leanexplore_sqlite
leanexplore_declarations
/-- The element of `(p : Nat.Primes) → ℤ_[p]` obtained by multiplying by `padicNatDen`. -/ noncomputable def padicNum (x : Πʳ (p : Nat.Primes), [ℚ_[p], subring p]) (p : Nat.Primes) : ℤ_[p] := ⟨x.padicNatDen * x p, x.padicNatDen_norm_mul_le_one p⟩
2,133
leanexplore_declaration
leanexplore:381687
leanexplore_sqlite
leanexplore_declarations
theorem padic_exists_sub_mem_padicInt (x : Πʳ (p : Nat.Primes), [ℚ_[p], subring p]) : ∃ q : ℚ, ∀ p : Nat.Primes, q - x p ∈ subring p := by -- At `p` for which `x p` is non-integral cast `x.padicNum` to `ZMod (p ^ (x p).valuation.natAbs)` let padicNum_bar (p : x.indexSupport) : ZMod (p ^ (x p).valuation.natA...
330
leanexplore_declaration
leanexplore:381688
leanexplore_sqlite
leanexplore_declarations
noncomputable instance : Algebra ℚ (Πʳ (p : Nat.Primes), [ℚ_[p], subring p]) := letI f : RingHom ℚ (Πʳ (p : Nat.Primes), [ℚ_[p], subring p]) := { toFun k := ⟨fun i ↦ k, by simpa using Padic.setOf_norm_one_lt_finite k⟩ map_one' := rfl map_mul' _ _ := rfl map_zero' := rfl map_add' _ _ := rfl } f...
302
leanexplore_declaration
leanexplore:381689
leanexplore_sqlite
leanexplore_declarations
theorem padic_exists_sub_mem_structureSubring (a : Πʳ (p : Nat.Primes), [ℚ_[p], subring p]) : ∃ q : ℚ, a - algebraMap ℚ _ q ∈ structureSubring _ _ _ := by obtain ⟨r, hr⟩ := padic_exists_sub_mem_padicInt a exact ⟨r, mem_structureSubring_iff.2 fun p ↦ by simpa using Subring.neg_mem _ (hr p)⟩
119
leanexplore_declaration
leanexplore:381690
leanexplore_sqlite
leanexplore_declarations
class Algebra.UniformlyBoundedRank : Prop where cond : ∀ k, ∃ n : ℕ, ∀ i, Nat.card (R i ⧸ maximalIdeal (R i) ^ k) < n
97
leanexplore_declaration
leanexplore:381691
leanexplore_sqlite
leanexplore_declarations
abbrev PatchingAlgebra.Component (k : ℕ) := UltraProduct (fun i ↦ R i ⧸ maximalIdeal (R i) ^ k) F
86
leanexplore_declaration
leanexplore:381692
leanexplore_sqlite
leanexplore_declarations
instance (k) : T2Space (PatchingAlgebra.Component R F k) := DiscreteTopology.toT2Space
482
leanexplore_declaration
leanexplore:381693
leanexplore_sqlite
leanexplore_declarations
lemma PatchingAlgebra.componentEquiv (k) : ∀ᶠ j in F, Nonempty (PatchingAlgebra.Component R F k ≃ₐ[Λ] R j ⧸ maximalIdeal (R j) ^ k) := by obtain ⟨n, hn⟩ := Algebra.UniformlyBoundedRank.cond (R := R) k refine UltraProduct.exists_algEquiv_of_bddAbove_card F n (.of_forall ?_) (.of_forall ?_) · exact fun x ↦ ⟨Add...
222
leanexplore_declaration
leanexplore:381694
leanexplore_sqlite
leanexplore_declarations
instance (k : ℕ) : Finite (PatchingAlgebra.Component R F k) := (PatchingAlgebra.componentEquiv ℤ R F k).exists.choose_spec.some.finite_iff.mpr (AddSubgroup.quotient_finite_of_isOpen _ (isOpen_maximalIdeal_pow'' _ _))
416
leanexplore_declaration
leanexplore:381695
leanexplore_sqlite
leanexplore_declarations
instance (k : ℕ) [NeZero k] : Nontrivial (PatchingAlgebra.Component R F k) := by obtain ⟨i, ⟨e⟩⟩ := (PatchingAlgebra.componentEquiv ℤ R F k).exists have : Nontrivial (R i ⧸ maximalIdeal (R i) ^ k) := by refine Ideal.Quotient.nontrivial_iff.2 ?_ exact ((Ideal.pow_le_self (NeZero.ne k)).trans_lt (lt_top...
238
leanexplore_declaration
leanexplore:381696
leanexplore_sqlite
leanexplore_declarations
instance : Subsingleton (PatchingAlgebra.Component R F 0) := by obtain ⟨i, ⟨e⟩⟩ := (PatchingAlgebra.componentEquiv ℤ R F 0).exists have : Subsingleton (R i ⧸ maximalIdeal (R i) ^ 0) := by simp exact e.symm.toRingHom.codomain_trivial
290
leanexplore_declaration
leanexplore:381697
leanexplore_sqlite
leanexplore_declarations
instance (k : ℕ) [NeZero k] : IsLocalRing (PatchingAlgebra.Component R F k) := let ⟨i, ⟨e⟩⟩ := (PatchingAlgebra.componentEquiv ℤ R F k).exists .of_surjective' (e.symm.toRingHom.comp (Ideal.Quotient.mk (maximalIdeal (R i) ^ k))) <| e.symm.surjective.comp Ideal.Quotient.mk_surjective
104
leanexplore_declaration
leanexplore:381698
leanexplore_sqlite
leanexplore_declarations
instance : Nontrivial (Π k, PatchingAlgebra.Component R F k) := (Pi.evalRingHom _ 1).domain_nontrivial
241
leanexplore_declaration
leanexplore:381699
leanexplore_sqlite
leanexplore_declarations
abbrev PatchingAlgebra.componentMap (j k : ℕ) (hjk : k ≤ j) : Component R F j →+* Component R F k := UltraProduct.mapRingHom (R := fun i ↦ R i ⧸ maximalIdeal (R i) ^ j) F fun _ ↦ Ideal.quotientMap _ (.id _) (Ideal.pow_le_pow_right hjk)
935
leanexplore_declaration
leanexplore:381700
leanexplore_sqlite
leanexplore_declarations
instance (j k : ℕ) (hjk : k ≤ j) [NeZero k] : IsLocalHom (PatchingAlgebra.componentMap R F j k hjk) := by suffices ∀ (i : ι), IsLocalHom (Ideal.quotientMap (maximalIdeal (R i) ^ k) (.id (R i)) (Ideal.pow_le_pow_right hjk)) by delta PatchingAlgebra.componentMap; infer_instance intro i have : Nontrivi...
472
leanexplore_declaration
leanexplore:381701
leanexplore_sqlite
leanexplore_declarations
def PatchingAlgebra.subring : Subring (Π i, Component R F i) where carrier := { v | ∀ j k hjk, componentMap R F j k hjk (v j) = v k } mul_mem' := by simp +contextual only [Set.mem_setOf, Pi.mul_apply, map_mul, implies_true] add_mem' := by simp +contextual only [Set.mem_setOf, Pi.add_apply, RingHom.map_add, implie...
127
leanexplore_declaration
leanexplore:381702
leanexplore_sqlite
leanexplore_declarations
def PatchingAlgebra.subalgebra : Subalgebra Λ (Π i, Component R F i) where __ := subring R F algebraMap_mem' _ _ _ _ := rfl
363
leanexplore_declaration
leanexplore:381703
leanexplore_sqlite
leanexplore_declarations
lemma PatchingAlgebra.isClosed_subring : IsClosed (X := Π i, Component R F i) (subring R F) := by have (j k) (h) : IsClosed { v : Π i, Component R F i | componentMap R F j k h (v j) = v k } := by exact isClosed_eq (by continuity) (by continuity) convert isClosed_iInter fun j ↦ isClosed_iInter fun k ↦ ...
59
leanexplore_declaration
leanexplore:381704
leanexplore_sqlite
leanexplore_declarations
def PatchingAlgebra : Type _ := PatchingAlgebra.subring R F
103
leanexplore_declaration
leanexplore:381705
leanexplore_sqlite
leanexplore_declarations
instance : CommRing (PatchingAlgebra R F) := inferInstanceAs (CommRing (PatchingAlgebra.subring R F))
110
leanexplore_declaration
leanexplore:381706
leanexplore_sqlite
leanexplore_declarations
instance : Algebra Λ (PatchingAlgebra R F) := inferInstanceAs (Algebra Λ (PatchingAlgebra.subalgebra Λ R F))
119
leanexplore_declaration
leanexplore:381707
leanexplore_sqlite
leanexplore_declarations
instance : TopologicalSpace (PatchingAlgebra R F) := inferInstanceAs (TopologicalSpace (PatchingAlgebra.subring R F))
121
leanexplore_declaration
leanexplore:381708
leanexplore_sqlite
leanexplore_declarations
instance : IsTopologicalRing (PatchingAlgebra R F) := inferInstanceAs (IsTopologicalRing (PatchingAlgebra.subring R F))
87
leanexplore_declaration
leanexplore:381709
leanexplore_sqlite
leanexplore_declarations
instance : T2Space (PatchingAlgebra R F) := (Topology.IsEmbedding.subtypeVal).t2Space
142
leanexplore_declaration
leanexplore:381710
leanexplore_sqlite
leanexplore_declarations
instance : CompactSpace (PatchingAlgebra R F) := (IsClosed.isClosedEmbedding_subtypeVal (PatchingAlgebra.isClosed_subring R F)).compactSpace
104
leanexplore_declaration
leanexplore:381711
leanexplore_sqlite
leanexplore_declarations
instance : Nontrivial (PatchingAlgebra R F) := (PatchingAlgebra.subring R F).subtype.domain_nontrivial
383
leanexplore_declaration
leanexplore:381712
leanexplore_sqlite
leanexplore_declarations
instance : IsLocalHom (PatchingAlgebra.subring R F).subtype := by constructor intro a H rw [IsUnit.pi_iff] at H refine (isUnit_iff_exists_inv.mpr ⟨⟨fun i ↦ ↑((H i).unit⁻¹), fun i j hij ↦ ?_⟩, Subtype.ext (funext fun i ↦ (H i).mul_val_inv)⟩) dsimp only rw [← MonoidHom.coe_coe, ← RingHom.toMonoidHom_eq_co...
795
leanexplore_declaration
leanexplore:381713
leanexplore_sqlite
leanexplore_declarations
instance : IsLocalRing (PatchingAlgebra R F) := by constructor intro a b e wlog H : ∀ i, IsUnit (a.1 i) generalizing a b · obtain ⟨i, hi⟩ := not_forall.mp H have hb : ∀ j > i, IsUnit (b.1 j) := by intro j hj have : NeZero j := NeZero.of_gt hj exact (isUnit_or_isUnit_of_add_one (congr_fun (...
465
leanexplore_declaration
leanexplore:381714
leanexplore_sqlite
leanexplore_declarations
instance (i) [NeZero i] : IsLocalHom ((Pi.evalRingHom _ i).comp (PatchingAlgebra.subring R F).subtype) := by constructor intro a H apply isUnit_of_map_unit (PatchingAlgebra.subring R F).subtype rw [IsUnit.pi_iff] intro j obtain hij | hij := le_total i j · apply isUnit_of_map_unit (PatchingAlgebra.comp...
95
leanexplore_declaration
leanexplore:381715
leanexplore_sqlite
leanexplore_declarations
instance : TotallyDisconnectedSpace (PatchingAlgebra R F) := Subtype.totallyDisconnectedSpace
251
leanexplore_declaration
leanexplore:381716
leanexplore_sqlite
leanexplore_declarations
def PatchingAlgebra.lift : Rₒₒ →+* PatchingAlgebra R F := (Pi.ringHom fun i ↦ (UltraProduct.π _ _).comp (Pi.ringHom fun j ↦ (Ideal.Quotient.mk _).comp (f j))).codRestrict _ <| by intro x i j hij simp [componentMap, UltraProduct.mapRingHom_π]
451
leanexplore_declaration
leanexplore:381717
leanexplore_sqlite
leanexplore_declarations
lemma PatchingAlgebra.continuous_lift : Continuous (lift R F f) := by refine continuous_induced_rng.mpr ?_ refine continuous_pi fun k ↦ ?_ obtain ⟨n, hn⟩ := Algebra.UniformlyBoundedRank.cond (R := R) k refine UltraProduct.continuous_of_bddAbove_card F n (.of_forall ?_) _ (.of_forall ?_) · exact fun x ↦ ⟨AddSu...
812
leanexplore_declaration
leanexplore:381718
leanexplore_sqlite
leanexplore_declarations
lemma PatchingAlgebra.lift_surjective (hf' : ∀ i, Function.Surjective (f i)) : Function.Surjective (lift R F f) := by suffices DenseRange (lift R F f) by rw [← Set.range_eq_univ, ← this.closure_eq, (isCompact_range (continuous_lift R F f hf)).isClosed.closure_eq] refine denseRange_inverseLimit (ι := ℕ...
347
leanexplore_declaration
leanexplore:381719
leanexplore_sqlite
leanexplore_declarations
def PatchingAlgebra.ofPi : (ℕ → Π i, R i) →+* Π k, Component R F k := Pi.ringHom fun k ↦ (RingHom.comp ((Ideal.Quotient.mk (eventuallyProd (R := fun i ↦ R i ⧸ maximalIdeal (R i) ^ k) (M := fun i ↦ R i ⧸ maximalIdeal (R i) ^ k) ⊥ F)).comp (Pi.ringHom fun j ↦ (Ideal.Quotient.mk _).comp (Pi.evalRingHom _...
554
leanexplore_declaration
leanexplore:381720
leanexplore_sqlite
leanexplore_declarations
lemma PatchingAlgebra.ofPi_surjective : Function.Surjective (ofPi R F) := by intro x have (k : ℕ) := Ideal.Quotient.mk_surjective (I := (eventuallyProd (R := fun i ↦ R i ⧸ maximalIdeal (R i) ^ k) (M := fun i ↦ R i ⧸ maximalIdeal (R i) ^ k) ⊥ F)) (x k) choose y hy using this choose z hz using fun k...
170
leanexplore_declaration
leanexplore:381721
leanexplore_sqlite
leanexplore_declarations
@[simp] lemma PatchingAlgebra.ofPi_apply (x k) : ofPi R F x k = UltraProduct.π (fun i ↦ R i ⧸ maximalIdeal (R i) ^ k) F (fun i ↦ Ideal.Quotient.mk _ (x k i)) := rfl
210
leanexplore_declaration
leanexplore:381722
leanexplore_sqlite
leanexplore_declarations
def PatchingAlgebra.incl : (Π i, R i) →+* PatchingAlgebra R F := RingHom.codRestrict ((ofPi R F).comp (Pi.ringHom fun _ ↦ .id _)) (subring R F) <| by intro x j k h simp [UltraProduct.mapRingHom_π]
421
leanexplore_declaration
leanexplore:381723
leanexplore_sqlite
leanexplore_declarations
abbrev PatchingAlgebra.componentMapRingHom (k : ℕ) : Component R F k →+* Component R' F k := UltraProduct.mapRingHom F (R := fun i ↦ R i ⧸ maximalIdeal (R i) ^ k) (S := fun i ↦ R' i ⧸ maximalIdeal (R' i) ^ k) fun i ↦ Ideal.quotientMap _ (f i) <| by rw [← Ideal.map_le_iff_le_comap, Ideal.map_pow]...
325
leanexplore_declaration
leanexplore:381724
leanexplore_sqlite
leanexplore_declarations
lemma PatchingAlgebra.componentMapRingHom_surjective (hf : ∀ i, Function.Surjective (f i)) (k : ℕ) : Function.Surjective (componentMapRingHom R F f k) := by apply UltraProduct.mapRingHom_surjective intro i x obtain ⟨x, rfl⟩ := Ideal.Quotient.mk_surjective.comp (hf i) x refine ⟨Ideal.Quotient.mk _ x, by ...
608
leanexplore_declaration
leanexplore:381725
leanexplore_sqlite
leanexplore_declarations
def PatchingAlgebra.map : PatchingAlgebra R F →+* PatchingAlgebra R' F := RingHom.restrict (Pi.ringHom fun i ↦ (componentMapRingHom R F f i).comp (Pi.evalRingHom _ _)) _ _ <| by intro x hx i j hij obtain ⟨a, ha⟩ := UltraProduct.π_surjective (x i) simp only [Pi.ringHom_apply, RingHom.coe_comp, Func...
136
leanexplore_declaration
leanexplore:381726
leanexplore_sqlite
leanexplore_declarations
@[simp] lemma PatchingAlgebra.map_apply (x : PatchingAlgebra R F) (k) : (map F f x).1 k = componentMapRingHom R F f k (x.1 k) := rfl
231
leanexplore_declaration
leanexplore:381727
leanexplore_sqlite
leanexplore_declarations
lemma PatchingAlgebra.map_comp_apply (x) : map F (fun i ↦ (g i).comp (f i)) x = map F g (map F f x) := by refine Subtype.ext (funext fun k ↦ ?_) obtain ⟨y, hy⟩ := ofPi_surjective x.1 simp [← hy, UltraProduct.mapRingHom_π]
138
leanexplore_declaration
leanexplore:381728
leanexplore_sqlite
leanexplore_declarations
lemma PatchingAlgebra.map_comp : map F (fun i ↦ (g i).comp (f i)) = (map F g).comp (map F f) := RingHom.ext (map_comp_apply R F f g)
226
leanexplore_declaration
leanexplore:381729
leanexplore_sqlite
leanexplore_declarations
@[simp] lemma PatchingAlgebra.map_id : map F (fun i ↦ RingHom.id (R i)) = RingHom.id _ := by ext x obtain ⟨y, hy⟩ := ofPi_surjective x.1 refine Subtype.ext (funext fun α ↦ ?_) simp [← hy, UltraProduct.mapRingHom_π]
308
leanexplore_declaration
leanexplore:381730
leanexplore_sqlite
leanexplore_declarations
@[simps! apply symm_apply] def PatchingAlgebra.mapEquiv (f : ∀ i, R i ≃+* R' i) : PatchingAlgebra R F ≃+* PatchingAlgebra R' F where __ := map F fun i ↦ (f i).toRingHom invFun := map F fun i ↦ (f i).symm.toRingHom left_inv x := by simp [← map_comp_apply] right_inv x := by simp [← map_comp_apply]
174
leanexplore_declaration
leanexplore:381731
leanexplore_sqlite
leanexplore_declarations
@[simps! apply symm_apply] def PatchingAlgebra.mapEquiv (f : ∀ i, R i ≃+* R' i) : PatchingAlgebra R F ≃+* PatchingAlgebra R' F where __ := map F fun i ↦ (f i).toRingHom
897
leanexplore_declaration
leanexplore:381733
leanexplore_sqlite
leanexplore_declarations
lemma RingHom.continuous_of_finite_of_compact {R H : Type*} [CommRing R] [Semiring H] (f : R →+* H) [TopologicalSpace R] [TopologicalSpace H] [CompactSpace R] [_root_.Finite H] [IsTopologicalRing R] [T2Space R] [IsNoetherianRing R] [ContinuousAdd H] : Continuous f := by suffices IsOpen (X := R) (RingHom.k...
1,870
leanexplore_declaration
leanexplore:381734
leanexplore_sqlite
leanexplore_declarations
lemma PatchingAlgebra.map_surjective (hf : ∀ i, Function.Surjective (f i)) : Function.Surjective (map F f) := by intro x let s (k : ℕ) : Set (Component R F k) := componentMapRingHom R F f k ⁻¹' {x.1 k} let fs (k₁ k₂ : ℕᵒᵈ) (h : k₁ ≤ k₂) (a : s k₁) : s k₂ := ⟨componentMap R F _ _ h a.1, by ha...
714
leanexplore_declaration
leanexplore:381735
leanexplore_sqlite
leanexplore_declarations
lemma PatchingAlgebra.algebraMap_continuous (R : Type*) [CommRing R] [IsLocalRing R] [TopologicalSpace R] [IsTopologicalRing R] [CompactSpace R] [IsNoetherianRing R] [IsAdicTopology R] : Continuous (algebraMap R (PatchingAlgebra (fun _ ↦ R) F)) := by refine continuous_induced_rng.mpr ?_ refine continuou...
939
leanexplore_declaration
leanexplore:381736
leanexplore_sqlite
leanexplore_declarations
lemma PatchingAlgebra.algebraMap_surjective (R : Type*) [CommRing R] [IsLocalRing R] [TopologicalSpace R] [IsTopologicalRing R] [CompactSpace R] [IsNoetherianRing R] [IsAdicTopology R] : Function.Surjective (algebraMap R (PatchingAlgebra (fun _ ↦ R) F)) := by suffices DenseRange (algebraMap R (PatchingAlg...
810
leanexplore_declaration
leanexplore:381737
leanexplore_sqlite
leanexplore_declarations
noncomputable def PatchingAlgebra.constEquiv (R : Type*) [CommRing R] [IsLocalRing R] [TopologicalSpace R] [IsTopologicalRing R] [CompactSpace R] [IsNoetherianRing R] [IsAdicTopology R] : R ≃ₐ[R] PatchingAlgebra (fun _ ↦ R) F := by refine .ofBijective (Algebra.ofId R (PatchingAlgebra (fun _ ↦ R) F)) ⟨...
109
leanexplore_declaration
leanexplore:381738
leanexplore_sqlite
leanexplore_declarations
class Module.UniformlyBoundedRank : Prop where cond : ∃ n : ℕ, ∀ i, Module.rank (R ⧸ Ann R (M i)) (M i) < n
118
leanexplore_declaration
leanexplore:381739
leanexplore_sqlite
leanexplore_declarations
noncomputable def Module.UniformlyBoundedRank.bound : ℕ := Module.UniformlyBoundedRank.cond (R := R) (M := M).choose
175
leanexplore_declaration
leanexplore:381740
leanexplore_sqlite
leanexplore_declarations
lemma Module.UniformlyBoundedRank.rank_lt_bound (i) : Module.rank (R ⧸ Ann R (M i)) (M i) < bound R M := Module.UniformlyBoundedRank.cond (R := R) (M := M).choose_spec i
160
leanexplore_declaration
leanexplore:381741
leanexplore_sqlite
leanexplore_declarations
lemma Module.UniformlyBoundedRank.finrank_lt_bound (i) : Module.finrank (R ⧸ Ann R (M i)) (M i) < bound R M := finrank_lt_of_rank_lt (rank_lt_bound R M i)
215
leanexplore_declaration
leanexplore:381742
leanexplore_sqlite
leanexplore_declarations
instance (i) : Module.Finite (R ⧸ Ann R (M i)) (M i) := Module.finite_of_rank_eq_nat (Cardinal.cast_toNat_of_lt_aleph0 ((Module.UniformlyBoundedRank.rank_lt_bound R M i).trans Cardinal.natCast_lt_aleph0)).symm
83
leanexplore_declaration
leanexplore:381743
leanexplore_sqlite
leanexplore_declarations
instance (i) : Module.Finite R (M i) := Module.Finite.trans (R ⧸ Ann R (M i)) (M i)
1,135
leanexplore_declaration
leanexplore:381744
leanexplore_sqlite
leanexplore_declarations
lemma Module.UniformlyBoundedRank.exists_finsupp_surjective (i) : ∃ f : ((Fin (bound R M)) →₀ R) →ₗ[R] M i, Function.Surjective f := by cases subsingleton_or_nontrivial (M i) · refine ⟨0, fun x ↦ ⟨0, Subsingleton.elim _ _⟩⟩ have : Nontrivial (R ⧸ Ann R (M i)) := by rw [Ideal.Quotient.nontrivial_iff, ne_eq...
516
leanexplore_declaration
leanexplore:381745
leanexplore_sqlite
leanexplore_declarations
lemma Module.UniformlyBoundedRank.finite_quotient_smul (i) (I : Ideal R) [Finite (R ⧸ I)] : Finite (M i ⧸ (I • ⊤ : Submodule R (M i))) := by obtain ⟨f, hf⟩ := exists_finsupp_surjective R M i let f' : (Fin (bound R M) → R ⧸ I) →ₗ[R] M i ⧸ (I • ⊤ : Submodule R (M i)) := Pi.liftQuotientₗ (f ∘ₗ (Finsupp.linearE...
605
leanexplore_declaration
leanexplore:381746
leanexplore_sqlite
leanexplore_declarations
lemma Module.UniformlyBoundedRank.card_quotient_le (i) (I : Ideal R) [Finite (R ⧸ I)] : Nat.card (M i ⧸ (I • ⊤ : Submodule R (M i))) ≤ (Nat.card (R ⧸ I)) ^ bound R M := by obtain ⟨f, hf⟩ := exists_finsupp_surjective R M i let f' : (Fin (bound R M) → R ⧸ I) →ₗ[R] M i ⧸ (I • ⊤ : Submodule R (M i)) := Pi.liftQ...
982
leanexplore_declaration
leanexplore:381747
leanexplore_sqlite
leanexplore_declarations
lemma Module.UniformlyBoundedRank.exists_rank : ∃ n : ℕ, ∀ᶠ i in F, Nonempty (M i ≃ₗ[R] Fin n → R ⧸ Ann R (M i)) := by let n := bound R M suffices ∃ i : Fin (n + 1), ∀ᶠ j in F, Nonempty (M j ≃ₗ[R] Fin i → R ⧸ Ann R (M j)) by obtain ⟨i, hi⟩ := this exact ⟨i, hi⟩ rw [← Ultrafilter.eventually_exists_iff]...
84
leanexplore_declaration
leanexplore:381748
leanexplore_sqlite
leanexplore_declarations
noncomputable def Module.UniformlyBoundedRank.rank : ℕ := (exists_rank R M F).choose
153
leanexplore_declaration
leanexplore:381749
leanexplore_sqlite
leanexplore_declarations
lemma Module.UniformlyBoundedRank.rank_spec : ∀ᶠ i in F, Nonempty (M i ≃ₗ[R] Fin (rank R M F) → R ⧸ Ann R (M i)) := (exists_rank R M F).choose_spec
299
leanexplore_declaration
leanexplore:381750
leanexplore_sqlite
leanexplore_declarations
noncomputable def Module.UniformlyBoundedRank.linearMap (i) : (Fin (rank R M F) → R) →ₗ[R] M i := letI := Classical.propDecidable if h : Nonempty (M i ≃ₗ[R] Fin (rank R M F) → R ⧸ Ann R (M i)) then h.some.symm.toLinearMap ∘ₗ ((Algebra.linearMap _ _).compLeft (Fin (rank R M F))) else 0
293
leanexplore_declaration
leanexplore:381751
leanexplore_sqlite
leanexplore_declarations
lemma Module.UniformlyBoundedRank.linearMap_surjective : ∀ᶠ i in F, Function.Surjective (linearMap R M F i) := by filter_upwards [rank_spec R M F] with i hi rw [linearMap, dif_pos hi] exact hi.some.symm.surjective.comp (Function.Surjective.comp_left Ideal.Quotient.mk_surjective)
399
leanexplore_declaration
leanexplore:381752
leanexplore_sqlite
leanexplore_declarations
lemma Module.UniformlyBoundedRank.linearMap_eq_zero : ∀ᶠ i in F, ∀ x, linearMap R M F i x = 0 ↔ ∀ j, x j ∈ Ann R (M i) := by filter_upwards [rank_spec R M F] with i hi x rw [linearMap, dif_pos hi] simp only [LinearMap.coe_comp, LinearEquiv.coe_coe, Function.comp_apply, EmbeddingLike.map_eq_zero_iff, funex...
109
leanexplore_declaration
leanexplore:381753
leanexplore_sqlite
leanexplore_declarations
abbrev PatchingModule.Component (α : Ideal R) := UltraProduct (fun i ↦ M i ⧸ (α • ⊤ : Submodule R (M i))) F
332
leanexplore_declaration
leanexplore:381754
leanexplore_sqlite
leanexplore_declarations
def PatchingModule.liftComponent (α : Ideal R) (f : ∀ i, M₀ →ₗ[R] M i) : M₀ ⧸ (α • ⊤ : Submodule R M₀) →ₗ[R] Component R M F α := (UltraProduct.πₗ (fun _ ↦ R) _ _).restrictScalars R ∘ₗ LinearMap.pi fun i ↦ mapQ _ _ (f i) (by rw [← Submodule.map_le_iff_le_comap, map_smul''] exact Submodule.smul_mono le...
63
leanexplore_declaration
leanexplore:381755
leanexplore_sqlite
leanexplore_declarations
def OpenIdeals : Type _ := { α : Ideal R // IsOpen (X := R) α }
91
leanexplore_declaration
leanexplore:381756
leanexplore_sqlite
leanexplore_declarations
instance : SemilatticeInf (OpenIdeals R) := Subtype.semilatticeInf fun _ _ ↦ IsOpen.inter
68
leanexplore_declaration
leanexplore:381757
leanexplore_sqlite
leanexplore_declarations
instance : OrderTop (OpenIdeals R) := Subtype.orderTop isOpen_univ
342
leanexplore_declaration
leanexplore:381758
leanexplore_sqlite
leanexplore_declarations
abbrev PatchingModule.componentMap {α β : Ideal R} (h : α ≤ β) : Component R M F α →ₗ[R] Component R M F β := UltraProduct.map (R := fun _ ↦ R) (M := (fun i ↦ M i ⧸ (α • ⊤ : Submodule R (M i)))) (N := (fun i ↦ M i ⧸ (β • ⊤ : Submodule R (M i)))) F (fun _ ↦ Submodule.mapQ _ _ LinearMap.id (Submodul...
405
leanexplore_declaration
leanexplore:381759
leanexplore_sqlite
leanexplore_declarations
def PatchingModule.submodule : Submodule (ι → R) (Π α : OpenIdeals R, Component R M F α.1) where carrier := { x | ∀ (α β : OpenIdeals R) (h : α ≤ β), componentMap R M F h (x α) = x β } add_mem' {v w} hv hw α β h := by dsimp at * simp only [map_add, hv α β h, hw α β h] zero_mem' := by simp smul_mem' c {v...
435
leanexplore_declaration
leanexplore:381760
leanexplore_sqlite
leanexplore_declarations
lemma PatchingModule.isClosed_submodule : IsClosed (X := Π α : OpenIdeals R, Component R M F α.1) (submodule R M F) := by have (α β : OpenIdeals R) (h : α ≤ β) : IsClosed { v : Π α : OpenIdeals R, Component R M F α.1 | componentMap R M F h (v α) = v β } := by exact isClosed_eq (by continuity) (b...
61
leanexplore_declaration
leanexplore:381761
leanexplore_sqlite
leanexplore_declarations
def PatchingModule : Type _ := PatchingModule.submodule R M F
115
leanexplore_declaration
leanexplore:381762
leanexplore_sqlite
leanexplore_declarations
instance : AddCommGroup (PatchingModule R M F) := inferInstanceAs (AddCommGroup (PatchingModule.submodule R M F))
119
leanexplore_declaration
leanexplore:381763
leanexplore_sqlite
leanexplore_declarations
instance : Module (ι → R) (PatchingModule R M F) := inferInstanceAs (Module (ι → R) (PatchingModule.submodule R M F))
107
leanexplore_declaration
leanexplore:381764
leanexplore_sqlite
leanexplore_declarations
instance : Module R (PatchingModule R M F) := inferInstanceAs (Module R (PatchingModule.submodule R M F))
113
leanexplore_declaration
leanexplore:381765
leanexplore_sqlite
leanexplore_declarations
@[simp] lemma PatchingModule.smul_apply (r : R) (x : PatchingModule R M F) (α) : (r • x).1 α = r • x.1 α := rfl
137
leanexplore_declaration
leanexplore:381766
leanexplore_sqlite
leanexplore_declarations
instance : IsScalarTower R (ι → R) (PatchingModule R M F) := inferInstanceAs (IsScalarTower R (ι → R) (PatchingModule.submodule R M F))
123
leanexplore_declaration
leanexplore:381767
leanexplore_sqlite
leanexplore_declarations
instance : TopologicalSpace (PatchingModule R M F) := inferInstanceAs (TopologicalSpace (PatchingModule.submodule R M F))
133
leanexplore_declaration
leanexplore:381768
leanexplore_sqlite
leanexplore_declarations
instance : IsTopologicalAddGroup (PatchingModule R M F) := inferInstanceAs (IsTopologicalAddGroup (PatchingModule.submodule R M F))