lean4-htt/src
Scott Morrison d4dca3baac
feat: test_extern command (#2970)
This adds a `test_extern` command.

Usage:
```
import Lean.Util.TestExtern

test_extern Nat.add 17 37
```

This:
* Checks that the head symbol has an `@[extern]` attribute.
* Writes down `t == t'`, where `t` is the term provided, and `t'` is the
reference implementation (specifically, `t` with the head symbol
unfolded).
* Tries to reduce this to `true`, and complains if this fails.

Note that the type of the term must have a `BEq` instance for this to
work: there's a self-explanatory error message if it isn't available.
2023-12-12 23:33:05 +00:00
..
bin feat: Web Assembly Build (#2599) 2023-10-04 09:04:20 +02:00
cmake
include/lean feat: Runtime.markMultiThreaded/Persistent 2023-11-14 17:33:04 +01:00
Init chore: make List.all and List.any short-circuit (#2972) 2023-12-11 23:48:15 +00:00
initialize chore: fix more typos in comments 2023-10-08 14:37:34 -07:00
kernel fix: remove unguarded check_interrupted call 2023-10-26 08:33:09 +02:00
lake chore: remove supportInterpreter from lake template (#2984) 2023-11-29 06:16:34 +00:00
Lean feat: test_extern command (#2970) 2023-12-12 23:33:05 +00:00
library feat: embed and check githash in .olean (#2766) 2023-11-27 10:24:43 +00:00
runtime fix: run_task/deactivate_task race condition on m_imp->m_closure (#2959) 2023-12-12 02:01:40 +00:00
shell feat: Web Assembly Build (#2599) 2023-10-04 09:04:20 +02:00
util fix: remove target triple parameter from FFI that no longer exists in the Lean API 2023-11-02 23:21:47 +01:00
CMakeLists.txt fix: find macOS system libraries in leanc (#2997) 2023-11-30 13:34:24 +00:00
config.h.in
githash.h.in
Init.lean refactor: add Init/MetaTypes to workaround bootstrapping issues 2023-10-29 09:38:23 -07:00
lean-toolchain doc: VS Code dev setup (#2961) 2023-11-30 08:35:03 +00:00
Lean.lean feat: add linter.deprecated option to silence deprecation warnings 2022-10-23 21:11:57 +02:00
lean.mk.in feat: LLVM bc separation for CMake 2023-11-02 23:21:47 +01:00
Leanc.lean fix: default for MACOSX_DEPLOYMENT_TARGET (#2598) 2023-10-02 13:03:19 +00:00
stdlib.make.in chore: set warningAsError in CI only (#3030) 2023-12-06 08:18:39 +00:00
stdlib_flags.h chore: update domain 2023-09-20 15:13:27 -07:00
version.h.in feat: embed and check githash in .olean (#2766) 2023-11-27 10:24:43 +00:00