lean2/src/library/elaborator
Leonardo de Moura 7772c16033 refactor(kernel): add unfold_opaque flag to normalizer, modify how type checker uses the opaque flag, remove hidden_defs, and mark most builtin definitions as opaque
After this commit, in the type checker, when checking convertability, we first compute a normal form without expanding opaque terms.
If the terms are convertible, then we are done, and saved a lot of time by not expanding unnecessary definitions.
If they are not, instead of throwing an error, we try again expanding the opaque terms.
This seems to be the best of both worlds.
The opaque flag is a hint for the type checker, but it would never prevent us from type checking  a valid term.

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2013-12-20 12:47:47 -08:00
..
CMakeLists.txt refactor(kernel): rename trace to justification 2013-10-23 13:42:17 -07:00
elaborator.cpp refactor(kernel): add unfold_opaque flag to normalizer, modify how type checker uses the opaque flag, remove hidden_defs, and mark most builtin definitions as opaque 2013-12-20 12:47:47 -08:00
elaborator.h refactor(kernel/environment): add ro_environment 2013-12-12 16:48:34 -08:00
elaborator_exception.h refactor(util/lua): propagate C++ Lean exceptions in Lua 2013-11-27 12:25:29 -08:00
elaborator_justification.cpp refactor(library/elaborator): remove synthesizer 2013-12-10 15:55:54 -08:00
elaborator_justification.h refactor(library/elaborator): remove synthesizer 2013-12-10 15:55:54 -08:00
elaborator_plugin.h feat(*): simplify interrupt propagation 2013-11-12 21:45:48 -08:00