Skip to content

Commit

Permalink
feat(algebra/module): sub_mem_sup for modules over rings (#15733)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexjbest committed Jul 28, 2022
1 parent 1065169 commit 8b87d33
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/algebra/module/submodule/lattice.lean
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,14 @@ show T ≤ S ⊔ T, from le_sup_right
lemma add_mem_sup {S T : submodule R M} {s t : M} (hs : s ∈ S) (ht : t ∈ T) : s + t ∈ S ⊔ T :=
add_mem (mem_sup_left hs) (mem_sup_right ht)

lemma sub_mem_sup {R' M' : Type*} [ring R'] [add_comm_group M'] [module R' M']
{S T : submodule R' M'} {s t : M'} (hs : s ∈ S) (ht : t ∈ T) :
s - t ∈ S ⊔ T :=
begin
rw sub_eq_add_neg,
exact add_mem_sup hs (neg_mem ht),
end

lemma mem_supr_of_mem {ι : Sort*} {b : M} {p : ι → submodule R M} (i : ι) (h : b ∈ p i) :
b ∈ (⨆i, p i) :=
have p i ≤ (⨆i, p i) := le_supr p i,
Expand Down

0 comments on commit 8b87d33

Please sign in to comment.