leanprover-community / mathlib

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

Zulip Chat Archive

Stream: lean4

Topic: Checking if an expression involves an fvar


Adam Topaz (Feb 05 2024 at 19:51):

Suppose I have some e : Expr, and some id : FVarId in some local context. Is there some convenient way to check whether the expr associated to id actually appears somewhere in e?

Matthew Ballard (Feb 05 2024 at 19:53):

docs#Lean.Expr.containsFVar ?

Adam Topaz (Feb 05 2024 at 19:54):

Great! Thanks!


Last updated: May 02 2025 at 03:31 UTC

Theme Simple by wildflame © 2016 Powered by jekyll