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
8d370f151f
fix: space before 'at' in location
2021-09-15 18:41:26 +02: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
77365abc8b
chore: Repr Syntax and minor cleanup
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
Leonardo de Moura
d93c4317d1
feat: add withOpenDecl and withOpen parsers
...
It allow us to process `open .. in ..` while parsing.
This is useful for activating a scoped parser while parsing.
TODO: `openOnly` and `openHiding`, these two cases are rarely used
with `open .. in ..`
closes #529
2021-08-22 20:50:35 -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
Sebastian Ullrich
3b43ab47f1
fix: formatter: check for comment tokens
...
Fixes #624
2021-08-11 17:37:18 +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
Sebastian Ullrich
1dfacb5f84
fix: parenthesizer: respect lhsPrec
...
Fixes #595
2021-08-03 15:22:08 +02: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
Daniel Selsam
5a5ed67698
refactor: pp.analyze track postponed constraints
2021-08-03 09:13:18 +02:00
Daniel Selsam
c0c9d72cc3
refactor: pp.analyze put helper in 'where'
2021-08-03 09:13:18 +02:00
Daniel Selsam
f1002cf759
feat: delab more thorough 'getParamKinds'
2021-08-03 09:13:18 +02:00
Daniel Selsam
652681621a
fix: pp.analyze don't type-annotate mdatas
2021-08-03 09:13:18 +02:00
Daniel Selsam
d6253e091b
fix: pp.analyze _s when forced explicit
2021-08-03 09:13:18 +02:00