Zulip Chat Archive
Stream: new members
Topic: What tactic do I use to show squares are non-negative?
YH (Dec 11 2019 at 06:58):
I want to do
lemma sq_geq_zero (a : ℝ) : (a ^ 2 ≥ 0) := sorry
as an exercise, but I don't know any tactic for this.
(or is there a way to cases a
as either positive, negative or zero?)
Johan Commelin (Dec 11 2019 at 07:09):
There is the lemma le_total a 0
Johan Commelin (Dec 11 2019 at 07:10):
@YH You could do cases on that
Johan Commelin (Dec 11 2019 at 07:10):
Or the tactic by_cases h : a ≥ 0
Johan Commelin (Dec 11 2019 at 07:10):
@YH You could do cases on that
Last updated: Dec 20 2023 at 11:08 UTC