Zulip Chat Archive

Stream: general

Topic: Filter : only props won't stick


Kevin Buzzard (Mar 10 2021 at 20:14):

I have just discovered the brilliant filter : only props on VS Code which I think will be really helpful for beginners in my class tomorrow. But whenever I type in another tactic it switches back to "no filter".
Can I somehow stop this happening?

Bryan Gin-ge Chen (Mar 10 2021 at 20:17):

Ah, I think the widget mode filters don't have persistent settings associated to them. This probably wouldn't be too hard to add, but I'm a bit swamped at the moment.

Would the text mode filters work for you?

Bryan Gin-ge Chen (Mar 10 2021 at 20:18):

Wait, nevermind. There's no good way to filter for only props with the text mode tactic state.

Bryan Gin-ge Chen (Mar 10 2021 at 20:28):

Hmm, the filter dropdown is written in Lean (here's the mathlib version and here's the core Lean version). Unfortunately, I don't have enough experience with Lean widgets yet to know how to make that setting persist. Maybe some of the widget superstars in your Discord could help?

Kevin Buzzard (Mar 11 2021 at 07:17):

I'll ask around! If I wanted to open this as an issue, which repo does it get filed under? When dealing with a composite of G-module homs I have seven instances to deal with and they're clogging up the fun part. I'm sure the analysts must have run into this

Mario Carneiro (Mar 11 2021 at 07:29):

This probably requires changes in the lean repo

Mario Carneiro (Mar 11 2021 at 07:29):

the vscode extension may also need to participate

Kevin Buzzard (Mar 11 2021 at 07:32):

It's a really nice way of setting lean into "proof mode" when all definitions are done. Students filling in sorrys in my course might be tempted to always keep instances off for the entire workshop if this were possible because they always know that G is a group and that M, N, P are G-modules

Bryan Gin-ge Chen (Mar 11 2021 at 15:33):

Pinging @Edward Ayers :pray:

Edward Ayers (Mar 11 2021 at 21:40):

Yeah this is in my todo list but I think it would require some fiddling with core lean

Edward Ayers (Mar 11 2021 at 21:42):

It's a core lean issue. A quick mathlib fix would be to add an option that the filter widget then reads.

Kevin Buzzard (Mar 12 2021 at 06:36):

There was a minor riot in the class when they all discovered this cool "only display the maths" option and then found that it didn't stick!

Filippo A. E. Nuccio (Jun 30 2021 at 12:26):

@Kevin Buzzard Kevin, did you finally find a way to "freeze" the Infoview to only props?

Kevin Buzzard (Jun 30 2021 at 12:29):

No, I just completely forgot about the problem

Kevin Buzzard (Jun 30 2021 at 12:30):

I just had a polite British whinge and then shut up, that's what i usually do :-)

Kevin Buzzard (Jun 30 2021 at 12:30):

or maybe I did and then forgot about the solution

Filippo A. E. Nuccio (Jun 30 2021 at 12:31):

I see, I am just fighting against my screen which does not fit the seventeen instances I have..

Kevin Buzzard (Jun 30 2021 at 12:34):

I can confirm that my laptop's only props is not sticking, but in plain text mode (non-widget) "goals only" sticks.


Last updated: Dec 20 2023 at 11:08 UTC