Zulip Chat Archive

Stream: lean4

Topic: Theorem Order


Marcus Rossel (Oct 09 2024 at 12:09):

I have a bug in the egg tactic which I am absolutely mystified by. The detailed reproducible version is that the following MWE 1 works, while MWE 2 fails.

MWE 1

MWE 2

The more high-level description of the problem is the following: I have two theorems, T1 and T2, which I want to solve using a tactic t. When I state and prove the theorems in the following order

theorem T1 ... := by t ...
theorem T2 ... := by t ...

... everything works as expected. But if I reverse the order to

theorem T2 ... := by t ...
theorem T1 ... := by t ...

... then the call to t in T1 behaves differently and fails to prove the theorem. How is this possible - that is, which kinds of contexts can lead to this difference in behavior?


Last updated: May 02 2025 at 03:31 UTC