leanprover-community / mathlib

  • Home
  • Zulip archive
  • API documentation
  • Lean web editor
  • Links

Zulip Chat Archive

Stream: new members

Topic: bind free variable for decide


Simon Daniel (Sep 10 2024 at 16:19):

hello,
If i have a free Variable, that is bound to a value by a proposition, the decide tactic fails. Is there a way to use decide anyway here?

theorem test (x:Nat) (q: x=3): x+1=4 := by decide

Kyle Miller (Sep 10 2024 at 17:54):

Use subst_vars before running decide (or, rather, rfl)

Simon Daniel (Sep 10 2024 at 18:08):

thanks!


Last updated: May 02 2025 at 03:31 UTC

Theme Simple by wildflame © 2016 Powered by jekyll