Zulip Chat Archive

Stream: new members

Topic: rewrite and oangles interacting oddly


Riley Riles (Mar 15 2025 at 21:09):

Hi! My proofstate currently has
```calceq : ↑π + 2 • ∡ C S K = 2 • ∡ C S B + ↑π
calc1 : 2 • ∡ C S B + ↑π = ↑π + 2 • ∡ C S B

and I attempted to run
```rewrite [calc1] at calceq```
but get the error message "tactic 'rewrite' failed, did not find instance of the pattern in the target expression
2 • ∡ C S B + ↑π." I am confused as to why this is; what am I missing?

Thank you in advance!

Aaron Liu (Mar 15 2025 at 21:12):

Can you provide a #mwe?

Riley Riles (Mar 15 2025 at 21:20):

When attempting to provide a minimum working example, the code spontaneously started working again. I'm not really sure why that happened but I guess I'll take it?

Aaron Liu (Mar 15 2025 at 21:23):

It might have been the types. Try doing set_option pp.numericTypes true


Last updated: May 02 2025 at 03:31 UTC