Zulip Chat Archive

Stream: general

Topic: Buggy `nth_rewrite`?


Violeta Hernández (May 28 2022 at 04:15):

The following proof breaks when the @ is removed, even though no arguments are actually specified.
https://github.com/leanprover-community/mathlib/blob/5eb68b5ca1cce3e5fd3cb3975e3af2b9d4f6149a/src/set_theory/ordinal/arithmetic.lean#L2210

Violeta Hernández (May 28 2022 at 04:16):

It gives a "no goals" error

Mario Carneiro (May 28 2022 at 04:17):

it isn't too surprising that something like that could happen; @foo is equivalent to foo _ _ so the first one allows rewrites with any applications of foo and the second one only allows rewrites with one particular (undetermined) set of arguments

Violeta Hernández (May 28 2022 at 04:20):

Weird

Violeta Hernández (May 28 2022 at 04:20):

So, this is normal/expected behavior?


Last updated: Dec 20 2023 at 11:08 UTC