Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 5 additions & 7 deletions APAP/Mathlib/Analysis/Real/Sqrt.lean
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,14 @@ public section
namespace Real
variable {x : ℝ}

@[simp] lemma sqrt_le_self : √x ≤ x ↔ x = 0 ∨ 1 ≤ x where
mp := sorry
mpr := by
rintro (rfl | hx)
· simp
· exact sqrt_le_iff.2 ⟨zero_le_one.trans hx, le_self_pow₀ hx two_ne_zero⟩
@[simp] lemma sqrt_le_self : √x ≤ x ↔ x = 0 ∨ 1 ≤ x := by
obtain hx | hx := le_or_gt x 0
· simp [sqrt_eq_zero_of_nonpos hx, le_antisymm_iff, hx, not_le.2 (hx.trans_lt zero_lt_one)]
· simp [sqrt_le_iff, sq, le_mul_iff_one_le_right hx, hx.le, hx.ne']

@[simp] lemma le_sqrt_self : x ≤ √x ↔ x ≤ 1 := by
obtain hx | hx := le_or_gt x 0
· exact iff_of_true (hx.trans x.sqrt_nonneg) (hx.trans zero_le_one)
· simp [hx.trans]
· rw [le_sqrt' hx, sq, mul_le_iff_le_one_left hx]

end Real
Loading