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 |
|---|---|---|---|---|---|
67 | leanexplore_declaration | leanexplore:380949 | leanexplore_sqlite | leanexplore_declarations | instance : CoeTC F (A →ₛₐ[φ] B) :=
⟨SemialgHomClass.toSemialgHom⟩ |
75 | leanexplore_declaration | leanexplore:380950 | leanexplore_sqlite | leanexplore_declarations | @[simp]
theorem SemialgHom.coe_coe (f : F) : ⇑(f : A →ₛₐ[φ] B) = f :=
rfl |
220 | leanexplore_declaration | leanexplore:380951 | leanexplore_sqlite | leanexplore_declarations | lemma SemialgHom.commutes (ψ : A →ₛₐ[φ] B) (r : R) :
ψ (algebraMap R A r) = algebraMap S B (φ r) := by
have := ψ.map_smul r 1
rw [Algebra.smul_def, mul_one, map_one] at this
rw [this, Algebra.smul_def, mul_one] |
83 | leanexplore_declaration | leanexplore:380952 | leanexplore_sqlite | leanexplore_declarations | theorem SemialgHom.toLinearMap_eq_coe (f : A →ₛₐ[φ] B) : f.toLinearMap = f :=
rfl |
79 | leanexplore_declaration | leanexplore:380953 | leanexplore_sqlite | leanexplore_declarations | theorem SemialgHom.toRingHom_eq_coe (f : A →ₛₐ[φ] B) : f.toRingHom = f :=
rfl |
200 | leanexplore_declaration | leanexplore:380954 | leanexplore_sqlite | leanexplore_declarations | theorem SemialgHom.algebraMap_apply {A B : Type*} [CommSemiring A] [CommSemiring B]
[Algebra R A] [Algebra S B] (f : A →ₛₐ[φ] B) (a : A) :
letI := f.toAlgebra
algebraMap A B a = f a := rfl |
377 | leanexplore_declaration | leanexplore:380955 | leanexplore_sqlite | leanexplore_declarations | /-- The composition of two semi-algebra maps. -/
def SemialgHom.comp {T : Type*} [CommSemiring T] {C : Type*} [Semiring C]
[Algebra T C] {ψ : S →+* T} {ξ : R →+* T} [RingHomCompTriple φ ψ ξ]
(g : B →ₛₐ[ψ] C) (f : A →ₛₐ[φ] B) :
A →ₛₐ[ξ] C where
__ := LinearMap.comp (SemialgHom.toLinearMap g) (SemialgHom.to... |
279 | leanexplore_declaration | leanexplore:380956 | leanexplore_sqlite | leanexplore_declarations | /-- An algebra map defines a semi-algebra map using `RingHom.id` -/
def AlgHom.toSemialgHom {R : Type*} [CommSemiring R] {A B : Type*} [Semiring A] [Semiring B]
[Algebra R A] [Algebra R B] (f : A →ₐ[R] B) :
A →ₛₐ[RingHom.id R] B where
__ := f
map_smul' _ _ := by simp |
338 | leanexplore_declaration | leanexplore:380957 | leanexplore_sqlite | leanexplore_declarations | /-- The composition `(B →ₛₐ[ψ] C) ∘ (A →ₐ[S] B) → `A →ₛₐ[ψ] C` of a semi-algebra map with an
algebra map to give a semi-algebra map. -/
def SemialgHom.compAlgHom {T : Type*} [CommSemiring T] {C : Type*} [Semiring C]
[Algebra T C] {ψ : S →+* T} [Algebra S A] (g : B →ₛₐ[ψ] C) (f : A →ₐ[S] B) :
A →ₛₐ[ψ] C :=
g.c... |
259 | leanexplore_declaration | leanexplore:380958 | leanexplore_sqlite | leanexplore_declarations | /-- The product of two semi-algebra maps on the same domain. -/
def SemialgHom.prod {C : Type*} [Semiring C] [Algebra S C] (f : A →ₛₐ[φ] B)
(g : A →ₛₐ[φ] C) :
A →ₛₐ[φ] B × C where
__ := RingHom.prod f.toRingHom g.toRingHom
map_smul' r x := by simp |
310 | leanexplore_declaration | leanexplore:380959 | leanexplore_sqlite | leanexplore_declarations | /-- The product of two semi-algebra maps on separate domains. -/
def SemialgHom.prodMap {C D : Type*} [Semiring C] [Semiring D]
[Algebra S C] [Algebra S D] [Algebra R B] (f : A →ₛₐ[φ] C) (g : B →ₛₐ[φ] D) :
A × B →ₛₐ[φ] C × D :=
(f.compAlgHom (AlgHom.fst R A B)).prod (g.compAlgHom (AlgHom.snd R A B)) |
683 | leanexplore_declaration | leanexplore:380960 | leanexplore_sqlite | leanexplore_declarations | /-- Restrict the scalars of semialgebra map `f : A →ₛₐ[ψ] B` where `ψ : R' →ₛₐ[φ] S'`, to
`φ : R →+* S`. -/
@[simps!]
def SemialgHom.restrictScalars {R S R' S' : Type*} [CommSemiring R] [CommSemiring S]
[CommSemiring R'] [CommSemiring S'] [Algebra R R'] [Algebra S S'] {φ : R →+* S}
(ψ : R' →ₛₐ[φ] S') {A B : Typ... |
419 | leanexplore_declaration | leanexplore:380961 | leanexplore_sqlite | leanexplore_declarations | @[simps!]
def SemialgHom.restrictScalars {R S R' S' : Type*} [CommSemiring R] [CommSemiring S]
[CommSemiring R'] [CommSemiring S'] [Algebra R R'] [Algebra S S'] {φ : R →+* S}
(ψ : R' →ₛₐ[φ] S') {A B : Type*} [Semiring A] [Semiring B] [Algebra R A] [Algebra S B]
[Algebra R' A] [Algebra S' B] [IsScalarTower R... |
352 | leanexplore_declaration | leanexplore:380962 | leanexplore_sqlite | leanexplore_declarations | def Pi.semialgHom {I : Type*} {R S : Type*} (f : I → Type*) [CommSemiring R] [CommSemiring S]
(φ : R →+* S) [s : (i : I) → Semiring (f i)] [(i : I) → Algebra S (f i)] {A : Type*}
[Semiring A] [Algebra R A] (g : (i : I) → A →ₛₐ[φ] f i) :
A →ₛₐ[φ] (i : I) → f i where
__ := Pi.ringHom fun i ↦ (g i).toRingHom... |
329 | leanexplore_declaration | leanexplore:380963 | leanexplore_sqlite | leanexplore_declarations | @[simp]
theorem Pi.semialgHom_apply {I : Type*} {R S : Type*} (f : I → Type*) [CommSemiring R]
[CommSemiring S]
(φ : R →+* S) [s : (i : I) → Semiring (f i)] [(i : I) → Algebra S (f i)] {A : Type*}
[Semiring A] [Algebra R A] (g : (i : I) → A →ₛₐ[φ] f i) (a : A) (i : I) :
(Pi.semialgHom _ φ g) a i = g i a... |
613 | leanexplore_declaration | leanexplore:380964 | leanexplore_sqlite | leanexplore_declarations | def Pi.semialgHomPi {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} (p : (i : I) → g (r i) →ₛₐ[φ] f i) :
((j : J) → g j) →... |
401 | leanexplore_declaration | leanexplore:380965 | leanexplore_sqlite | leanexplore_declarations | @[simp]
theorem Pi.semialgHomPi_apply {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} (p : (i : I) → g (r i) →ₛₐ[φ] f i)
(... |
949 | leanexplore_declaration | leanexplore:380966 | leanexplore_sqlite | leanexplore_declarations | /-- Let `f : α → β` be a function on index types. A family of `R`-algebra equivalences, indexed by
`b : β`, between the product over the fiber of `b` under `f` given as
`∀ (σ : { a : α // f a = b }) → γ₁ σ.1) ≃ₐ[R] γ₂ b` lifts to an equivalence over the products
`∀ a, γ₁ a ≃ₐ[R] ∀ b, γ₂ b`. This is `Equiv.piCongrFiberw... |
942 | leanexplore_declaration | leanexplore:380967 | leanexplore_sqlite | leanexplore_declarations | /-- If `f : A → B` where `A` and `B` are both `R`- and `S`-modules, then `IsBiscalar R S f`
asserts that `f` satisfies the linear scalar property for both `R` and `S`. I.e.,
- `f (r • a) = r • f a`
- `f (s • a) = s • f a`
for all `r : R`, `s : S`, `a : A`.
Note that this is symmetric in its arguments and only takes in... |
393 | leanexplore_declaration | leanexplore:380968 | leanexplore_sqlite | leanexplore_declarations | /--
Given a linear map `f : A →ₗ[S] B` which also satisfies `f (s' • a) = s' • f a` for `s : S'`,
with both `S` and `S'` sharing a common base ring `R`, then `f.changeScalars R S'` returns `f`
viewed as an `S'`-algebra homomorphism.
-/
def LinearMap.changeScalars (f : A →ₗ[S] B) [IsBiscalar S S' f] :
A →ₗ[S'] B whe... |
153 | leanexplore_declaration | leanexplore:380969 | leanexplore_sqlite | leanexplore_declarations | theorem LinearMap.changeScalars_apply (f : A →ₗ[S] B) [IsBiscalar S S' f] (a : A) :
LinearMap.changeScalars S' f a = f a := by
simp [changeScalars] |
526 | leanexplore_declaration | leanexplore:380970 | leanexplore_sqlite | leanexplore_declarations | /--
Given a linear isomorphism `f : A ≃ₗ[S] B` which also satisfies `f (s' • a) = s' • f a` for
`s : S'`, with both `S` and `S'` sharing a common base ring `R`, then `f.changeScalars R S'`
returns `f` viewed as an `S'`-algebra isomorphism.
-/
def LinearEquiv.changeScalars (f : A ≃ₗ[S] B) [IsBiscalar S S' f] :
A ≃ₗ[... |
450 | leanexplore_declaration | leanexplore:380971 | leanexplore_sqlite | leanexplore_declarations | @[simps! apply symm_apply]
def AlgEquiv.extendScalars {A C D : Type*} (B : Type*) [CommSemiring A] [CommSemiring C]
[CommSemiring D] [Algebra A C] [Algebra A D] [CommSemiring B] [Algebra A B] [Algebra B C]
[IsScalarTower A B C] (f : C ≃ₐ[A] D) :
letI := (f.toAlgHom.restrictDomain B).toRingHom.toAlgebra
... |
315 | leanexplore_declaration | leanexplore:380972 | leanexplore_sqlite | leanexplore_declarations | @[simps! apply symm_apply]
def AlgEquiv.extendScalars {A C D : Type*} (B : Type*) [CommSemiring A] [CommSemiring C]
[CommSemiring D] [Algebra A C] [Algebra A D] [CommSemiring B] [Algebra A B] [Algebra B C]
[IsScalarTower A B C] (f : C ≃ₐ[A] D) :
letI := (f.toAlgHom.restrictDomain B).toRingHom.toAlgebra |
375 | leanexplore_declaration | leanexplore:380974 | leanexplore_sqlite | leanexplore_declarations | theorem IsBiscalar.commutes {S : Type*} (S' : Type*) {A B : Type*} [CommSemiring S']
[CommSemiring S] [Semiring A] [Semiring B] [Algebra S' A] [Algebra S' B] [Algebra S A]
[Algebra S B] (f : A →ₐ[S] B) [IsBiscalar S S' f] (s : S') :
f (algebraMap S' A s) = algebraMap S' B s := by
simpa [Algebra.algebraMap... |
265 | leanexplore_declaration | leanexplore:380975 | leanexplore_sqlite | leanexplore_declarations | /--
Produces an `S'`-linear algebra map from an `S`-linear algebra map `f : A →ₐ[S] B` which also
has scalars `S'`.
-/
def AlgHom.changeScalars (f : A →ₐ[S] B) [IsBiscalar S S' f] :
A →ₐ[S'] B where
__ := f
commutes' (r : _) := by simp [IsBiscalar.commutes] |
140 | leanexplore_declaration | leanexplore:380976 | leanexplore_sqlite | leanexplore_declarations | theorem AlgHom.changeScalars_apply (f : A →ₐ[S] B) [IsBiscalar S S' f] (a : A) :
changeScalars S' f a = f a := by
simp [changeScalars] |
444 | leanexplore_declaration | leanexplore:380977 | leanexplore_sqlite | leanexplore_declarations | /--
Produces an `S'`-linear algebra isomorphism from an `S`-linear algebra isomorphism `f : A ≃ₐ[S] B`
which also has scalars `S'`.
-/
def AlgEquiv.changeScalars (f : A ≃ₐ[S] B) [IsBiscalar S S' f.toAlgHom] :
A ≃ₐ[S'] B where
__ := AlgHom.changeScalars S' f.toAlgHom
invFun := f.invFun
left_inv (a : A) := by s... |
627 | leanexplore_declaration | leanexplore:380978 | leanexplore_sqlite | leanexplore_declarations | @[simp]
lemma Subalgebra.sup_includeLeft_includeRight_eq_top
{k A B : Type*} [CommSemiring k]
[Semiring A] [Algebra k A] [Semiring B] [Algebra k B] :
Algebra.TensorProduct.includeLeft.range ⊔ Algebra.TensorProduct.includeRight.range
= (⊤ : Subalgebra k (A ⊗[k] B)) := by
ext x
simp only [Algebra.mem_... |
543 | leanexplore_declaration | leanexplore:380979 | leanexplore_sqlite | leanexplore_declarations | lemma Subalgebra.center_tensorProduct_eq_inf
{k : Type*} [Field k]
{A B : Type*} [Ring A] [Algebra k A] [Ring B] [Algebra k B] :
Subalgebra.center k (A ⊗[k] B)
= (Algebra.TensorProduct.map (Subalgebra.center k A).val (AlgHom.id k B)).range
⊓ (Algebra.TensorProduct.map (AlgHom.id k A) (Subalgebra.c... |
1,416 | leanexplore_declaration | leanexplore:380980 | leanexplore_sqlite | leanexplore_declarations | lemma Submodule.tensorProduct_inf_eq_range_map
{k : Type*} [Field k]
{A B : Type*} [AddCommGroup A] [Module k A] [AddCommGroup B] [Module k B]
(S : Submodule k A) (T : Submodule k B) :
LinearMap.range (TensorProduct.map S.subtype LinearMap.id) ⊓
LinearMap.range (TensorProduct.map LinearMap.id T.subt... |
473 | leanexplore_declaration | leanexplore:380981 | leanexplore_sqlite | leanexplore_declarations | lemma Subalgebra.tensorProduct_inf_eq_range_map
{k : Type*} [Field k]
{A B : Type*} [Ring A] [Algebra k A] [Ring B] [Algebra k B]
(S : Subalgebra k A) (T : Subalgebra k B) :
(Algebra.TensorProduct.map S.val (AlgHom.id k B)).range ⊓
(Algebra.TensorProduct.map (AlgHom.id k A) T.val).range =
(Algeb... |
403 | leanexplore_declaration | leanexplore:380982 | leanexplore_sqlite | leanexplore_declarations | lemma Subalgebra.center_tensorProduct
{k : Type*} [Field k]
{A B : Type*} [Ring A] [Algebra k A] [Ring B] [Algebra k B] :
Subalgebra.center k (A ⊗[k] B)
= (Algebra.TensorProduct.map (Subalgebra.center k A).val
(Subalgebra.center k B).val).range := by
have := Subalgebra.center_tensorProduct_eq_in... |
723 | leanexplore_declaration | leanexplore:380983 | leanexplore_sqlite | leanexplore_declarations | instance (k A B : Type*) [Field k] [CommRing A] [Ring B]
[Algebra k A] [Algebra k B]
[Algebra.IsCentral k B] :
Algebra.IsCentral A (A ⊗[k] B) := ⟨fun x hx ↦ by
have :
x ∈ (Algebra.TensorProduct.map
(Subalgebra.center k A).val (Subalgebra.center k B).val).range := by
simpa [← Subalgebra.c... |
217 | leanexplore_declaration | leanexplore:380984 | leanexplore_sqlite | leanexplore_declarations | /-- If `M` acts on `A` then `FixedPoints M A` is the type of elements
of `A` which are fixed elementwise by all of `M`. -/
def MulAction.FixedPoints (M A : Type*) [SMul M A] : Type _ :=
{a : A // ∀ m : M, m • a = a} |
218 | leanexplore_declaration | leanexplore:380985 | leanexplore_sqlite | leanexplore_declarations | /-- If `M` acts on `A` then `FixedPoints M A` is the type of elements
of `A` which are fixed elementwise by all of `M`. -/
def AddAction.FixedPoints (M A : Type*) [VAdd M A] : Type _ :=
{a : A // ∀ m : M, m +ᵥ a = a} |
136 | leanexplore_declaration | leanexplore:380986 | leanexplore_sqlite | leanexplore_declarations | @[to_additive (attr := ext)]
lemma ext [SMul M A] (a b : FixedPoints M A) (h : a.1 = b.1) : a = b := by
cases a; cases b; subst h; rfl |
103 | leanexplore_declaration | leanexplore:380987 | leanexplore_sqlite | leanexplore_declarations | @[to_additive (attr := ext)]
lemma ext [SMul M A] (a b : FixedPoints M A) (h : a.1 = b.1) : a = b := by |
91 | leanexplore_declaration | leanexplore:380990 | leanexplore_sqlite | leanexplore_declarations | @[to_additive]
instance [SMul M A] : CoeHead (FixedPoints M A) A where
coe := Subtype.val |
317 | leanexplore_declaration | leanexplore:380992 | leanexplore_sqlite | leanexplore_declarations | instance addZeroClass [AddZeroClass A] [DistribSMul M A] : AddZeroClass (FixedPoints M A) where
zero := ⟨0, smul_zero⟩
add a b := ⟨(a : A) + b, fun m ↦ by
rw [smul_add m (a : A) b, a.prop m, b.prop m]⟩
zero_add a := by
ext
exact zero_add (a : A)
add_zero a := by
ext
exact add_zero (a : A) |
97 | leanexplore_declaration | leanexplore:380993 | leanexplore_sqlite | leanexplore_declarations | lemma zero_def [AddZeroClass A] [DistribSMul M A] : (0 : FixedPoints M A) = ⟨0, smul_zero⟩ := rfl |
125 | leanexplore_declaration | leanexplore:380994 | leanexplore_sqlite | leanexplore_declarations | lemma coe_add [AddZeroClass A] [DistribSMul M A] (a b : FixedPoints M A) :
((a + b : FixedPoints M A) : A) = a + b := rfl |
437 | leanexplore_declaration | leanexplore:380995 | leanexplore_sqlite | leanexplore_declarations | instance addMonoid [AddMonoid A] [DistribSMul M A] : AddMonoid (FixedPoints M A) where
__ := addZeroClass
add_assoc a b c := by
ext
exact add_assoc (a : A) b c
nsmul n a := ⟨AddMonoid.nsmul n a, by
intro m
induction n with
| zero => simp
| succ n IH => rw [AddMonoid.nsmul_succ, smul_add, I... |
174 | leanexplore_declaration | leanexplore:380996 | leanexplore_sqlite | leanexplore_declarations | instance addCommMonoid [AddCommMonoid A] [DistribSMul M A] : AddCommMonoid (FixedPoints M A) where
__ := addMonoid
add_comm a b := by
ext
exact add_comm (a : A) b |
164 | leanexplore_declaration | leanexplore:380997 | leanexplore_sqlite | leanexplore_declarations | theorem smul_neg [AddGroup A] [DistribSMul M A] (r : M) (x : A) : r • -x = -(r • x) :=
eq_neg_of_add_eq_zero_left <| by rw [← smul_add, neg_add_cancel, smul_zero] |
579 | leanexplore_declaration | leanexplore:380998 | leanexplore_sqlite | leanexplore_declarations | instance addGroup [AddGroup A] [DistribSMul M A] : AddGroup (FixedPoints M A) where
__ := addMonoid
neg a := ⟨-(a : A), fun m ↦ by
rw [smul_neg, a.prop]⟩
zsmul n a := ⟨SubNegMonoid.zsmul n a.1, fun m ↦ by
induction n with
| zero => simp
| succ n _ => simp_all [add_zsmul, a.prop]
| pred i IH => simp_al... |
170 | leanexplore_declaration | leanexplore:380999 | leanexplore_sqlite | leanexplore_declarations | instance addCommGroup [AddCommGroup A] [DistribSMul M A] : AddCommGroup (FixedPoints M A) where
__ := addGroup
add_comm a b := by
ext
simp [coe_add, add_comm] |
646 | leanexplore_declaration | leanexplore:381000 | leanexplore_sqlite | leanexplore_declarations | instance module [AddCommGroup A] [Module R A] [DistribSMul M A] [SMulCommClass M R A] :
Module R (FixedPoints M A) where
__ := addCommGroup M A
smul r a := ⟨r • a.1, fun m ↦ by rw [smul_comm, a.2]⟩
one_smul a := by
ext
exact one_smul R (a : A)
mul_smul r s a:= by
ext
... |
785 | leanexplore_declaration | leanexplore:381001 | leanexplore_sqlite | leanexplore_declarations | /--
`IsDirectLimit f g` states that `P` is the direct limit of the system `(M i, f i j hij)`.
It requires:
* `surj`: says every element of `P` comes from some `M i` via the canonical map `g i`.
* `inj`: says that if two elements of (possibly different) modules `M i` and `M j` map
to the same element of `P`, then they... |
109 | leanexplore_declaration | leanexplore:381002 | leanexplore_sqlite | leanexplore_declarations | @[mk_iff] class IsDirectLimit [DirectedSystem M f] : Prop where
surj : ∀ m : P, ∃ i, ∃ mi : M i, g i mi = m |
113 | leanexplore_declaration | leanexplore:381003 | leanexplore_sqlite | leanexplore_declarations | theorem compatibility' {i j hij} (x : M i) : g j (f i j hij x) = g i x :=
IsDirectLimit.compatibility i j hij x |
178 | leanexplore_declaration | leanexplore:381004 | leanexplore_sqlite | leanexplore_declarations | theorem is_injective {i j} {mi : M i} {mj : M j} (h : g i mi = g j mj) :
∃ (k : ι) (hik : i ≤ k) (hjk : j ≤ k), f i k hik mi = f j k hjk mj :=
IsDirectLimit.inj i j mi mj h |
86 | leanexplore_declaration | leanexplore:381005 | leanexplore_sqlite | leanexplore_declarations | theorem is_surjective : ∀ m : P, ∃ i, ∃ mi : M i, g i mi = m :=
IsDirectLimit.surj f |
280 | leanexplore_declaration | leanexplore:381006 | leanexplore_sqlite | leanexplore_declarations | /--
Given an element `p : P` in the direct limit, `preimage_index f g p` returns an index in `ι` such
that `p` is in the image of the map `g (preimage_index f g p) : M (preimage_index f g p) →ₗ[R] P`.
-/
noncomputable def preimage_index (p : P) : ι := (is_surjective f g p).choose |
277 | leanexplore_declaration | leanexplore:381007 | leanexplore_sqlite | leanexplore_declarations | /--
Given an element `p : P` in the direct limit, `preimage f g p` returns an element of
`M (preimage_index f g p)` that maps to `p` under `g (preimage_index f g p)`.
-/
noncomputable def preimage (p : P) : M (preimage_index f g p) :=
(is_surjective f g p).choose_spec.choose |
133 | leanexplore_declaration | leanexplore:381008 | leanexplore_sqlite | leanexplore_declarations | theorem image_preimage (p : P) :
g (preimage_index f g p) (preimage f g p) = p :=
(is_surjective f g p).choose_spec.choose_spec |
292 | leanexplore_declaration | leanexplore:381009 | leanexplore_sqlite | leanexplore_declarations | /--
Construct a map `P₁ → P₂` from a direct limit by sending each element to its preimage
in some component `M i` and applying `g₂ i`. Used to define morphisms out of direct limits.
-/
noncomputable def lift [IsDirectLimit f g₁] (p : P₁) : P₂ :=
g₂ (preimage_index f g₁ p) (preimage f g₁ p) |
310 | leanexplore_declaration | leanexplore:381010 | leanexplore_sqlite | leanexplore_declarations | @[simp]
theorem lift_of [IsDirectLimit f g₁] (Hg : ∀ i j hij x, g₂ j (f i j hij x) = g₂ i x) {i} (x) :
(lift f g₁ g₂) (g₁ i x) = g₂ i x := by
dsimp [lift]
have ⟨k, hpk, hik, h_eq⟩ := is_injective f g₁ (image_preimage f g₁ (g₁ i x))
rw [← Hg i k hik x, ← Hg (preimage_index f g₁ (g₁ i x)) k hpk, h_eq] |
468 | leanexplore_declaration | leanexplore:381011 | leanexplore_sqlite | leanexplore_declarations | /-- Any two direct limits of the same directed system are isomorphic. -/
noncomputable def Equiv [h₁ : IsDirectLimit f g₁] [h₂ : IsDirectLimit f g₂] :
P₁ ≃ P₂ where
toFun := lift f g₁ g₂
invFun := lift f g₂ g₁
left_inv x := by
obtain ⟨i, mi, hmi⟩ := h₁.surj x
rw [← hmi]
simp only [compatibility', ... |
198 | leanexplore_declaration | leanexplore:381012 | leanexplore_sqlite | leanexplore_declarations | @[simp]
lemma Equiv_apply (i : ι) (x : M i) [IsDirectLimit f g₁] [IsDirectLimit f g₂] :
Equiv f g₁ g₂ (g₁ i x) = g₂ i x := by
simp [Equiv, Equiv.coe_fn_mk, compatibility', implies_true, lift_of] |
221 | leanexplore_declaration | leanexplore:381013 | leanexplore_sqlite | leanexplore_declarations | @[simp]
lemma linearEquiv_symm_apply (i : ι) (x : M i) [IsDirectLimit f g₁]
[IsDirectLimit f g₂] : (Equiv f g₁ g₂).symm (g₂ i x) = g₁ i x := by
simp [Equiv, Equiv.coe_fn_symm_mk, compatibility', implies_true, lift_of] |
417 | leanexplore_declaration | leanexplore:381014 | leanexplore_sqlite | leanexplore_declarations | instance [DecidableEq ι] [Nonempty ι] :
IsDirectLimit (f · · ·) (Module.DirectLimit.of R ι M f ·) where
surj := Module.DirectLimit.exists_of
inj i j mi mj h := by
apply_fun Module.DirectLimit.linearEquiv _ _ at h
simp_rw [Module.DirectLimit.linearEquiv_of, Quotient.eq] at h
simpa [DirectLimit.setoid... |
119 | leanexplore_declaration | leanexplore:381015 | leanexplore_sqlite | leanexplore_declarations | theorem compatibility_module {i j hij} (x : M i) : g₁ j (f i j hij x) = g₁ i x :=
compatibility' (f · · ·) (g₁ · ·) x |
1,689 | leanexplore_declaration | leanexplore:381016 | leanexplore_sqlite | leanexplore_declarations | /--
The universal property of the direct limit: define a linear map from the direct limit
by giving a compatible family of linear maps from the components.
Each element of the limit is sent according to its representative in some component.
-/
noncomputable def lift
(Hg : ∀ i j hij x, g₂ j (f i j hij x) = g₂ i x) :... |
235 | leanexplore_declaration | leanexplore:381017 | leanexplore_sqlite | leanexplore_declarations | @[simp]
theorem lift_of (Hg : ∀ i j hij x, g₂ j (f i j hij x) = g₂ i x) {i} (x) :
(Module.lift f g₁ g₂ Hg) (g₁ i x) = g₂ i x := by
dsimp [lift, IsDirectLimit.lift_of]
exact IsDirectLimit.lift_of (f · · ·) (g₁ · ·) (g₂ · ·) Hg x |
428 | leanexplore_declaration | leanexplore:381018 | leanexplore_sqlite | leanexplore_declarations | theorem lift_unique (F : P₁ →ₗ[R] P₂) (x) : F x = (Module.lift f g₁ (fun i ↦ F.comp <| g₁ i)
(fun i j hij x ↦ by
simp only [LinearMap.coe_comp, Function.comp_apply]
exact LinearMap.congr_arg (IsDirectLimit.compatibility (f := (f · · ·))
(g := (g₁ · ·)) i j hij x))) x := by
simp only [lift, IsDir... |
293 | leanexplore_declaration | leanexplore:381019 | leanexplore_sqlite | leanexplore_declarations | /-- Any two direct limits of the same directed system are isomorphic. -/
noncomputable def linearEquiv : P₁ ≃ₗ[R] P₂ :=
{ IsDirectLimit.Equiv (f · · ·) (g₁ · ·) (g₂ · ·) with
map_add' := (lift f g₁ g₂ h₂.compatibility).map_add'
map_smul' := (lift f g₁ g₂ h₂.compatibility).map_smul'} |
154 | leanexplore_declaration | leanexplore:381020 | leanexplore_sqlite | leanexplore_declarations | @[simp]
lemma linearEquiv_apply (i : ι) (x : M i) :
linearEquiv f g₁ g₂ (g₁ i x) = g₂ i x :=
IsDirectLimit.Equiv_apply (f · · ·) (g₁ · ·) (g₂ · ·) i x |
177 | leanexplore_declaration | leanexplore:381021 | leanexplore_sqlite | leanexplore_declarations | @[simp]
lemma linearEquiv_symm_apply (i : ι) (x : M i) :
(linearEquiv f g₁ g₂).symm (g₂ i x) = g₁ i x :=
IsDirectLimit.linearEquiv_symm_apply (f · · ·) (g₁ · ·) (g₂ · ·) i x |
196 | leanexplore_declaration | leanexplore:381022 | leanexplore_sqlite | leanexplore_declarations | class IsQuaternionAlgebra (F : Type*) [Field F] (D : Type*) [Ring D] [Algebra F D] : Prop where
isSimpleRing : IsSimpleRing D
isCentral : Algebra.IsCentral F D
dim_four : Module.rank F D = 4 |
73 | leanexplore_declaration | leanexplore:381023 | leanexplore_sqlite | leanexplore_declarations | instance : Module.Finite F D := FiniteDimensional.of_rank_eq_nat dim_four |
369 | leanexplore_declaration | leanexplore:381024 | leanexplore_sqlite | leanexplore_declarations | /-- A quaternion algebra `D` over a number field `F` is totally definite if
`D ⊗[F, v] ℝ` is isomorphic to the Hamilton quaternions ℍ for all real places `v` (that is,
for all ring homomorphisms `F → ℝ`). -/
def IsTotallyDefinite : Prop := ∀ (v : InfinitePlace F) (hv : v.IsReal),
letI : Algebra F ℝ := (embedding_of_i... |
254 | leanexplore_declaration | leanexplore:381025 | leanexplore_sqlite | leanexplore_declarations | /-- If `S` is a subring of `R`, then `S` can be viewed as an `S`-submodule of `R`. -/
def Subring.toSubmodule (S : Subring R) : Submodule S R where
__ := S
smul_mem' x y h := by
rw [smul_def, smul_eq_mul]
apply S.mul_mem (SetLike.coe_mem x) h |
129 | leanexplore_declaration | leanexplore:381026 | leanexplore_sqlite | leanexplore_declarations | theorem inv_pos [IsStrictOrderedRing S] {x : F} (h : 0 < v x) : 0 < v x⁻¹ := by
rwa [IsAbsoluteValue.abv_inv v, _root_.inv_pos] |
208 | leanexplore_declaration | leanexplore:381027 | leanexplore_sqlite | leanexplore_declarations | theorem ne_zero_of_lt_one {F S : Type*} [Field F] [Field S] [LinearOrder S] [IsStrictOrderedRing S]
{v : AbsoluteValue F S} {x : F} (hv : 1 < v x) : x ≠ 0 :=
fun hx => by linarith [map_zero v ▸ hx ▸ hv] |
385 | leanexplore_declaration | leanexplore:381028 | leanexplore_sqlite | leanexplore_declarations | theorem isNontrivial_iff_exists_abv_gt_one {F S : Type*} [Field F] [Field S] [LinearOrder S]
[IsStrictOrderedRing S] {v : AbsoluteValue F S} :
v.IsNontrivial ↔ ∃ x, 1 < v x := by
refine ⟨fun h => h.exists_abv_gt_one, fun ⟨x, hx⟩ => ?_⟩
refine ⟨x⁻¹, ?_, ?_⟩
· simp only [ne_eq, inv_eq_zero]; exact ne_zero_o... |
132 | leanexplore_declaration | leanexplore:381029 | leanexplore_sqlite | leanexplore_declarations | theorem inv_lt_one_iff {x : F} : v x⁻¹ < 1 ↔ x = 0 ∨ 1 < v x := by
simp only [map_inv₀, inv_lt_one_iff₀, AbsoluteValue.nonpos_iff] |
162 | leanexplore_declaration | leanexplore:381030 | leanexplore_sqlite | leanexplore_declarations | theorem mul_one_div_lt_iff {y : F} (x : F) (h : 0 < v y) :
v (x * (1 / y)) < 1 ↔ v x < v y := by
rw [map_mul, one_div, map_inv₀, mul_inv_lt_iff₀ h, one_mul] |
186 | leanexplore_declaration | leanexplore:381031 | leanexplore_sqlite | leanexplore_declarations | theorem mul_one_div_pow_lt_iff {n : ℕ} {y : F} (x : F) (h : 0 < v y) :
v (x * (1 / y ^ n)) < 1 ↔ v x < v y ^ n :=
map_pow v _ _ ▸ mul_one_div_lt_iff x (map_pow v _ _ ▸ pow_pos h n) |
201 | leanexplore_declaration | leanexplore:381032 | leanexplore_sqlite | leanexplore_declarations | theorem one_lt_of_lt_one (h : ∀ x, v x < 1 → w x < 1) {x : F} (hv : 1 < v x) : 1 < w x :=
(inv_lt_one_iff.1 <| h _ <| map_inv₀ v _ ▸ inv_lt_one_of_one_lt₀ hv).resolve_left <|
ne_zero_of_lt_one hv |
199 | leanexplore_declaration | leanexplore:381033 | leanexplore_sqlite | leanexplore_declarations | theorem one_lt_iff_of_lt_one_iff (h : ∀ x, v x < 1 ↔ w x < 1) (x : F) : 1 < v x ↔ 1 < w x :=
⟨fun hv => one_lt_of_lt_one (fun _ => (h _).1) hv,
fun hw => one_lt_of_lt_one (fun _ => (h _).2) hw⟩ |
248 | leanexplore_declaration | leanexplore:381034 | leanexplore_sqlite | leanexplore_declarations | theorem eq_one_of_lt_one_iff (h : ∀ x, v x < 1 ↔ w x < 1) {x : F} (hv : v x = 1) : w x = 1 := by
cases eq_or_lt_of_le (not_lt.1 <| (h x).not.1 hv.not_lt) with
| inl hl => rw [← hl]
| inr hr => rw [← one_lt_iff_of_lt_one_iff h] at hr; linarith |
189 | leanexplore_declaration | leanexplore:381035 | leanexplore_sqlite | leanexplore_declarations | theorem eq_one_iff_of_lt_one_iff (h : ∀ x, v x < 1 ↔ w x < 1) (x : F) : v x = 1 ↔ w x = 1 :=
⟨fun hv => eq_one_of_lt_one_iff h hv, fun hw => eq_one_of_lt_one_iff (fun _ => (h _).symm) hw⟩ |
95 | leanexplore_declaration | leanexplore:381036 | leanexplore_sqlite | leanexplore_declarations | theorem pos_of_pos {a : F} (hv : 0 < v a) : 0 < w a := by
rwa [AbsoluteValue.pos_iff] at hv ⊢ |
124 | leanexplore_declaration | leanexplore:381037 | leanexplore_sqlite | leanexplore_declarations | theorem one_add_pow_le (a : R) (n : ℕ) : v (1 + a ^ n) ≤ 1 + v a ^ n :=
le_trans (v.add_le _ _) (by rw [map_one, map_pow]) |
130 | leanexplore_declaration | leanexplore:381038 | leanexplore_sqlite | leanexplore_declarations | theorem one_sub_pow_le (a : R) (n : ℕ) : 1 - v a ^ n ≤ v (1 + a ^ n) :=
le_trans (by rw [map_one, map_pow]) (v.le_add 1 (a ^ n)) |
109 | leanexplore_declaration | leanexplore:381039 | leanexplore_sqlite | leanexplore_declarations | instance [NumberField K] : NumberField (WithAbs v) :=
NumberField.of_ringEquiv K (WithAbs v) (equiv v).symm |
228 | leanexplore_declaration | leanexplore:381040 | leanexplore_sqlite | leanexplore_declarations | theorem Fin.pairwise_forall_two {n : ℕ} {r : Fin (n + 2) → Fin (n + 2) → Prop} (h : Pairwise r) :
Pairwise (r.onFun ![0, Fin.last _]) := by
apply Pairwise.comp_of_injective h
simp [Function.Injective, Fin.forall_fin_two] |
144 | leanexplore_declaration | leanexplore:381041 | leanexplore_sqlite | leanexplore_declarations | theorem Real.exists_floor' (x : ℝ) : ∃ ub : ℤ, (ub : ℝ) ≤ x ∧ ∀ z : ℤ, (z : ℝ) ≤ x → z ≤ ub :=
⟨⌊x⌋, Int.floor_le x, fun _ ↦ Int.le_floor.mpr⟩ |
125 | leanexplore_declaration | leanexplore:381042 | leanexplore_sqlite | leanexplore_declarations | lemma Int.eq_floor {a : ℝ} {b : ℤ} (h1 : 0 ≤ a - b) (h2 : a - b < 1) : b = ⌊a⌋ := by
rw [eq_comm, Int.floor_eq_iff]
grind |
100 | leanexplore_declaration | leanexplore:381043 | leanexplore_sqlite | leanexplore_declarations | theorem pi_subset_pi_of_superset (h : s₁ ⊆ s₂) : pi s₂ t ⊆ pi s₁ t :=
fun _ hx i hi ↦ hx i <| h hi |
296 | leanexplore_declaration | leanexplore:381044 | leanexplore_sqlite | leanexplore_declarations | theorem DoubleCoset.isOpen_doubleCoset {G : Type*} [Group G] [TopologicalSpace G]
[ContinuousMul G] (H K : Subgroup G) (hK : IsOpen (K : Set G)) (i : DoubleCoset.Quotient H K) :
IsOpen (X := G) (doubleCoset (Quotient.out i) H K) := by
simpa only [doubleCoset] using (IsOpen.mul_left hK) |
398 | leanexplore_declaration | leanexplore:381045 | leanexplore_sqlite | leanexplore_declarations | theorem DoubleCoset.isOpen_doubleCoset_rightrel_mk {G : Type*} [Group G] [TopologicalSpace G]
[ContinuousMul G] (H K : Subgroup G) (hK : IsOpen (K : Set G)) (i : DoubleCoset.Quotient H K) :
IsOpen (Quot.mk ⇑(QuotientGroup.rightRel H) '' doubleCoset (Quotient.out i) H K) := by
apply (QuotientGroup.isOpenQuotie... |
72 | leanexplore_declaration | leanexplore:381046 | leanexplore_sqlite | leanexplore_declarations | scoped[GroupTheory] notation "[" G ":" H "]" => @AddSubgroup.index G _ H |
332 | leanexplore_declaration | leanexplore:381047 | leanexplore_sqlite | leanexplore_declarations | lemma Countable.of_module_finite (R M : Type*) [Semiring R] [Countable R]
[AddCommMonoid M] [Module R M] [Module.Finite R M] : Countable M := by
obtain ⟨n, s, h⟩ := Module.Finite.exists_fin (R := R) (M := M)
rw [← Set.countable_univ_iff]
have : Countable (Submodule.span R (Set.range s)) := inferInstance
rwa... |
96 | leanexplore_declaration | leanexplore:381048 | leanexplore_sqlite | leanexplore_declarations | instance (K : Type*) [Field K] [NumberField K] : Countable K :=
Countable.of_module_finite ℚ K |
233 | leanexplore_declaration | leanexplore:381049 | leanexplore_sqlite | leanexplore_declarations | lemma mulLeft_conj (K : Type*) [Field K] [Algebra k K] (n : ℕ) (x : K ⊗[k] D)
(e : K ⊗[k] D ≃ₐ[K] Matrix (Fin n) (Fin n) K) :
LinearMap.mulLeft K (e x) = e ∘ₗ LinearMap.mulLeft K x ∘ₗ e.symm := by
apply LinearMap.ext
simp |
236 | leanexplore_declaration | leanexplore:381050 | leanexplore_sqlite | leanexplore_declarations | lemma mulRight_conj (K : Type*) [Field K] [Algebra k K] (n : ℕ) (x : K ⊗[k] D)
(e : K ⊗[k] D ≃ₐ[K] Matrix (Fin n) (Fin n) K) :
LinearMap.mulRight K (e x) = e ∘ₗ LinearMap.mulRight K x ∘ₗ e.symm := by
apply LinearMap.ext
simp |
409 | leanexplore_declaration | leanexplore:381051 | leanexplore_sqlite | leanexplore_declarations | lemma mulLeft_conj_ofLinear (K : Type*) [Field K] (n : ℕ) (N : Matrix (Fin n) (Fin n) K) :
(((Matrix.ofLinearEquiv K ≪≫ₗ Matrix.transposeLinearEquiv (Fin n) (Fin n) K K).symm.toLinearMap
∘ₗ (LinearMap.mulLeft K N) ∘ₗ ((Matrix.ofLinearEquiv K) ≪≫ₗ Matrix.transposeLinearEquiv
(Fin n) (Fin n) K K).toLinearMap)... |
463 | leanexplore_declaration | leanexplore:381052 | leanexplore_sqlite | leanexplore_declarations | lemma mulRight_conj_ofLinear (K : Type*) [Field K] (n : ℕ) (N : Matrix (Fin n) (Fin n) K) :
((Matrix.ofLinearEquiv K).symm.toLinearMap ∘ₗ
LinearMap.mulRight K N ∘ₗ (Matrix.ofLinearEquiv K).toLinearMap :
(Fin n → Fin n → K) →ₗ[K] (Fin n) → Fin n → K) =
LinearMap.pi fun i ↦ ((fun _ ↦ Matrix.toLin' N.trans... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.