Zulip Chat Archive

Stream: mathlib4

Topic: Data.Finsupp.Defs mathlib4#1807


Johan Commelin (Jan 24 2023 at 07:46):

This file is terribly borken. It's using a rather technical mix of classical and decidable stuff. :fear:

Eric Wieser (Jan 24 2023 at 09:14):

Proposal: throw out all the classical stuff in the Lean 3 version of this file first ;)

Johan Commelin (Jan 24 2023 at 09:15):

Proposal: come up with a realistic strategy to make sure that the port is done before Christmas ;)

Eric Wieser (Jan 24 2023 at 09:16):

I have a half done branch already that tries the above...

Johan Commelin (Jan 24 2023 at 09:34):

@Eric Wieser What is the age of that branch?

Eric Wieser (Jan 24 2023 at 09:34):

A few days

Johan Commelin (Jan 24 2023 at 09:34):

And it half fixes that one file, or half fixes all of mathlib 3?

Eric Wieser (Jan 24 2023 at 09:35):

Well I can really comment if it fixes anything that's causing trouble in lean 4

Eric Wieser (Jan 24 2023 at 09:36):

Half-"fixes" mathlib 3 for some optimistic meaning of half

Eric Wieser (Jan 24 2023 at 09:37):

I think probably applying @Kyle Miller's classical hack to mathlib 3 would make things more amenable to porting

Johan Commelin (Jan 24 2023 at 09:38):

Which hack is that?

Eric Wieser (Jan 24 2023 at 09:38):

A vm_override of the tactic executor that prevents classical leaking

Johan Commelin (Jan 24 2023 at 09:39):

Is there a PR?

Eric Wieser (Jan 24 2023 at 09:39):

No, but there is a zulip thread with working code

Johan Commelin (Jan 24 2023 at 09:39):

Link?

Eric Wieser (Jan 24 2023 at 09:39):

Mobile makes it hard to get links I'm afraid

Johan Commelin (Jan 24 2023 at 09:41):

Aha: https://leanprover.zulipchat.com/#narrow/stream/113488-general/topic/.60classical.60.20attribute.20leakage

Johan Commelin (Jan 24 2023 at 09:41):

Thanks for the ping

Eric Wieser (Jan 24 2023 at 16:17):

Johan Commelin said:

And it half fixes that one file, or half fixes all of mathlib 3?

#18274 is the PR, it currently applies to just data/finsupp/* (the optimistic half)

Eric Wieser (Jan 25 2023 at 09:01):

I don't think that PR is worth continuing with in it's current form

Eric Wieser (Jan 25 2023 at 09:02):

Eric Wieser said:

I think probably applying Kyle Miller's classical hack to mathlib 3 would make things more amenable to porting

But this change should be in mathport soon

Johan Commelin (Jan 25 2023 at 09:02):

Will that change the output of mathport by a lot?

Johan Commelin (Jan 25 2023 at 09:03):

Should we trigger a new mathport run?

Eric Wieser (Jan 25 2023 at 09:33):

What time of day does mathport run against mathlib3?

Johan Commelin (Jan 25 2023 at 09:34):

0 mod 12, I think

Ruben Van de Velde (Jan 25 2023 at 09:34):

Of whose day? :)

Johan Commelin (Jan 25 2023 at 09:34):

But I don't know which timezone. Probably UTC?

Eric Wieser (Jan 25 2023 at 09:37):

Johan Commelin said:

Will that change the output of mathport by a lot?

23 changes in that file, all of them the word classical and line wrapping

Eric Wieser (Jan 25 2023 at 09:37):

So could probably get away without it for that file

Johan Commelin (Jan 25 2023 at 09:38):

Eric Wieser said:

I don't think that PR is worth continuing with in it's current form

Do you have other reasons for :this: besides those classicals?

Eric Wieser (Jan 25 2023 at 09:40):

To be clear, that refers to a different PR

Johan Commelin (Jan 25 2023 at 09:40):

Then I don't understand this thread anymore :see_no_evil:

Eric Wieser (Jan 25 2023 at 09:40):

#18277 is the one in master adding 23 classicals that isn't quite in mathport

Eric Wieser (Jan 25 2023 at 09:41):

#18274 is the one that I think is junk

Johan Commelin (Jan 25 2023 at 09:42):

Ok, so I can manually add those 23 classicals now.

Eric Wieser (Jan 25 2023 at 09:42):

#18277 is definitely worth waiting for in downstream files, but the gains in finsupp/defs are marginal

Eric Wieser (Jan 25 2023 at 09:43):

It also has some fixes I need to forward-port

Johan Commelin (Jan 27 2023 at 09:11):

This PR is starting to converge

Johan Commelin (Jan 27 2023 at 09:17):

File is error-free

Johan Commelin (Jan 27 2023 at 09:22):

Fix most automatic stuff

Johan Commelin (Jan 27 2023 at 09:22):

Need to go to seminar now.

Johan Commelin (Jan 27 2023 at 10:40):

Fixed lints

Johan Commelin (Jan 27 2023 at 12:57):

CI is happy


Last updated: Dec 20 2023 at 11:08 UTC