Zulip Chat Archive

Stream: new members

Topic: exists.some is eq to itself


Marcus Rossel (Jul 15 2021 at 10:20):

I'm stuck on this:

import data.finmap

example (f : finmap (λ _ : , )) (n : ) (h :  m, f.lookup n = some m) :
f.lookup n = some h.some :=
begin
  obtain m, hm := h,
  simp only [hm],

end

Since m is obtained from ∃ m, f.lookup n = some m, there must be some way to prove that m = (∃ m, f.lookup n = some m).some. But I can't figure out how.

Eric Wieser (Jul 15 2021 at 11:39):

apply classical.some_spec

Eric Wieser (Jul 15 2021 at 11:40):

generalize_proofs h2, makes it a bit easier to understand the goal state


Last updated: Dec 20 2023 at 11:08 UTC