Zulip Chat Archive
Stream: new members
Topic: unknown identifier use
Martin Dvořák (Aug 01 2021 at 09:46):
I am in the "script mode" and my current goal is ⊢ ∃ (x : ℕ), x.pred = 0.
When I write use int.one, as the next command, VS Code Lean Infoview tells me: unknown identifier 'use'.
Any idea why this could be happening?
Martin Dvořák (Aug 01 2021 at 09:51):
Do I need to import some library in order to have the command use available to me?
Patrick Massot (Aug 01 2021 at 09:53):
use is defined in mathlib
Patrick Massot (Aug 01 2021 at 09:53):
import tactic will be more than enough
Martin Dvořák (Aug 01 2021 at 10:06):
Oh, thanks! I didn't know it I had to import tactic. I incorrectly assumed that use was a keyword, not a tactic. My bad!
Kevin Buzzard (Aug 01 2021 at 10:36):
The "script mode" is tactic mode, everything you're writing there like use or apply is really running tactic.interactive.use or tactic.interactive.apply etc.
Martin Dvořák (Aug 01 2021 at 10:38):
Thank you!
Last updated: May 02 2025 at 03:31 UTC