lean4-htt/src/library
Mac Malone 2a8cd373ca
feat: respect lean --setup module name in code generation (#8780)
This PR makes Lean code generation respect the module name provided
through `lean --setup`.

This is accomplished by porting to Lean the portion of `shell.cpp` that
spans running the frontend to exiting the process. This makes it easier
to load the module setup and control how its name is passed to the code
generation functions. This port attempts to minimize the changes made to
Lean. It marks the new Lean functions `private` and tries to preserve as
faithfully as possible the behavior of the original C++ code. Exposing
the new Lean interface publicly and/or further improving the code now
that is written in Lean is left for the future.
2025-06-15 01:11:58 +00:00
..
compiler feat: respect lean --setup module name in code generation (#8780) 2025-06-15 01:11:58 +00:00
constructions chore: reimplement mk_projections in Lean (#7295) 2025-03-03 01:10:27 +00:00
annotation.cpp chore: reduce src/include/lean 2021-09-07 08:24:54 -07:00
annotation.h chore: fix more typos in comments 2023-10-08 14:37:34 -07:00
aux_recursors.cpp feat: split Lean.Kernel.Environment from Lean.Environment (#5145) 2025-01-18 18:42:57 +00:00
aux_recursors.h feat: split Lean.Kernel.Environment from Lean.Environment (#5145) 2025-01-18 18:42:57 +00:00
bin_app.cpp
bin_app.h
class.cpp feat: split Lean.Kernel.Environment from Lean.Environment (#5145) 2025-01-18 18:42:57 +00:00
class.h feat: split Lean.Kernel.Environment from Lean.Environment (#5145) 2025-01-18 18:42:57 +00:00
CMakeLists.txt feat: smarter plugin loading (#7090) 2025-02-18 23:03:52 +00:00
constants.cpp feat: add support for Float32 to the Lean runtime (#6348) 2024-12-09 21:33:43 +00:00
constants.h feat: add support for Float32 to the Lean runtime (#6348) 2024-12-09 21:33:43 +00:00
constants.txt feat: add support for Float32 to the Lean runtime (#6348) 2024-12-09 21:33:43 +00:00
dynlib.cpp feat: smarter plugin loading (#7090) 2025-02-18 23:03:52 +00:00
dynlib.h feat: smarter plugin loading (#7090) 2025-02-18 23:03:52 +00:00
elab_environment.cpp feat: allow use of experimental module system in Init (#7919) 2025-04-22 09:09:27 +00:00
elab_environment.h feat: allow use of experimental module system in Init (#7919) 2025-04-22 09:09:27 +00:00
expr_lt.cpp feat: add the nondep field of Expr.letE to the C++ data model (#8751) 2025-06-14 23:10:27 +00:00
expr_lt.h chore: remove dead code 2020-10-27 19:23:14 -07:00
expr_pair.h chore: reduce src/include/lean 2021-09-07 08:24:54 -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 feat: smarter plugin loading (#7090) 2025-02-18 23:03:52 +00:00
init_module.h fix: Windows needs more LEAN_EXPORTs 2024-08-12 14:14:42 +02:00
max_sharing.cpp chore: reduce src/include/lean 2021-09-07 08:24:54 -07:00
max_sharing.h
module.cpp feat: environment extension data can be split into .olean.server (#7914) 2025-04-11 13:06:19 +00:00
module.h feat: split Lean.Kernel.Environment from Lean.Environment (#5145) 2025-01-18 18:42:57 +00:00
num.cpp
num.h chore: reduce src/include/lean 2021-09-07 08:24:54 -07:00
print.cpp feat: add the nondep field of Expr.letE to the C++ data model (#8751) 2025-06-14 23:10:27 +00:00
print.h fix: Windows needs more LEAN_EXPORTs 2024-08-12 14:14:42 +02:00
profiling.cpp fix: profiler threshold in C++ 2023-04-10 16:57:54 +02:00
profiling.h fix: Windows needs more LEAN_EXPORTs 2024-08-12 14:14:42 +02:00
projection.cpp feat: split Lean.Kernel.Environment from Lean.Environment (#5145) 2025-01-18 18:42:57 +00:00
projection.h feat: split Lean.Kernel.Environment from Lean.Environment (#5145) 2025-01-18 18:42:57 +00:00
reducible.cpp feat: split Lean.Kernel.Environment from Lean.Environment (#5145) 2025-01-18 18:42:57 +00:00
reducible.h feat: split Lean.Kernel.Environment from Lean.Environment (#5145) 2025-01-18 18:42:57 +00:00
replace_visitor.cpp chore: reduce src/include/lean 2021-09-07 08:24:54 -07:00
replace_visitor.h chore: remove Expr.localE constructor 2020-11-01 09:37:48 -08:00
suffixes.h fix: allow arbitrary sorts in structural recursion over reflexive inductive types (#7639) 2025-06-13 21:51:09 +00:00
time_task.cpp feat: respect lean --setup module name in code generation (#8780) 2025-06-15 01:11:58 +00:00
time_task.h perf: remove most remaining async blockers in Init.Data.List.Sublist (#7500) 2025-03-15 15:26:06 +00:00
util.cpp chore: tag prerelease builds with -pre (#5943) 2024-11-06 14:47:52 +00:00
util.h chore: CI: build 64-bit platforms consistently with GMP 2024-11-01 22:48:49 +11:00