lean4-htt/src/Std/Data
Sebastian Ullrich 719765ec5c
feat: overhaul meta system (#10362)
This PR refines and clarifies the `meta` phase distinction in the module
system.

* `meta import A` without `public` now has the clarified meaning of
"enable compile-time evaluation of declarations in or above `A` in the
current module, but not downstream". This is now checked statically by
enforcing that public meta defs, which therefore may be referenced from
outside, can only use public meta imports, and that global evaluating
attributes such as `@[term_parser]` can only be applied to public meta
defs.
* `meta def`s may no longer reference non-meta defs even when in the
same module. This clarifies the meta distinction as well as improves
locality of (new) error messages.
* parser references in `syntax` are now also properly tracked as meta
references.
* A `meta import` of an `import` now properly loads only the `.ir` of
the nested module for the purposes of execution instead of also making
its declarations available for general elaboration.
* `initialize` is now no longer being run on import under the module
system, which is now covered by `meta initialize`.
2025-09-17 21:04:29 +00:00
..
DHashMap feat: overhaul meta system (#10362) 2025-09-17 21:04:29 +00:00
DTreeMap feat: overhaul meta system (#10362) 2025-09-17 21:04:29 +00:00
ExtDHashMap feat: add missing lemmas about insertMany and get? for container types (#10247) 2025-09-09 13:27:43 +00:00
ExtDTreeMap chore: fix remainining discrepancies for change in grind pattern heuristics (#10347) 2025-09-11 12:48:52 +00:00
ExtHashMap feat: add missing lemmas about insertMany and get? for container types (#10247) 2025-09-09 13:27:43 +00:00
ExtHashSet chore: more review of @[grind] annotations (#10340) 2025-09-11 06:09:52 +00:00
ExtTreeMap chore: fix remainining discrepancies for change in grind pattern heuristics (#10347) 2025-09-11 12:48:52 +00:00
ExtTreeSet chore: fix remainining discrepancies for change in grind pattern heuristics (#10347) 2025-09-11 12:48:52 +00:00
HashMap chore: missing grind modifiers and local grind theorems config (#10428) 2025-09-17 16:15:16 +00:00
HashSet chore: missing grind modifiers and local grind theorems config (#10428) 2025-09-17 16:15:16 +00:00
Internal feat: add missing lemmas about insertMany and get? for container types (#10247) 2025-09-09 13:27:43 +00:00
Iterators chore: avoid confusing public import all combination (#10051) 2025-08-22 12:04:42 +00:00
TreeMap chore: fix remainining discrepancies for change in grind pattern heuristics (#10347) 2025-09-11 12:48:52 +00:00
TreeSet chore: fix remainining discrepancies for change in grind pattern heuristics (#10347) 2025-09-11 12:48:52 +00:00
ByteSlice.lean feat: add useful functions in Parsec, add error variant and Std.Data.ByteSlice (#9599) 2025-09-11 14:53:41 +00:00
DHashMap.lean refactor: module-ize Std.Data.DHashMap (#9098) 2025-07-02 10:00:17 +00:00
DTreeMap.lean refactor: module-ize remainder of Std (#9195) 2025-07-17 11:43:57 +00:00
ExtDHashMap.lean refactor: module-ize remainder of Std (#9195) 2025-07-17 11:43:57 +00:00
ExtDTreeMap.lean refactor: module-ize remainder of Std (#9195) 2025-07-17 11:43:57 +00:00
ExtHashMap.lean refactor: module-ize remainder of Std (#9195) 2025-07-17 11:43:57 +00:00
ExtHashSet.lean refactor: module-ize remainder of Std (#9195) 2025-07-17 11:43:57 +00:00
ExtTreeMap.lean refactor: module-ize remainder of Std (#9195) 2025-07-17 11:43:57 +00:00
ExtTreeSet.lean refactor: module-ize remainder of Std (#9195) 2025-07-17 11:43:57 +00:00
HashMap.lean refactor: module-ize remainder of Std (#9195) 2025-07-17 11:43:57 +00:00
HashSet.lean refactor: module-ize remainder of Std (#9195) 2025-07-17 11:43:57 +00:00
Iterators.lean refactor: module-ize remainder of Std (#9195) 2025-07-17 11:43:57 +00:00
TreeMap.lean refactor: module-ize remainder of Std (#9195) 2025-07-17 11:43:57 +00:00
TreeSet.lean refactor: module-ize remainder of Std (#9195) 2025-07-17 11:43:57 +00:00