Zulip Chat Archive

Stream: lean4

Topic: Introing hypotheses and lets simultaneously


Bolton Bailey (Dec 03 2023 at 07:43):

Here is an MWE

example : (a : ) -> (b : ) ->
  let c := a + b ; c = b + a := by
  -- intros -- works, but no names
  -- intros a b ; intros hc -- works, but takes two invocations
  intros a b hc --tactic 'introN' failed, insufficient number of binders

Is this a bug?

Thomas Murrills (Dec 03 2023 at 08:15):

This doesn’t fail on lean web for me currently. What version of lean are you on?

Bolton Bailey (Dec 03 2023 at 08:16):

I am unfortunately in an update which is going horribly wrong, so I'm not sure anymore, sorry. 4.3.0 potentially?

Kyle Miller (Dec 03 2023 at 17:11):

It works for me locally,

#eval Lean.versionString -- "4.3.0"

Last updated: Dec 20 2023 at 11:08 UTC