Zulip Chat Archive

Stream: general

Topic: variable a problem


view this post on Zulip Kevin Buzzard (Mar 08 2018 at 21:21):

This is presumably well-known but it has just bitten one of my undergraduates. They wrote have Ht2 : (a < nat.succ t) → (nat.succ t < c) → (a < c), in the middle of a tactic proof, with a,t,c nats, and get a type mismatch error: term a has type nat.succ t < c : Prop. Chris tells me that this is because you can't use have in a tactic proof with an implies sign and a variable a. That sounds like a bug to me. Is it officially not a bug though?

view this post on Zulip Sebastian Ullrich (Mar 08 2018 at 21:27):

Oh, it is https://github.com/leanprover/lean/issues/1822

view this post on Zulip Kevin Buzzard (Mar 08 2018 at 21:29):

So we have to wait for the parser refactoring?

view this post on Zulip Sebastian Ullrich (Mar 08 2018 at 21:37):

Yes


Last updated: May 06 2021 at 22:13 UTC