Zulip Chat Archive

Stream: lean4

Topic: Function.uncurry_curry does not require funext


Tasiro (Feb 11 2025 at 04:47):

I just noticed that since Lean supports eta-conversion, Function.uncurry_curry does not actually require a funext, because rfl is enough. That should probably also be the case for the same theorem for Sigma in Mathlib.

Does this actually make a difference somewhere (maybe because funext uses Quot.sound)?

Eric Wieser (Feb 14 2025 at 22:35):

Changing proofs to rfl is generally a (small) improvement, since then they can be used by dsimp.

Eric Wieser (Feb 14 2025 at 22:36):

But otherwise de-funexting proofs is not worth anyone's time to review


Last updated: May 02 2025 at 03:31 UTC