Zulip Chat Archive

Stream: new members

Topic: Using suffices in tactic


view this post on Zulip Ken Roe (Jul 29 2018 at 05:21):

theorem testit (f:) (s:) :
    (f,s).fst=f :=
begin
   do {
       t  target,
       trace t.to_raw_fmt,
       suffices xx:(1==2),admit
   },
end

Can someone correct the syntax of the above. I would like to use "suffices" rather than "change" for a tactic. I get the following error:

test.lean:13:26: error
invalid expression, 'by', 'begin', '{', or 'from' expected
test.lean:13:26: error
invalid suffices-expression, term
  admit
has type
  tactic unit : Type
but is expected to have type
  1 == 2 : Prop

view this post on Zulip Kenny Lau (Jul 29 2018 at 05:31):

@Ken Roe what are your imports?

view this post on Zulip Ken Roe (Jul 29 2018 at 05:36):

open tactic
open monad
open expr
open smt_tactic.

view this post on Zulip Kenny Lau (Jul 29 2018 at 05:36):

...

view this post on Zulip Simon Hudon (Jul 29 2018 at 07:54):

those are not imports, they are open statements


Last updated: May 14 2021 at 07:19 UTC