Zulip Chat Archive

Stream: batteries

Topic: exfalso puzzle


Kevin Buzzard (Jan 17 2024 at 13:44):

Is it possible to solve a goal with the exfalso tactic?

Ruben Van de Velde (Jan 17 2024 at 13:59):

I claim yes

Mario Carneiro (Jan 17 2024 at 14:16):

Solution

Eric Wieser (Jan 17 2024 at 14:48):

Is this a bug in docs#Std.Tactic.tacticExfalso ? Should it use refine False.elim ?_ instead of apply False.elim?

Eric Wieser (Jan 17 2024 at 14:50):

std4#540, assuming the answer is yes

Kevin Buzzard (Jan 17 2024 at 15:14):

Of course this was a student in my class who discovered this (with precisely Mario's example, which is an early problem in my course notes), and then asked me how the proof worked, and initially I was like "..."

Kim Morrison (Jan 18 2024 at 00:39):

Personally I think that this behaviour is fine. It's no more or less confusing than apply already is (i.e. that it might apply an unexpected number of arguments).

Eric Wieser (Jan 18 2024 at 01:00):

apply is indeed confusing, but I don't think other tactics should inherit this confusion by leaking implementation details if it's easy to avoid that

Eric Wieser (Jan 18 2024 at 01:01):

It's certainly a very minor bug, since the only way this can cause confusion is by unexpectedly solving things

Mario Carneiro (Jan 18 2024 at 03:24):

unexpectedly solving things is bad for tactics that use exfalso as a component and have some expectation of what it does

Kevin Buzzard (Jan 18 2024 at 06:26):

It certainly confused the undergraduate who had only started using lean a few days before and had been told it would change the goal to False.


Last updated: May 02 2025 at 03:31 UTC