Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(analysis/normed_space/lattice_ordered_group): Lattice ordered group lemmas #9548

Closed
wants to merge 38 commits into from
Closed
Show file tree
Hide file tree
Changes from 18 commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
4df1e20
Useful abs lemma
mans0954 Oct 3, 2021
73089ed
div_mul_cancel -> div_mul_cancel'
mans0954 Oct 4, 2021
c47e718
inv_div -> inv_div'
mans0954 Oct 4, 2021
65eeb8d
inv_div -> inv_div'
mans0954 Oct 4, 2021
5dbadc6
Add to_additives
mans0954 Oct 4, 2021
639995b
Progress on two_inf_sub_two_inf_le
mans0954 Oct 4, 2021
1ac43ee
Complete proof
mans0954 Oct 4, 2021
bc1698a
Add documentation
mans0954 Oct 4, 2021
ea66ea1
Shorten some lines
mans0954 Oct 4, 2021
26bfa2f
Fix duplicate arguments
mans0954 Oct 4, 2021
6da7e4b
Fix line lengths
mans0954 Oct 4, 2021
f178c67
Spacing
mans0954 Oct 5, 2021
080a1b1
Whitespace
mans0954 Oct 5, 2021
33f9629
Whitespace
mans0954 Oct 5, 2021
8385a06
Remove label
mans0954 Oct 5, 2021
70745c6
Remove `by exact`
mans0954 Oct 5, 2021
c7aa7cd
Fix docstrings
mans0954 Oct 6, 2021
72ced73
Include multiplicative docstrings for definitions
mans0954 Oct 6, 2021
1cb4a10
Merge branch 'master' into lattice-ordered-group-lemmas
mans0954 Oct 24, 2021
22429c0
Introduce has_pos_part and has_neg_part classes
mans0954 Oct 24, 2021
9a3e6de
Remove verbose docstrings
mans0954 Oct 24, 2021
4e4bb80
Add missing docstrings
mans0954 Oct 25, 2021
f26e27c
Remove duplicate arguments
mans0954 Oct 25, 2021
eb9eae7
Merge branch 'master' into lattice-ordered-group-lemmas
mans0954 Nov 1, 2021
0b3a907
Add two_sup_sub_two_sup_le
mans0954 Nov 12, 2021
18b0ff0
Merge branch 'master' into lattice-ordered-group-lemmas
mans0954 Nov 12, 2021
5b050b3
Merge branch 'master' into lattice-ordered-group-lemmas
mans0954 Nov 14, 2021
54f0c3b
Remove editing artifact
mans0954 Nov 15, 2021
bdb7c7f
Convert sub_add_cancel and neg_sub to multaplicative form
mans0954 Nov 22, 2021
884d84d
Merge remote-tracking branch 'origin/inv_div_and_div_mul_cancel' into…
mans0954 Nov 22, 2021
fa127df
Introduce has_pos_part and has_neg_part classes
mans0954 Oct 24, 2021
99eb482
Fix cherry-pick artifact
mans0954 Nov 22, 2021
e22753e
Add missing docstrings
mans0954 Oct 25, 2021
aeef4b9
Remove duplicate arguments
mans0954 Oct 25, 2021
7e92206
Merge remote-tracking branch 'origin/pos_and_neg_parts' into lattice-…
mans0954 Nov 22, 2021
78475d7
Merge branch 'master' into lattice-ordered-group-lemmas
mans0954 Nov 24, 2021
1d615e5
Revert "Remove verbose docstrings"
mans0954 Nov 26, 2021
13b2467
Merge branch 'master' into lattice-ordered-group-lemmas
mans0954 Nov 30, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
16 changes: 9 additions & 7 deletions src/algebra/group/basic.lean
Expand Up @@ -338,6 +338,15 @@ calc a / 1 = a * 1⁻¹ : div_eq_mul_inv a 1
... = a * 1 : congr_arg _ one_inv
... = a : mul_one a

@[simp, to_additive neg_sub]
lemma inv_div' (a b : G) : (a / b)⁻¹ = b / a :=
inv_eq_of_mul_eq_one ( by rw [div_eq_mul_inv, div_eq_mul_inv, mul_assoc, inv_mul_cancel_left,
mul_right_inv])

@[simp, to_additive sub_add_cancel]
lemma div_mul_cancel' (a b : G) : a / b * b = a :=
by rw [div_eq_mul_inv, inv_mul_cancel_right a b]

end group

section add_group
Expand All @@ -348,9 +357,6 @@ variables {G : Type u} [add_group G] {a b c d : G}
@[simp] lemma sub_self (a : G) : a - a = 0 :=
by rw [sub_eq_add_neg, add_right_neg a]

@[simp] lemma sub_add_cancel (a b : G) : a - b + b = a :=
by rw [sub_eq_add_neg, neg_add_cancel_right a b]

@[simp] lemma add_sub_cancel (a b : G) : a + b - b = a :=
by rw [sub_eq_add_neg, add_neg_cancel_right a b]

Expand All @@ -367,10 +373,6 @@ mt eq_of_sub_eq_zero h
@[simp] lemma sub_neg_eq_add (a b : G) : a - (-b) = a + b :=
by rw [sub_eq_add_neg, neg_neg]

@[simp] lemma neg_sub (a b : G) : -(a - b) = b - a :=
neg_eq_of_add_eq_zero (by rw [sub_eq_add_neg, sub_eq_add_neg, add_assoc, neg_add_cancel_left,
add_right_neg])

local attribute [simp] add_assoc

lemma add_sub (a b c : G) : a + (b - c) = a + b - c :=
Expand Down