blob: eb7ec7e2f36aa961dfe0573104cd17736a3fd35d [file]
/-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
module
prelude
public import Lean.Expr
public section
namespace Lean
def markBorrowed (e : Expr) : Expr :=
mkAnnotation `borrowed e
def isMarkedBorrowed (e : Expr) : Bool :=
annotation? `borrowed e |>.isSome
end Lean