Zulip Chat Archive

Stream: lean4

Topic: Conversions on an application head


Son Ho (Jun 13 2023 at 14:31):

If I have a term of the shape f x, is there a conversion which allows me to apply rewritings to f? I see I can use arg or congr to modify x, but I couldn't find a conversion which allows me to access the head of an application.

Jireh Loreaux (Jun 13 2023 at 14:59):

there's docs4#congr_fun (or docs4#congrFun), or you can just use the rw tactic.

Jireh Loreaux (Jun 13 2023 at 15:00):

If you are dealing with a bundled morphism from mathlib, then you may need docs4#FunLike.congr_fun

Son Ho (Jun 13 2023 at 15:27):

I hadn't understood we could directly apply theorems when performing conversions... That's perfect, thanks!


Last updated: Dec 20 2023 at 11:08 UTC