Zulip Chat Archive

Stream: new members

Topic: exact tactic


Joseph O (Apr 23 2022 at 00:21):

I looked at the documentation for exact, but I still cant understand how this works image.png

Arthur Paulino (Apr 23 2022 at 00:55):

If you check the definition of mul you'll see that m * 1 can be unfolded to m * 0 + m, which can be simplified to 0 + m. Thus, what you have to prove becomes 0 + m = m, which is exactly zero_add

Jireh Loreaux (Apr 23 2022 at 00:56):

"can be simplified" -> "is definitionally equal to"

Arthur Paulino (Apr 23 2022 at 00:58):

The exact tactic is flexible enough to unify things that are definitionally equal but aren't spelled in the exact same way

Joseph O (Apr 25 2022 at 15:48):

Arthur Paulino said:

If you check the definition of mul you'll see that m * 1 can be unfolded to m * 0 + m, which can be simplified to 0 + m. Thus, what you have to prove becomes 0 + m = m, which is exactly zero_add

now my question is where does it simplify this under the hood?

Notification Bot (Apr 25 2022 at 15:48):

Joseph O has marked this topic as unresolved.


Last updated: Dec 20 2023 at 11:08 UTC