leanprover-community / mathlib

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

Zulip Chat Archive

Stream: new members

Topic: Subgoal for each argument of a function


Calvin Lee (Jul 26 2022 at 03:53):

Hi!
I'm trying to prove a goal r when I have a function f : p → q → r
is there any clever tactic to create subgoals for p and q instead of just doing something like

have pf₁ : p, { ... },
have pf₂ : q, { ... },
exact f pf₁ pf₂

Roberto Alvarez (Jul 26 2022 at 03:58):

You can do refine f _ _ or simply apply f


Last updated: May 02 2025 at 03:31 UTC

Theme Simple by wildflame © 2016 Powered by jekyll