leanprover-community / mathlib

  • Home
  • Zulip archive
  • API documentation
  • Lean web editor
  • Links

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: May 02 2025 at 03:31 UTC

Theme Simple by wildflame © 2016 Powered by jekyll