lean4-htt/tests/pkg
Wojciech Różowski de2b177423
fix: make cbv_opaque take precedence over cbv_eval (#12908)
This PR makes `@[cbv_opaque]` unconditionally block all evaluation of a
constant
by `cbv`, including `@[cbv_eval]` rewrite rules. Previously,
`@[cbv_eval]` could
bypass `@[cbv_opaque]`, and for bare constants (not applications),
`isOpaqueConst`
could fall through to `handleConst` which would unfold the definition
body.

The intended usage pattern is now: mark subterm-producing functions
(like
`DHashMap.insert`) as `@[cbv_opaque]` to prevent unfolding, and provide
`@[cbv_eval]` theorems on the *consuming* function (like
`DHashMap.contains`)
which pattern-matches against the opaque subterms.
2026-03-13 14:52:33 +00:00
..
builtin_attr chore: migrate pkg tests (#12889) 2026-03-11 18:55:46 +00:00
cbv_attr fix: make cbv_opaque take precedence over cbv_eval (#12908) 2026-03-13 14:52:33 +00:00
debug chore: migrate pkg tests (#12889) 2026-03-11 18:55:46 +00:00
def_clash chore: migrate pkg tests (#12889) 2026-03-11 18:55:46 +00:00
deriving chore: migrate pkg tests (#12889) 2026-03-11 18:55:46 +00:00
frontend chore: migrate pkg tests (#12889) 2026-03-11 18:55:46 +00:00
initialize chore: migrate pkg tests (#12889) 2026-03-11 18:55:46 +00:00
leanchecker chore: migrate pkg tests (#12889) 2026-03-11 18:55:46 +00:00
linter_set chore: migrate pkg tests (#12889) 2026-03-11 18:55:46 +00:00
misc chore: migrate pkg tests (#12889) 2026-03-11 18:55:46 +00:00
mod_clash chore: migrate pkg tests (#12889) 2026-03-11 18:55:46 +00:00
module chore: migrate pkg tests (#12889) 2026-03-11 18:55:46 +00:00
path with spaces chore: migrate pkg tests (#12889) 2026-03-11 18:55:46 +00:00
prv chore: migrate pkg tests (#12889) 2026-03-11 18:55:46 +00:00
rebuild chore: migrate pkg tests (#12889) 2026-03-11 18:55:46 +00:00
setup chore: migrate pkg tests (#12889) 2026-03-11 18:55:46 +00:00
signal chore: migrate pkg tests (#12889) 2026-03-11 18:55:46 +00:00
structure_docstrings chore: migrate pkg tests (#12889) 2026-03-11 18:55:46 +00:00
test_extern chore: migrate pkg tests (#12889) 2026-03-11 18:55:46 +00:00
user_attr chore: migrate pkg tests (#12889) 2026-03-11 18:55:46 +00:00
user_attr_app chore: migrate pkg tests (#12889) 2026-03-11 18:55:46 +00:00
user_ext chore: migrate pkg tests (#12889) 2026-03-11 18:55:46 +00:00
user_opt chore: migrate pkg tests (#12889) 2026-03-11 18:55:46 +00:00
user_plugin chore: migrate pkg tests (#12889) 2026-03-11 18:55:46 +00:00
ver_clash chore: migrate pkg tests (#12889) 2026-03-11 18:55:46 +00:00
.gitignore chore: migrate pkg tests (#12889) 2026-03-11 18:55:46 +00:00