Zulip Chat Archive

Stream: lean4

Topic: apf function/tactic?


Siddhartha Gadgil (Jun 06 2021 at 03:45):

Sorry for a basic question: what is the "apf" function in lean 4, deducing f(a) = f(b) from a = b (I searched documentation and could not easily find it). Alternatively a tactic for this.

Mario Carneiro (Jun 06 2021 at 03:52):

that theorem is usually called congrArg

Mario Carneiro (Jun 06 2021 at 03:52):

I don't know what "apf" is, is that the HoTT name?

Mario Carneiro (Jun 06 2021 at 03:52):

the tactic is congr in lean 3 but I'm not sure lean 4 has it yet

Siddhartha Gadgil (Jun 06 2021 at 03:53):

Thanks. Just found that in the source. Yes congrArg is what I need.
Yes, the "HoTT" name.

Sebastian Ullrich (Jun 06 2021 at 07:28):

Rewriting with rw or simp usually obviates the need for congrArg/Fun


Last updated: Dec 20 2023 at 11:08 UTC