2013-07-23 18:31:31 +00:00
|
|
|
/*
|
|
|
|
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);
|
2013-07-26 18:43:53 +00:00
|
|
|
/**
|
|
|
|
\brief Return true if the given expression does not have free variables.
|
|
|
|
*/
|
2013-07-23 18:31:31 +00:00
|
|
|
inline bool closed(expr const & a) { return !has_free_vars(a); }
|
|
|
|
}
|