lean2/src/kernel/free_vars.h
Leonardo de Moura 2c3fc09e3c Add has_free_vars/closed function
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2013-07-24 14:56:31 -07:00

15 lines
388 B
C++

/*
Copyright (c) 2013 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
*/
#pragma once
#include "expr.h"
namespace lean {
/**
\brief Return true if the given expression has free variables.
*/
bool has_free_vars(expr const & a);
inline bool closed(expr const & a) { return !has_free_vars(a); }
}