Zulip Chat Archive

Stream: general

Topic: docs#ennreal.coe_nonneg


Yaël Dillies (Aug 19 2022 at 19:54):

Why does docs#ennreal.coe_nonneg exist? Both sides are always true :thinking:

Jireh Loreaux (Aug 19 2022 at 20:02):

To remove the cast with norm_cast? :shrug:

Yaël Dillies (Aug 19 2022 at 20:07):

@Sebastien Gouezel, git blames you for #464.

Sebastien Gouezel (Aug 19 2022 at 20:18):

You have my blessing to remove it!

Damiano Testa (Aug 19 2022 at 20:30):

I would like to point out that both sides being always true is not necessarily a reason for a lemma being superfluous: docs#not_false_iff.

Damiano Testa (Aug 19 2022 at 20:31):

In this specific case, though, I agree that this lemma is probably superfluous! :smile:

Eric Wieser (Aug 19 2022 at 22:12):

Arguably those lemmas are superfluous anyway, as simp I think knows how to convert things to ↔ true form

Eric Rodriguez (Aug 19 2022 at 22:13):

(docs#iff_true + docs#true_iff)

Eric Wieser (Aug 19 2022 at 22:26):

(I meant in the other direction, IIRC simp can use lemma foo : P to rewrite f P to f true)


Last updated: Dec 20 2023 at 11:08 UTC