lean4-htt/src/Lean/Data
Marc Huisinga 91b5e19833
feat: server-side for module hierarchy (#8654)
This PR adds server-side support for a new module hierarchy component in
VS Code that can be used to navigate both the import tree of a module
and the imported-by tree of a module. Specifically, it implements new
requests `$/lean/prepareModuleHierarchy`,
`$/lean/moduleHierarchy/imports` and
`$/lean/moduleHierarchy/importedBy`. These requests are not supported by
standard LSP. Companion PR at
[leanprover/vscode-lean4#620](https://github.com/leanprover/vscode-lean4/pull/620).


![Imports](https://github.com/user-attachments/assets/5ef650e7-3b0e-4a33-9ecb-f442bff88006)
![Imported
by](https://github.com/user-attachments/assets/d98e7a2c-3c4f-4509-afdf-08134a97aa78)

### Breaking changes
This PR augments the .ilean format with the direct imports of a file in
order to implement the `$/lean/moduleHierarchy/importedBy` request and
bumps the .ilean format version.
2025-06-11 08:02:18 +00:00
..
Json chore: remove duplicate instances (#8397) 2025-05-19 04:36:06 +00:00
Lsp feat: server-side for module hierarchy (#8654) 2025-06-11 08:02:18 +00:00
Xml chore: rename Array.back to back! (#5897) 2024-10-31 09:18:18 +00:00
Array.lean feat: deprecate Array.mkArray in favour of Array.replicate 2025-03-24 08:25:00 +01:00
AssocList.lean fix: replace bad simp lemmas for Id (#7352) 2025-05-22 22:45:35 +00:00
DeclarationRange.lean feat: labeled and unique sorries (#5757) 2024-12-11 23:53:02 +00:00
Format.lean perf: add prelude to all Lean modules 2024-02-18 14:55:17 -08:00
FuzzyMatching.lean chore: do not use the coercion α → Option α in Init and Std (#8085) 2025-04-24 13:35:01 +00:00
Json.lean perf: add prelude to all Lean modules 2024-02-18 14:55:17 -08:00
JsonRpc.lean refactor: more complete channel implementation for Std.Channel (#7819) 2025-04-12 21:02:24 +00:00
KVMap.lean chore: remove duplicated ForIn instances (#5892) 2024-10-31 07:40:09 +00:00
LBool.lean perf: add prelude to all Lean modules 2024-02-18 14:55:17 -08:00
LOption.lean feat: NoZeroNatDivisors helper class for grind (#8111) 2025-04-26 15:14:27 +00:00
Lsp.lean chore: USE_LAKE: integrate into CMake (#4466) 2025-03-15 08:58:01 +00:00
Name.lean feat: revamp aux decl name generation (#8363) 2025-05-16 14:57:18 +00:00
NameMap.lean feat: lean --setup (#8024) 2025-05-03 23:57:37 +00:00
NameTrie.lean fix: replace bad simp lemmas for Id (#7352) 2025-05-22 22:45:35 +00:00
OpenDecl.lean perf: add prelude to all Lean modules 2024-02-18 14:55:17 -08:00
Options.lean perf: add prelude to all Lean modules 2024-02-18 14:55:17 -08:00
PersistentArray.lean fix: replace bad simp lemmas for Id (#7352) 2025-05-22 22:45:35 +00:00
PersistentHashMap.lean fix: replace bad simp lemmas for Id (#7352) 2025-05-22 22:45:35 +00:00
PersistentHashSet.lean fix: replace bad simp lemmas for Id (#7352) 2025-05-22 22:45:35 +00:00
Position.lean feat: cleanup of get and back functions on List/Array (#7059) 2025-02-17 01:43:45 +00:00
PrefixTree.lean feat: Environment.addConstAsync (#6691) 2025-01-19 02:00:16 +00:00
RArray.lean feat: universe polymorphic RArray (#8014) 2025-04-18 02:18:10 +00:00
RBMap.lean chore: upstream some NameMap functions (#6056) 2024-11-13 23:22:01 +00:00
RBTree.lean chore: upstream some NameMap functions (#6056) 2024-11-13 23:22:01 +00:00
SMap.lean chore: remove the old Lean.Data.HashMap implementation (#7519) 2025-03-20 23:49:55 +00:00
SSet.lean fix: remove PersistentHashMap.size 2024-06-19 20:21:34 +02:00
Trie.lean chore: do not use the coercion α → Option α in Init and Std (#8085) 2025-04-24 13:35:01 +00:00
Xml.lean chore: add missing copyright headers (#3411) 2024-02-20 01:49:55 +00:00