Kyle Miller
3878432ac7
fix: make sure local instance detection sees through reductions ( #8903 )
...
This PR make sure that the local instance cache calculation applies more
reductions. In #2199 there was an issue where metavariables could
prevent local variables from being considered as local instances. We use
a slightly different approach that ensures that, for example, `let`s at
the ends of telescopes do not cause similar problems. These reductions
were already being calculated, so this does not require any additional
work to be done.
Metaprogramming interface addition: the various forall telescope
functions that do reduction now have a `whnfType` flag (default false).
If it's true, then the callback `k` is given the WHNF of the type. This
is a free operation, since the telescope function already computes it.
2025-06-21 06:26:32 +00:00
Sebastian Ullrich
11ae8bae42
fix: include references in attributes in call hierarchy ( #5650 )
...
By ensuring all `declModifiers` are included in `addDeclarationRanges`,
`implementedBy` references etc are included in the call hierarchy
2024-10-18 15:38:32 +00:00
Leonardo de Moura
9a8e7a6411
feat: add cleanupAnnotations parameter to forallTelescope methods ( #4180 )
2024-05-15 22:19:07 +00:00
Mario Carneiro
fbedb79b46
fix: add_decl_doc should check that declarations are local ( #3311 )
...
This was causing a panic previously, [reported on
Zulip](https://leanprover.zulipchat.com/#narrow/stream/287929-mathlib4/topic/CI.20errors.20that.20are.20not.20local.20errors/near/420986393 ).
2024-02-12 12:04:51 +00:00
int-y1
8d7520b36f
chore: fix typos in comments
2023-10-08 10:46:05 +02:00
Leonardo de Moura
c16d4fb926
chore: fix test suite
2022-09-15 18:59:51 -07:00
Gabriel Ebner
b4af14d44a
fix: deindent docstrings with empty lines
2022-09-13 07:16:12 -07:00
Mario Carneiro
37d3479e7c
doc: add more docs to Init.Prelude
2022-08-06 09:32:16 -07:00
Leonardo de Moura
3325987be4
chore: fix tests
2022-07-18 23:18:59 -04:00
Leonardo de Moura
b266961068
chore: fix test
2022-01-17 17:24:09 -08:00
Leonardo de Moura
2a17233f1c
chore: fix test
2022-01-17 17:07:08 -08:00
Sebastian Ullrich
0d86ebe5eb
chore: remove volatile cases from test
2021-03-17 12:32:25 +01:00
Leonardo de Moura
89797c4485
chore: improve congrDefault
...
We don't need `congrMatch` anymore.
2021-03-16 15:59:11 -07:00
Leonardo de Moura
8227d3afcd
feat: support for simplifying match discriminants
2021-03-16 15:51:36 -07:00
Leonardo de Moura
865316bbf9
feat: improve error message when stuck solving universe constraints
...
closes #343
2021-03-11 17:46:44 -08:00
Leonardo de Moura
0ceac85c6d
chore: fix test
2021-02-21 16:29:13 -08:00
Leonardo de Moura
1b15a848e0
chore: fix test
2021-02-21 11:16:21 -08:00
Leonardo de Moura
bb2ca97df9
refactor: add options for controlling whether variables are included or not at mkLambdaFVars and mkForallFVars
2021-02-17 13:49:27 -08:00
Leonardo de Moura
f780efa476
chore: fix test
2021-02-02 14:01:53 -08:00
Leonardo de Moura
3c02f877a8
chore: fix test
2021-01-29 17:13:04 -08:00
Leonardo de Moura
870896ba45
chore: fix test
2021-01-27 18:40:53 -08:00
Leonardo de Moura
f27ae71231
chore: fix test
2021-01-25 17:22:20 -08:00
Leonardo de Moura
67e5b05751
chore: fix test
2021-01-19 13:29:19 -08:00
Leonardo de Moura
42b5e780f5
chore: fix test
2021-01-12 08:14:16 -08:00
Leonardo de Moura
7160a010d1
chore: fix test
2021-01-12 06:58:35 -08:00
Leonardo de Moura
f0992c7022
chore: fix tests
2021-01-11 13:01:04 -08:00
Leonardo de Moura
ac4961fa37
test: check stdlib doc strings
2021-01-10 07:36:16 -08:00
Leonardo de Moura
308c61027a
feat: save doc strings
...
We can now document `let rec` too.
2021-01-10 07:13:33 -08:00