Zulip Chat Archive
Stream: lean4
Topic: Syntax for defining functions with implicit variables
Frédéric Dupuis (Dec 20 2022 at 03:57):
What is the correct syntax to do the following?
example : ∀ {x : Nat}, True := fun x => trivial
(Obviously, this is for an example where I actually need to use x
in the proof.)
Mario Carneiro (Dec 20 2022 at 04:31):
fun {x} => trivial
or @fun x => trivial
Last updated: Dec 20 2023 at 11:08 UTC