Zulip Chat Archive

Stream: general

Topic: Fixing diamonds about `sup`/`inf`


Yury G. Kudryashov (Sep 12 2021 at 14:33):

Some time ago I created lean#609 (merged, not yet released). Yesterday I started porting mathlib to lean-master in order to actually fix these diamonds. Help is very welcome.

Eric Rodriguez (Sep 12 2021 at 14:44):

for those interested, branch#LO-min-max

Eric Rodriguez (Sep 12 2021 at 14:45):

two things; you can actually use elan override to not have to change the leanpkg.toml file. secondly, do you have a cache somewhere, or should I just recompile locally?

Bryan Gin-ge Chen (Sep 12 2021 at 14:47):

When we make a release we'll have to replace the changed line in leanpkg.toml with the next version of Lean anyways, so I think this is the easiest way.

Bryan Gin-ge Chen (Sep 12 2021 at 14:48):

leanproject and elan should work with this branch locally, I think.

Bryan Gin-ge Chen (Sep 12 2021 at 14:49):

BTW I can make a new release of Lean whenever we think it's ready.

Eric Rodriguez (Sep 12 2021 at 14:49):

I think @Mario Carneiro probably wants to get his tactic/AST PR in first, I guess, but I'm not too sure how far that is from done

Mario Carneiro (Sep 12 2021 at 14:50):

Daniel found a bug in testing but I don't think anything else has appeared since that was fixed

Mario Carneiro (Sep 12 2021 at 14:51):

so it's probably fine to merge

Yury G. Kudryashov (Sep 12 2021 at 14:51):

@Eric Rodriguez I changed leanpkg.toml to make CI build oleans for me.

Eric Rodriguez (Sep 12 2021 at 14:51):

ooh, I didn't know CI would build with custom lean

Bryan Gin-ge Chen (Sep 12 2021 at 15:43):

Mario Carneiro said:

Daniel found a bug in testing but I don't think anything else has appeared since that was fixed

Sorry, I'm having a little trouble interpreting this. I take it another PR to core Lean to fix this is forthcoming but not in the near future?

Mario Carneiro (Sep 12 2021 at 16:30):

No, a commit was added to the tactic PR lean#614, it has not been merged yet

Eric Rodriguez (Sep 12 2021 at 17:32):

your last commit seems to have built locally for me, Yury, so it may be done!

Bryan Gin-ge Chen (Sep 12 2021 at 20:06):

I'm planning to release Lean 3.33.0c on the current master this evening (3-4 hours from now) so if there are any objections let me know before then.

Yaël Dillies (Sep 12 2021 at 20:50):

If you can also rename int.sub_one_le_of_lt to int.sub_one_lt_of_le and int.lt_of_sub_one_le to int.le_of_sub_one_lt, that would be great. But that's a random suggestion.

Bryan Gin-ge Chen (Sep 12 2021 at 20:52):

Do you mind opening a PR?

Yaël Dillies (Sep 12 2021 at 20:52):

How shall I? This is not the usual mathlib process, right?

Bryan Gin-ge Chen (Sep 12 2021 at 20:52):

It's OK to open the PR from a fork. We can run bors try to check that nothing breaks.

Yaël Dillies (Sep 12 2021 at 20:53):

Ahah. Never used a fork :sweat_smile:

Bryan Gin-ge Chen (Sep 12 2021 at 20:56):

Actually if you turn on GitHub Actions in your fork settings (it might be on by default, I don't remember), that will also check your commits.

Eric Rodriguez (Sep 13 2021 at 10:12):

OK, so is lean#616 the last remaining PR before a new release?

Eric Rodriguez (Sep 13 2021 at 10:14):

neither of those lemmas seem to be used in mathlib either, which means that Yury's branch should be fine

Yaël Dillies (Sep 13 2021 at 10:15):

I'm using them soon :wink:

Eric Rodriguez (Sep 13 2021 at 10:16):

you can fix that :b


Last updated: Dec 20 2023 at 11:08 UTC