Sebastian Ullrich
43b08239b0
fix: further conv goal state refinements
2022-06-14 11:09:47 +02:00
Leonardo de Moura
77ae79be46
chore: use let/if in do blocks
2022-06-13 17:10:14 -07:00
Leonardo de Moura
e52a7bdf42
feat: let/if indentation in do blocks
...
closes #1120
2022-06-13 16:18:49 -07:00
Leonardo de Moura
dee712ec7e
chore: fix test
...
Pushed the wrong file in previous commit.
see #490
2022-06-13 14:06:56 -07:00
Leonardo de Moura
9ba5831de8
fix: _root_ prefix in declarations
...
closes #490
2022-06-13 14:03:18 -07:00
Leonardo de Moura
fb574af873
fix: mkSplitterProof
...
This commit fixes the first issue reported at #1179
closes #1179
2022-06-12 19:38:54 -07:00
Wojciech Nawrocki
ff15e31e85
refactor: remove redundant theorem
2022-06-12 14:01:05 -07:00
Jakob von Raumer
033618ad5e
fix: indices in conv arg now count arguments with forward dependencies
2022-06-10 18:25:34 -07:00
Leonardo de Moura
17db981880
fix: equation theorem for match with more than one "as" pattern
...
see #1195
see #1179
2022-06-10 18:23:13 -07:00
Leonardo de Moura
4ba7174c0c
fix: universe level parameter stabilitity issue
...
See comment.
2022-06-10 14:08:08 -07:00
Sebastian Ullrich
61232e788a
fix: check types at do pattern reassignment
2022-06-10 17:31:36 +02:00
Sebastian Ullrich
8c377436f4
fix: do not report unused variables in unfinished declarations
2022-06-10 11:27:11 +02:00
Sebastian Ullrich
41dfd06e8c
fix: intro/intros: do not register _ as binder in info tree
...
Fixes #1204
2022-06-09 15:23:56 +02:00
Leonardo de Moura
d0499ebf4d
fix: fixes #1200
2022-06-08 10:18:05 -07:00
Leonardo de Moura
fa64c072ab
feat: where declarations at instances
...
https://leanprover.zulipchat.com/#narrow/stream/270676-lean4/topic/Local.20functions.20in.20instances/near/285333999
2022-06-07 18:48:15 -07:00
Leonardo de Moura
041827bed5
chore: unused variables
2022-06-07 17:54:10 -07:00
Sebastian Ullrich
130cc8bbd5
chore: fix test
2022-06-07 16:37:45 -07:00
Sebastian Ullrich
8ffa07ab25
fix: goal state on conv =>
2022-06-07 17:43:16 +02:00
Leonardo de Moura
09ddf76029
feat: simp_all now uses dependent hypotheses for simplification
...
However, it does not simplify them.
closes #1194
2022-06-06 18:31:34 -07:00
Leonardo de Moura
71226243fd
fix: fixes #1192
2022-06-06 18:20:45 -07:00
Leonardo de Moura
5055855637
feat: improve default simp discharge method
...
closes #1193
2022-06-06 17:29:12 -07:00
Leonardo de Moura
2832442e7a
fix: unfold declarations tagged with [matchPattern] at reduceMatcher? even if transparency setting is not the default one
...
see #1193
It fixes one of the issues exposed at the issue above.
2022-06-06 15:53:40 -07:00
larsk21
60c8a72262
fix: unused variables linter: consider induction variables as pattern variables
2022-06-06 15:53:10 -07:00
larsk21
a9293410a2
fix: unused variables linter: ignore structure, class and inductive signatures
2022-06-06 15:53:10 -07:00
Sebastian Ullrich
143b2b49c8
fix: induction: do not register _ as binder in info tree
2022-06-06 23:05:12 +02:00
Sebastian Ullrich
ec045bfbb8
feat: $_ antiquotation pattern
2022-06-04 13:57:04 +02:00
Sebastian Ullrich
05c5dd4441
fix: unused variables linter: search fvar aliases in tactics
2022-06-03 22:37:38 +02:00
Leonardo de Moura
9d6b67eae2
fix: remove check from Simp.synthesizeArgs
...
Some `simp` dischargers can handle metavariables (e.g,
`assumption`). See new test.
closes #1184
2022-06-03 07:40:30 -07:00
Sebastian Ullrich
0b264889ae
fix: goal state on ; after ·
2022-06-03 13:41:04 +02:00
larsk21
caa8804a1d
feat: add nolint options for function arguments and pattern variables
2022-06-03 13:03:52 +02:00
larsk21
93480a3e05
fix: consider tactic mvar assignments for used variables
2022-06-03 13:03:52 +02:00
larsk21
bf907d7b8c
fix: ignore exposed function arguments in unused variables linter
2022-06-03 13:03:52 +02:00
larsk21
57c8c76cd0
fix: use findModuleRefs in unused variables linter
2022-06-03 13:03:52 +02:00
larsk21
cf4e106304
fix: unused variables linter review comments
...
- ignore unused variables in dep arrows
- avoid negated options
- make syntax stack generation more performant
- make ignore functions more extensible
- change message severity to `warning`
2022-06-03 13:03:52 +02:00
larsk21
393fdef972
fix: disable linters in tests
2022-06-03 13:03:52 +02:00
larsk21
37d5f8e74a
feat: add unused variables linter
2022-06-03 13:03:52 +02:00
Leonardo de Moura
8649483b41
feat: produces an error if the declaration body contains a universe parameter that does not occur in the declaration type nor is explicitly provided
...
closes #898
2022-06-02 19:43:09 -07:00
Leonardo de Moura
484e510221
feat: do not use pp.inaccessibleNames = true at getInteractiveTermGoal
...
See discussion at https://github.com/leanprover/vscode-lean4/issues/76
We also use `pp.inaccessibleNames = false` in error messages. In this
setting, an inaccessible name is displayed in the context only if the
target type depends on it.
2022-06-02 16:22:43 -07:00
Leonardo de Moura
878ef3a281
feat: improve acyclic tactic
...
closes #1182
2022-06-02 15:25:14 -07:00
Sebastian Ullrich
ddfbf6bf9b
fix: show namespace when hovering over declaration name
2022-06-02 18:17:21 +02:00
Leonardo de Moura
32db316166
fix: enumeration type noConfusion was not registered
...
This commit fixes issue reported at
https://leanprover.zulipchat.com/#narrow/stream/270676-lean4/topic/.28kernel.29.20function.20expected.20.2EnoConfusion/near/284634050
2022-06-01 17:58:46 -07:00
Gabriel Ebner
9a273b85a3
fix: no sorry-warning for missing match cases
2022-06-01 07:41:52 -07:00
Leonardo de Moura
bf0b675ca6
chore: fix tests
2022-06-01 06:36:25 -07:00
Leonardo de Moura
9102f8cb13
fix: generate sorry warning only if there are no error messages
...
see #1163
2022-06-01 06:32:05 -07:00
Leonardo de Moura
9290a0e9b1
chore: fix tests
2022-05-31 18:17:56 -07:00
Leonardo de Moura
5302267220
test: for #1163
2022-05-31 18:09:27 -07:00
Leonardo de Moura
2b2f315fb9
chore: fix tests
2022-05-31 18:01:48 -07:00
Leonardo de Moura
0631c90794
feat: implement MonadLog at CoreM
2022-05-31 17:40:55 -07:00
Leonardo de Moura
5f7cc78f17
fix: remove unnecessary let-expressions when computing the motive
...
fixes #1155
2022-05-31 07:14:56 -07:00
ammkrn
102e957bb5
feat: support proofs in deriving DecidableEq
...
The derive handler for `DecidableEq` does not currently support proofs
in constructor arguments/structure fields. For example, deriving
`DecidableEq` for `Fin n` will fail, because of the field `isLt`. This
change checks whether the elements being tested are proofs, and if so,
changes the equality proof to just `rfl`.
2022-05-30 07:36:30 -07:00