Zulip Chat Archive

Stream: new members

Topic: Using suffices in tactic


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

Kenny Lau (Jul 29 2018 at 05:31):

@Ken Roe what are your imports?

Ken Roe (Jul 29 2018 at 05:36):

open tactic
open monad
open expr
open smt_tactic.

Kenny Lau (Jul 29 2018 at 05:36):

...

Simon Hudon (Jul 29 2018 at 07:54):

those are not imports, they are open statements


Last updated: Dec 20 2023 at 11:08 UTC