Zulip Chat Archive
Stream: new members
Topic: Using hypothesis with definition
Jelmer Firet (Oct 29 2021 at 16:02):
Suppose I have
let g : ℕ → ℕ := λ i, if f i = m then f n else f i,
How can I then later use this to rewrite a hypothesis
g i = ...
to the definition of g i so I can then apply split_ifs?
Both
unfold g
unfold (g i)
Don't seem to work.
Eric Wieser (Oct 29 2021 at 16:03):
dsimp only [g] at h
should work
Jelmer Firet (Oct 29 2021 at 16:05):
Thanks
Last updated: Dec 20 2023 at 11:08 UTC