Skip to content

Commit 3e66d22

Browse files
grunwegriccardobrasca
authored andcommitted
chore(positivity): tests for two more extensions (leanprover-community#37511)
I believe these extensions are not explicitly tested yet: I've added one as I wondered about this today.
1 parent ca0d1d5 commit 3e66d22

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

MathlibTest/positivity.lean

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,9 @@ example (ha : a ≠ 0) : 0 < a * 37 := by positivity
286286
example (ha : a ≠ 0) (hb : b ≠ 0) : 0 < a * b := by positivity
287287
example (ha : a ≠ 0) : 0 ≤ a * b := by positivity
288288

289+
example : 0 ≤ a.toReal := by positivity
290+
example {a' : ℝ≥0} : 0 ≤ ENNReal.ofNNReal a' := by positivity
291+
289292
/- https://leanprover.zulipchat.com/#narrow/channel/287929-mathlib4/topic/Adding.20superfluous.20hypotheses.20makes.20positivity.20fail/with/568774307 -/
290293
example {x y : ℝ≥0∞} : x + y + 10 := by positivity
291294
example {x y : ℝ≥0∞} (hx : x ≠ 0) : x + y + 10 := by positivity

0 commit comments

Comments
 (0)