Leonardo de Moura
a02421185c
fix: add support for BinderInfo.auxDecl at delabLam
2022-01-10 15:18:49 -08:00
Henrik Böving
4ee058039b
chore: apply suggestions from code review
...
Co-authored-by: Gabriel Ebner <gebner@gebner.org>
2022-01-03 13:43:33 +01:00
Henrik Böving
6fe010d0c2
fix: keep info in auto generated notation delaborators
...
Previously automatically generated delaborators for syntax declared with
the notation (and derived) keywords would silently drop information
during delaboration.
2022-01-03 13:43:33 +01:00
Henrik Böving
cbedff5aba
feat: optionally add information to all symbols during delaboration
...
Add an option called pp.tagSymbols which, if set, makes the
delaborator add term information to all symbols it can during
delaboration. This option is disabled per default because it would
break the LSP server's hovering behaviour. It is however useful
when for example automatically generating interactive documentation.
2022-01-03 13:43:33 +01:00
Leonardo de Moura
68bd55af32
chore: fix codebase
2021-12-10 13:12:09 -08:00
Leonardo de Moura
7de749a23c
refactor: move setElabConfig to Elab directory
...
see #849
2021-12-06 08:12:59 -08:00
Sebastian Ullrich
80c3d88e3e
refactor: optimize critical import path
2021-12-06 08:05:24 -08:00
larsk21
9028405798
fix: handle _root_ in unresolveNameGlobal with pp.fullNames
2021-11-21 15:23:21 +01:00
larsk21
63f9b37c0a
fix: return fully-qualified name in PrettyPrinter when pp.fullNames is set
2021-11-21 15:23:21 +01:00
Gabriel Ebner
5aab241f7a
fix: show correct popup for a + b
2021-10-26 20:19:27 +02:00
Gabriel Ebner
bfc74decde
feat: add info field to Syntax.node
2021-10-26 20:19:27 +02:00
Leonardo de Moura
4c335fd660
fix: do not use let_fun notation when pp.notation is set to false
2021-10-22 14:10:37 -07:00
Leonardo de Moura
58430704e5
refactor: move inaccessible? to Expr.lean
2021-10-20 15:54:18 -07:00
Leonardo de Moura
fb27537b8e
fix: appUnexpander name resolution
...
fixes issue reported at https://leanprover.zulipchat.com/#narrow/stream/270676-lean4/topic/Scoping.20for.20delaborator.3F
2021-10-09 08:29:26 -07:00
Leonardo de Moura
dc5f44edcf
feat: delaborate Sigma and PSigma
2021-09-25 18:19:44 -07:00
Daniel Selsam
a35cbb5844
fix: pp.analyze skip all omitted instances
2021-09-15 09:41:16 +02:00
Daniel Selsam
664737def8
feat: trust subtype.mk by default
2021-09-15 09:41:16 +02:00
Daniel Selsam
7cdcb56c1d
feat: pp.analyze extend max heuristic to imax
2021-09-15 09:41:16 +02:00
Daniel Selsam
4646b36459
feat: pp.analyze no explicit holes by default
2021-09-15 09:41:16 +02:00
Leonardo de Moura
1fd3cfb19f
feat: pretty print let_fun
2021-09-11 05:15:11 -07:00
Leonardo de Moura
445cc3085f
refactor: avoid Name, MVarId, and FVarId confusion
2021-09-07 19:06:50 -07:00
Leonardo de Moura
3714cf16ec
refactor: lazy evaluation for <|>
...
see #617
2021-09-07 17:06:10 -07:00
Leonardo de Moura
c93982d10c
chore: disable pp.analyze for now
...
see #651
2021-09-07 07:51:43 -07:00
Daniel Selsam
b36baa143f
feat: improved name-unresolving in delab
...
Fixes #641
2021-09-07 16:26:00 +02:00
Leonardo de Moura
ef8aadcbea
fix: fixes #653
2021-09-04 18:42:33 -07:00
Leonardo de Moura
bfefeb6e5a
chore: use compact structure instance notation
2021-09-03 18:59:26 -07:00
Leonardo de Moura
391366ef24
refactor: add annotation for displaying conv state
2021-09-02 15:52:11 -07:00
Leonardo de Moura
a83872c718
chore: add pp.match option
2021-08-31 12:32:04 -07:00
Leonardo de Moura
f4ecbd1102
chore: reduce dependencies
2021-08-24 17:38:43 -07:00
Wojciech Nawrocki
81eff794d5
doc: add review comments
2021-08-24 08:57:41 -07:00
Wojciech Nawrocki
fd016c6065
chore: address some comments
2021-08-24 08:57:41 -07:00
Wojciech Nawrocki
1bab9f6ffc
refactor: simplify delaborator monad stacks
2021-08-24 08:57:41 -07:00
Wojciech Nawrocki
73363bef1f
fix: delab structure field annotations
2021-08-24 08:57:41 -07:00
Daniel Selsam
2f484ec096
feat: build info trees in delab
2021-08-24 08:57:41 -07:00
Daniel Selsam
c44d341bd4
feat: SubExpr support for iterating holes
2021-08-24 08:57:41 -07:00
Daniel Selsam
5952a857cd
feat: pp.analyze improve heuristics for fun binders
2021-08-12 09:37:57 +02:00
Daniel Selsam
638d0ca8ed
feat: pp.instances and pp.instanceTypes
2021-08-12 09:33:30 +02:00
Daniel Selsam
efb3f528a6
fix: handle MData-wrapped app fns consistently in delaborator
...
Fixes #625
2021-08-11 18:53:32 +02:00
Daniel Selsam
0118c47117
refactor: separate pp.funBinderTypes and pp.piBinderTypes
2021-08-09 16:13:40 +02:00
Leonardo de Moura
3293e9ef08
chore: fix module comments, they must occur after the imports
2021-08-06 14:02:42 -07:00
Daniel Selsam
34a27f2d56
fix: pp.analyze strict implicits
2021-08-06 17:02:00 +02:00
Daniel Selsam
14177fbaf6
feat: misc pp.analyze improvements
2021-08-06 16:51:14 +02:00
Leonardo de Moura
56320cb84f
chore: naming convention and cleanup
2021-08-05 16:23:21 -07:00
Daniel Selsam
4cdfbde93b
fix: pp.analyze also bottom-up the trivials
2021-08-05 08:51:05 +02:00
Daniel Selsam
1a815a4339
perf: pp.analyze add quick check
2021-08-05 08:51:05 +02:00
Daniel Selsam
b86e9a3a27
fix: pp.analyze bottom-up only checks unknown types
2021-08-05 08:51:05 +02:00
Leonardo de Moura
4cd7e359df
feat: elaborate strict implicit binders
2021-08-03 19:40:44 -07:00
Leonardo de Moura
d1d7ce1839
feat: start support for strict implicit binder annotation
2021-08-03 18:42:15 -07:00
Daniel Selsam
b8b48b0f72
refactor: move FindLevelMVar to Lean/Util
2021-08-03 09:13:18 +02:00
Daniel Selsam
0036111db9
feat: pp.analyze original mvars are not unknown
2021-08-03 09:13:18 +02:00