Skip to content
This repository was archived by the owner on Jul 24, 2024. It is now read-only.

Commit fbfe26d

Browse files
committed
feat(linear_algebra/finite_dimensional): dim_add_le_dim_add_dim (#16301)
Add a `finrank` version of a lemma that already exists for `module.rank`. The proof is exactly the same as the proof of the `module.rank` version, and, as with the previous `dim_sup_add_dim_inf_eq` lemma that it uses, so is the name (but in the `submodule` namespace in the case of the `finrank` versions).
1 parent 86e9362 commit fbfe26d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/linear_algebra/finite_dimensional.lean

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -861,6 +861,11 @@ begin
861861
exact key
862862
end
863863

864+
lemma dim_add_le_dim_add_dim (s t : submodule K V)
865+
[finite_dimensional K s] [finite_dimensional K t] :
866+
finrank K (s ⊔ t : submodule K V) ≤ finrank K s + finrank K t :=
867+
by { rw [← dim_sup_add_dim_inf_eq], exact self_le_add_right _ _ }
868+
864869
lemma eq_top_of_disjoint [finite_dimensional K V] (s t : submodule K V)
865870
(hdim : finrank K s + finrank K t = finrank K V)
866871
(hdisjoint : disjoint s t) : s ⊔ t = ⊤ :=

0 commit comments

Comments
 (0)