Zulip Chat Archive
Stream: Is there code for X?
Topic: add_lt_of_lt_sub
Yaël Dillies (Sep 16 2021 at 13:05):
Is there any typeclass between ℕ and ∀ a b c, a < b - c → a + c < b
? That is, a typeclass instantiated by ℕ that implies ∀ a b c, a < b - c → a + c < b
.
Yaël Dillies (Sep 16 2021 at 13:06):
Whoops sorry this should be in #Is there code for X?
Notification Bot (Sep 16 2021 at 13:09):
This topic was moved here from #general > add_lt_of_lt_sub by Johan Commelin
Yaël Dillies (Sep 16 2021 at 13:10):
The closest lemma is docs#add_lt_of_lt_sub_right, but that assumes a group.
Kevin Buzzard (Sep 16 2021 at 13:21):
If you're not assuming an add_group
, where is sub
coming from? What non-groups have a sub other than nat?
Eric Wieser (Sep 16 2021 at 13:22):
pi / finsupp / dfinsupp with nat in the codomain
Yaël Dillies (Sep 16 2021 at 13:23):
and all the stuff respecting has_ordered_sub
Yaël Dillies (Sep 16 2021 at 13:23):
I don't care where it's coming from, I only want its properties.
Yury G. Kudryashov (Sep 16 2021 at 22:00):
I think that has_ordered_sub
+ linear_order
should imply a < b - c <-> a + c < b
. Just try rw [← not_le, ← not_le, sub_le_iff_right]
.
Last updated: Dec 20 2023 at 11:08 UTC