Leonardo de Moura
747bb486b8
chore: update stage0
2021-04-15 12:34:44 -07:00
Leonardo de Moura
36a4f337e9
fix: fixes #247
2021-04-15 12:33:45 -07:00
Leonardo de Moura
dbc84c502c
chore: make sure we don't lift methods over binders
2021-04-15 12:06:46 -07:00
Sebastian Ullrich
91169f9987
doc: quickstart: formatting, again
2021-04-15 19:08:56 +02:00
Paul Brinkmeier
c1623add68
doc: add note about staging flake.nix ( #411 )
...
If you don't make flake.nix visible to Git, nix build etc. won't work. Add a command that adds the file to the Index and a note explaining why.
2021-04-15 18:45:22 +02:00
Sebastian Ullrich
32fd82efc2
fix: link lean statically against GMP again
2021-04-14 20:37:07 +02:00
Leonardo de Moura
0a1923b820
chore: update faq with "help wanted" link
2021-04-14 07:30:09 -07:00
Leonardo de Moura
c1f45ecd48
fix: fixes #394
...
The bug was due to the auto-generalization feature.
2021-04-13 19:14:57 -07:00
Leonardo de Moura
327eb1a96d
fix: ensure ill-formed if do-statements do not trigger non termination
2021-04-13 15:51:20 -07:00
Leonardo de Moura
2384826933
chore: add loop prenvention code at do-expander
2021-04-13 15:46:47 -07:00
Leonardo de Moura
1a2a089c28
chore: comment
2021-04-13 10:34:19 -07:00
Leonardo de Moura
adda3a9e02
fix: improve structural recursion
2021-04-13 10:31:43 -07:00
Sebastian Ullrich
435431ca7e
feat: hide elaboration errors from partial syntax trees by default
2021-04-13 19:24:35 +02:00
Leonardo de Moura
292bab5a11
fix: loop due to error recovery
2021-04-13 08:12:39 -07:00
Leonardo de Moura
59d7008f24
chore: cleanup
2021-04-13 08:12:14 -07:00
Leonardo de Moura
bf4b9b0ccd
fix: use noImplicitLambda% when defining tactic macros such as have, let, etc
...
Thus, we don't change the expected type when using them.
2021-04-12 23:01:47 -07:00
Leonardo de Moura
ecad25e08f
chore: update stage0
2021-04-12 22:56:56 -07:00
Leonardo de Moura
2f37d7e290
feat: elaborate noImplicitLambda% notation
2021-04-12 22:55:17 -07:00
Leonardo de Moura
635a320455
chore: ignore mdata at intros
2021-04-12 22:38:15 -07:00
Leonardo de Moura
4b56ca066d
chore: update stage0
2021-04-12 22:35:09 -07:00
Leonardo de Moura
abf78e162c
feat: add notation for disabling implicit lambda feature
...
This notation will be useful for writing macros where
implicit lambdas are not desired.
2021-04-12 22:33:23 -07:00
Leonardo de Moura
d2910337af
test: completion
2021-04-12 22:32:27 -07:00
Leonardo de Moura
40a42128be
fix: auto completion improvements
2021-04-12 19:22:56 -07:00
Daniel Selsam
d35091da56
feat: parser alias for 'declVal'
2021-04-12 16:59:54 -07:00
Leonardo de Moura
217c0391bb
chore: example
2021-04-12 16:56:10 -07:00
Sebastian Ullrich
92810602d0
fix: server: do not stop processing after error (except for header error)
2021-04-12 22:41:10 +02:00
Leonardo de Moura
565ca259b1
fix: issue raised by Andrew
2021-04-12 10:51:44 -07:00
Sebastian Ullrich
1e61b7db89
fix: partial syntax tree panic
...
Fixes #391
2021-04-12 18:33:39 +02:00
Leonardo de Moura
5fc1a86274
chore: indentation
2021-04-11 22:00:21 -07:00
Leonardo de Moura
7950907dac
chore: update stage0
2021-04-11 21:49:23 -07:00
Leonardo de Moura
83b83f51e9
fix: resolveProvider?
...
Recent bug fixes exposed a problem here.
The field `resolveProvider?` has a `?`, but is not an `Option`
type. The `ToJson` makes this assumption and uses the auxiliary
function `opt`. The bugs fixed today were masjing this problem.
2021-04-11 21:45:59 -07:00
Leonardo de Moura
f55561008c
fix: fixes #386
2021-04-11 20:57:39 -07:00
Leonardo de Moura
5d4c96e5d6
test: expand test for 389
2021-04-11 20:55:33 -07:00
Leonardo de Moura
7ae279d04f
fix: missing commitWhenSome? at tryPureCoe?
...
fixes #389
2021-04-11 19:28:34 -07:00
Leonardo de Moura
47735d6706
chore: remove dead function
...
Moreover, it is incorect to save/restore the metavariable context
without saving/restoring `Term.State` fields contain metavariables
being rolled back.
2021-04-11 19:17:55 -07:00
Leonardo de Moura
e5d8158cef
chore: update stage0
2021-04-11 19:12:56 -07:00
Leonardo de Moura
23f49c35fc
refactor: MonadBacktrack for TacticM
2021-04-11 19:10:41 -07:00
Leonardo de Moura
484a3a4e7c
fix: should only cache inferred type when there are no metavars
2021-04-11 19:10:41 -07:00
Leonardo de Moura
2694e7798a
refactor: add MonadBacktrack
...
The new class specifies an interface for saving and restoring the
backtrackable part of the state.
This commit also fixes a few issues.
- `commitWhen` at `LevelDefEq` was defining a checkpoint for
the `isDefEq` methods, and it affects how postponed universe
constraints are handled. However, the name suggests it is
similar to `commitWhenSome?`, and consequently it was used
in other places that had nothing to do with `isDefEq`.
So, I renamed it, and provided the generic `commitWhen` at the new
`MonadBacktrack.lean` file.
- We were restoring more state then needed in a few places.
For example, we were discarding all caches.
- At `SyntheticMVars.lean`, we were using the `Meta.commitWhenSome?`
method which does not restore the `Term.State`.
2021-04-11 19:10:41 -07:00
Sebastian Ullrich
e1e5ad30ae
chore: Nix: update VS Code
2021-04-11 23:03:56 +02:00
Leonardo de Moura
8917e08251
feat: add tactic macro unhygienic <tactic-seq>
2021-04-10 16:18:40 -07:00
Leonardo de Moura
e56bf66d8d
chore: rename option hygienicIntro ==> tactic.hygienic
...
It is easier to find.
2021-04-10 16:09:04 -07:00
Leonardo de Moura
6dbf227cf2
fix: issues #387 part 2
...
see #387
2021-04-10 15:51:07 -07:00
Leonardo de Moura
a2522fd316
test: for issue #387
...
closes #387
2021-04-10 15:15:19 -07:00
Leonardo de Moura
314062e941
chore: update stage0
...
We need it because we have changed the `SimpLemma` representation and
they are stored in the .olean files.
2021-04-10 15:04:56 -07:00
Leonardo de Moura
91cb4aad2a
refactor: simplify and document SimpLemma encoding
2021-04-10 15:03:04 -07:00
Leonardo de Moura
4f09390b8e
feat: create SimpLemmas.Proof.abst at the simp tactic frontend
2021-04-10 14:17:43 -07:00
Leonardo de Moura
8be9a13679
feat: support for SimpLemma.Proof.abst
2021-04-10 12:46:48 -07:00
Leonardo de Moura
50292824c1
chore: update stage0
2021-04-10 11:39:27 -07:00
Leonardo de Moura
a1205afac2
feat: allow simp lemmas to be AbstractMvarsResult
2021-04-10 11:37:39 -07:00