Commit graph

316 commits

Author SHA1 Message Date
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
Daniel Selsam
ea6fca24c2 refactor: pp.analyze StateT for analyzeApp 2021-08-03 09:13:18 +02:00
Daniel Selsam
be02133ca7 feat: pp.analyze default transparency 2021-08-03 09:13:18 +02:00
Daniel Selsam
aefd31b2a2 feat: better bottom-up/structure-type heuristics 2021-08-03 09:13:18 +02:00
Daniel Selsam
ed67bd56e0 fix: only unexpand when pp.notation=true 2021-08-03 09:13:18 +02:00
Daniel Selsam
b6be5435cd fix: pp.all should enable binderTypes 2021-08-03 09:13:18 +02:00
Daniel Selsam
c89dff56c4 fix: pp.analyze missing structure instance types 2021-08-03 09:13:18 +02:00
Daniel Selsam
e55a5770f3 refactor: nested for-loop 2021-08-03 09:13:18 +02:00
Daniel Selsam
44f1f4e410 refactor: pp.analyze needs pp options 2021-08-03 09:13:18 +02:00
Daniel Selsam
48d5c0d2a6 chore: pp.proofs defaults to false 2021-08-03 09:13:18 +02:00
Daniel Selsam
e6b90dde8f fix: pp.analyze mvars can bottom-up 2021-08-03 09:13:18 +02:00
Daniel Selsam
3fa992c684 feat: new pp.analyze.knowsType option 2021-08-03 09:13:18 +02:00
Daniel Selsam
a84291641b fix: pp.analyze restriction on _ 2021-08-03 09:13:18 +02:00
Daniel Selsam
702211db2a feat: pp.analyze detect when struct-inst type needed 2021-08-03 09:13:18 +02:00
Daniel Selsam
1f183cdc30 fix: only pp.analyze when all is not set 2021-08-03 09:13:18 +02:00
Daniel Selsam
126db5fb12 fix: pp.analyze confirm def-eq before omitting arg 2021-08-03 09:13:18 +02:00
Daniel Selsam
3bef119136 fix: pp.analyze missing inBottomUp 2021-08-03 09:13:18 +02:00
Daniel Selsam
5fd68821c1 feat: flag for omitted 'bad' max annotations 2021-08-03 09:13:18 +02:00
Daniel Selsam
9838625f19 doc: comment out blockImplicitLambda check 2021-08-03 09:13:18 +02:00
Daniel Selsam
d28419594e fix: pp.analyze do not panic on bvar 2021-08-03 09:13:18 +02:00