refactor(ordered_group): replace 'match' with 'obtain'
This commit is contained in:
parent
613281d622
commit
64cc710ff7
1 changed files with 2 additions and 3 deletions
|
@ -152,9 +152,8 @@ section
|
||||||
have Hbz : b = 0, from le.antisymm Hb' Hb,
|
have Hbz : b = 0, from le.antisymm Hb' Hb,
|
||||||
and.intro Haz Hbz)
|
and.intro Haz Hbz)
|
||||||
(assume Hab : a = 0 ∧ b = 0,
|
(assume Hab : a = 0 ∧ b = 0,
|
||||||
match Hab with
|
obtain Ha' Hb', from Hab,
|
||||||
| and.intro Ha' Hb' := by rewrite [Ha', Hb', add_zero]
|
by rewrite [Ha', Hb', add_zero])
|
||||||
end)
|
|
||||||
|
|
||||||
theorem le_add_of_nonneg_of_le (Ha : 0 ≤ a) (Hbc : b ≤ c) : b ≤ a + c :=
|
theorem le_add_of_nonneg_of_le (Ha : 0 ≤ a) (Hbc : b ≤ c) : b ≤ a + c :=
|
||||||
!zero_add ▸ add_le_add Ha Hbc
|
!zero_add ▸ add_le_add Ha Hbc
|
||||||
|
|
Loading…
Reference in a new issue