Zulip Chat Archive

Stream: new members

Topic: Set membership


Anders Skovsted Buch (Feb 17 2023 at 04:29):

How can I get rid of "sorry"? Figured it out.

import tactic

example : 4  { n :  | n < 10  n < 10} :=
begin
  split; linarith,
end

example : 4  { n :  | n < 10} :=
begin
  -- sorry,
  have : 4 < 10, linarith,
  exact this,
end

Kevin Buzzard (Feb 17 2023 at 05:24):

Do you understand how the previous proof worked?

Kyle Miller (Feb 17 2023 at 11:19):

It might help to see what's going on if you reduce the definitions first. I haven't checked, dsimp might work for this as a first tactic in each example.

Anders Skovsted Buch (Feb 17 2023 at 17:49):

Thanks! This helped:

#reduce 4  {n :  | n < 10}

Last updated: Dec 20 2023 at 11:08 UTC