lean4-htt/src/library
Leonardo de Moura 1ea4bdb9cd fix: add "band-aid" for #341
closes #341

This is another instance of a compiler bug.
It is in the code that is still written in C/C++.
We need to infer types in the compiler, and we reused the kernel type
checker for this.
However, the compiler performs transformations that may produce type
incorrect terms.
This happens in code that makes heavy use of dependent types (like the
new test).
This is just a workaround for this particular instance of the problem.
The definitive solution will only happen when we replace
this part of the compiler with Lean code, and implement a custom
`inferType` method for the compiler.
2021-03-10 08:11:41 -08:00
..
compiler fix: add "band-aid" for #341 2021-03-10 08:11:41 -08:00
constructions fix: unfold class projections when using TransparencyMode.instances 2021-01-25 12:30:26 -08:00
annotation.cpp chore: remove dead code 2020-10-28 09:33:19 -07:00
annotation.h
aux_recursors.cpp chore: use aux recursor extension implemented in Lean 2019-11-02 11:48:02 -07:00
aux_recursors.h chore: use aux recursor extension implemented in Lean 2019-11-02 11:48:02 -07:00
bin_app.cpp
bin_app.h
class.cpp chore: remove dead code at Class.lean used by old frontend 2020-11-20 16:51:44 -08:00
class.h chore: remove dead code at Class.lean used by old frontend 2020-11-20 16:51:44 -08:00
CMakeLists.txt chore: move pp_options.cpp to Lean 2021-01-27 14:16:12 +01:00
constants.cpp fix: gen_constants_cpp.py: mark constants as persistent 2020-11-29 18:59:39 +01:00
constants.h chore: remove unused names 2020-10-27 16:28:19 -07:00
constants.txt chore: remove unused names 2020-10-27 16:28:19 -07:00
expr_lt.cpp chore: remove Expr.localE constructor 2020-11-01 09:37:48 -08:00
expr_lt.h chore: remove dead code 2020-10-27 19:23:14 -07:00
expr_pair.h chore: fix includes 2020-05-22 14:17:25 -07:00
expr_pair_maps.h
expr_unsigned_map.h
formatter.cpp chore: remove io_state & abstract_type_context 2021-01-12 09:51:14 -08:00
formatter.h chore: remove io_state & abstract_type_context 2021-01-12 09:51:14 -08:00
init_module.cpp chore: move pp_options.cpp to Lean 2021-01-27 14:16:12 +01:00
init_module.h
max_sharing.cpp chore: remove Expr.localE constructor 2020-11-01 09:37:48 -08:00
max_sharing.h
module.cpp chore: remove legacy support for modification objects 2020-10-26 08:10:51 -07:00
module.h chore: remove io_state & abstract_type_context 2021-01-12 09:51:14 -08:00
num.cpp chore: improve old pretty printer on numeric literals 2020-01-09 13:48:15 -08:00
num.h chore: fix includes 2020-05-22 14:17:25 -07:00
print.cpp chore: remove io_state & abstract_type_context 2021-01-12 09:51:14 -08:00
print.h chore: remove io_state & abstract_type_context 2021-01-12 09:51:14 -08:00
profiling.cpp fix: mark Lean objects in C++ globals reachable from the new frontend as persistent 2020-10-11 17:43:28 +02:00
profiling.h refactor(util/sexpr): move options and option_declarations to util 2019-05-16 14:37:24 -07:00
projection.cpp chore: fix includes 2020-05-22 14:17:25 -07:00
projection.h feat: export helper functions 2020-02-25 13:00:22 -08:00
protected.cpp chore: remove legacy support for modification objects 2020-10-26 08:10:51 -07:00
protected.h feat(library/protected): replace C++ implementation with Lean one 2019-05-14 16:12:56 -07:00
reducible.cpp chore(library/init/lean): export as C functions 2019-08-16 20:15:30 -07:00
reducible.h feat(library/reducible): use new Lean implementation 2019-06-24 15:48:12 -07:00
replace_visitor.cpp chore: remove Expr.localE constructor 2020-11-01 09:37:48 -08:00
replace_visitor.h chore: remove Expr.localE constructor 2020-11-01 09:37:48 -08:00
sorry.cpp chore: remove dead code 2020-10-25 20:49:30 -07:00
sorry.h chore: remove dead code 2020-10-25 20:49:30 -07:00
suffixes.h
time_task.cpp refactor: pos at time_task::time_task was a dead field 2021-01-30 11:10:18 -08:00
time_task.h refactor: pos at time_task::time_task was a dead field 2021-01-30 11:10:18 -08:00
trace.cpp chore: remove C++ messages 2021-01-12 09:51:14 -08:00
trace.h chore: remove C++ messages 2021-01-12 09:51:14 -08:00
util.cpp chore: move pp_options.cpp to Lean 2021-01-27 14:16:12 +01:00
util.h chore: remove io_state & abstract_type_context 2021-01-12 09:51:14 -08:00