chore: remove transparency_mode::None
This commit is contained in:
parent
975188cee1
commit
dce1de3905
4 changed files with 3 additions and 8 deletions
|
|
@ -2267,7 +2267,7 @@ class validate_and_collect_lhs_mvars : public replace_visitor {
|
|||
of definitions compiled using the equation compiler */
|
||||
{
|
||||
/* Try without use delta reduction */
|
||||
type_context_old::transparency_scope scope(ctx(), transparency_mode::None);
|
||||
type_context_old::transparency_scope scope(ctx(), transparency_mode::Reducible); // it was None
|
||||
expr new_e = ctx().whnf(e);
|
||||
if (new_e != e) return some_expr(new_e);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -73,8 +73,6 @@ context_cacheless::context_cacheless(abstract_context_cache const & c, bool):
|
|||
}
|
||||
|
||||
bool context_cacheless::is_transparent(type_context_old & ctx, transparency_mode m, constant_info const & info) {
|
||||
if (m == transparency_mode::None)
|
||||
return false;
|
||||
name const & n = info.get_name();
|
||||
if (get_proj_info(ctx, n))
|
||||
return false;
|
||||
|
|
|
|||
|
|
@ -12,8 +12,8 @@ Author: Leonardo de Moura
|
|||
#include "library/fun_info.h"
|
||||
|
||||
namespace lean {
|
||||
#define LEAN_NUM_TRANSPARENCY_MODES 5
|
||||
enum class transparency_mode { All = 0, Semireducible, Reducible, None };
|
||||
#define LEAN_NUM_TRANSPARENCY_MODES 3
|
||||
enum class transparency_mode { All = 0, Semireducible, Reducible };
|
||||
|
||||
class type_context_old;
|
||||
|
||||
|
|
|
|||
|
|
@ -2995,9 +2995,6 @@ lbool type_context_old::try_numeral_eq_numeral(expr const & t, expr const & s) {
|
|||
|
||||
/* Solve offset constraints. See discussion at issue #1226 */
|
||||
lbool type_context_old::try_nat_offset_cnstrs(expr const & t, expr const & s) {
|
||||
/* We should not use this feature when transparency_mode is none.
|
||||
See issue #1295 */
|
||||
if (m_transparency_mode == transparency_mode::None) return l_undef;
|
||||
lbool r;
|
||||
r = try_offset_eq_offset(t, s);
|
||||
if (r != l_undef) return r;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue