Leonardo de Moura
8d7f0ea2f2
feat: add removeUnnecessaryCasts
...
see #988
2022-02-07 17:24:32 -08:00
Leonardo de Moura
9d34d9bc5a
feat: cache and optimize mkCongrSimp? at simp
...
see #988
2022-02-07 17:01:21 -08:00
Leonardo de Moura
007f0e1d71
feat: use mkCongrSimp? at simp
...
TODO: cache auto generated congr theorems, and `removeUnnecessaryCasts`
see #988
2022-02-07 16:45:01 -08:00
Leonardo de Moura
5baac1905f
fix: use private names for theorems that are created on demand
...
closes #1006
2022-02-07 13:16:22 -08:00
Leonardo de Moura
eff63632b3
feat: improve error message when max heartbeats is reached during TC
...
see #1007
2022-02-07 11:23:48 -08:00
Gabriel Ebner
f8b43630a6
fix: refs to copied subobjects in diamond extension
2022-02-07 10:54:32 -08:00
Leonardo de Moura
8cea32f42d
chore: fix test
2022-02-06 09:15:39 -08:00
Sebastian Ullrich
2c7d67d498
fix: make info of fields synthesized by structure update synthetic
2022-02-06 08:50:07 -08:00
Sebastian Ullrich
0ef5985b5f
fix: binder info range for let rec/where
2022-02-06 07:21:51 -08:00
Leonardo de Moura
6de0b1fc67
feat: add mkCongrSimp.mkProof
...
see #988
2022-02-04 17:57:28 -08:00
Leonardo de Moura
3ae455bccf
feat: add mkCongrSimp?
...
TODO: proof is still missing
see #988
2022-02-04 17:57:28 -08:00
Leonardo de Moura
a028a69159
feat: cache isProp and isDecInst at FunInfo
2022-02-04 17:57:28 -08:00
Sebastian Ullrich
a7ba103e0a
chore: remove leanpkg
2022-02-04 19:03:40 +01:00
Sebastian Ullrich
ae062c6ead
fix: match tactic should not trigger implicit lambdas
2022-02-04 07:55:56 -08:00
Leonardo de Moura
e9d85f49e6
chore: remove tryPureCoe?
...
Based on the discussion at
https://leanprover.zulipchat.com/#narrow/stream/270676-lean4/topic/for.2C.20unexpected.20need.20for.20type.20ascription/near/269083574
The consensus seemed to be that "auto pure" is more confusing than its worth.
2022-02-03 16:25:24 -08:00
Leonardo de Moura
5f74cd4968
feat: add let pat := val | elseCase do-notation
2022-02-03 15:55:03 -08:00
Leonardo de Moura
420f5bb315
fix: hide internal namespaces from autocompletion
...
closes #993
2022-02-03 13:33:27 -08:00
Leonardo de Moura
17eab845ed
fix: improve tryPostponeIfMVar
...
see #992
2022-02-03 13:24:19 -08:00
Leonardo de Moura
42b3ed5903
test: add Pi.single test
...
see #988
2022-02-03 09:22:22 -08:00
Gabriel Ebner
54cff10f3f
fix: dependent fields in diamond extensions
2022-02-03 09:17:14 -08:00
Leonardo de Moura
c30380e2fa
feat: lift the restriction in congr theorems that all function arguments on the lhs must be free variables
...
see #988
2022-02-02 18:23:18 -08:00
Leonardo de Moura
b7c853692d
test: add test for decide congruence issue
...
TODO: congruence lemma must be automatically generated.
see #988
2022-02-02 17:49:03 -08:00
Leonardo de Moura
101fc12b54
feat: partially applied user congruence lemmas
...
see #988
2022-02-02 17:41:21 -08:00
Leonardo de Moura
dbb6dcd9a9
fix: remove irrelevant hypotheses in auto-generated equation theorems
2022-02-02 15:39:51 -08:00
Leonardo de Moura
188f0eb70f
fix: splitMatch tactic
...
Improve how we compute the motive for match-splitter eliminator.
closes #986
2022-02-02 15:06:03 -08:00
Leonardo de Moura
65e1fc1211
feat: at splitMatch only generalize discriminants that are not FVar
2022-02-02 15:06:03 -08:00
Sebastian Ullrich
e400b02a05
test: wrong test
2022-02-02 13:17:30 +01:00
Sebastian Ullrich
3425278d97
test: forgot to commit test for #801
2022-02-02 13:08:23 +01:00
larsk21
e73645505b
fix: remove duplicate from interactive highlight test
2022-02-02 13:03:21 +01:00
larsk21
818e8acd0e
feat: add test for handleDocumentHighlight
2022-02-02 13:03:21 +01:00
Leonardo de Moura
3dfd14dfff
chore: fix test
2022-01-31 16:45:57 -08:00
Leonardo de Moura
ccddd0d932
feat: show proof state/unclosed goal message on empty tactic sequences
...
closes #361
2022-01-31 16:22:08 -08:00
Leonardo de Moura
f02013fd76
fix: induction MetaM tactic
...
The major premise may be a let-declaration.
closes #983
2022-01-31 13:41:38 -08:00
Gabriel Ebner
7d4ae642fb
fix: recursively copy subfields in diamond extends
2022-01-29 08:31:34 -08:00
Leonardo de Moura
e5ef61225b
fix: missing condition at lpo case 3
2022-01-28 09:47:35 -08:00
Leonardo de Moura
cb4a86ac68
fix: do not validate local eq theorems
...
see #973
2022-01-27 11:50:20 -08:00
Leonardo de Moura
d4d9995952
feat: reject user declared namespaces containing _root
...
see #490
2022-01-26 19:15:45 -08:00
Leonardo de Moura
a63163e992
feat: do not try to discharge hypotheses at simp when type contains assignable metavariables
...
closes #973
see https://github.com/leanprover-community/mathport/issues/70
2022-01-26 17:57:52 -08:00
Leonardo de Moura
2fff4c42b7
fix: make sure irreducible constants are not unfolded when using the default reducibility setting
2022-01-26 11:55:21 -08:00
Leonardo de Moura
8db923e010
feat: generate error message for simp theorems that are equivalent to x = x
...
see #973
see https://github.com/leanprover-community/mathport/issues/70
2022-01-26 11:16:31 -08:00
Leonardo de Moura
f0b502aca6
fix: increase the number of heartbeats at Expr.eqv
...
On issue #906 , `simp` spends a lot of time checking the cache. This
process is time consuming and doesn't allocate memory. Before this
commit, it would take a long time to get the "maximum number of
heartbeats" error message on the example included in this issue.
Closes #906
2022-01-26 08:25:33 -08:00
Leonardo de Moura
8896c9b06d
test: add variant of Formula.count_quantifiers
...
see #974
2022-01-25 18:47:03 -08:00
Leonardo de Moura
98407798af
fix: mkEquationsFor at Match/MatchEqs.lean
...
closes #974
2022-01-25 18:43:51 -08:00
Leonardo de Moura
02677cf326
fix: igore instance implicit arguments in term ordering used at simp
...
closes #972
2022-01-24 18:57:31 -08:00
Leonardo de Moura
7ada79bf2e
fix: use an AC-compatible ordering on Expr at simp
...
closes #968
2022-01-22 09:42:59 -08:00
Leonardo de Moura
0615020cf7
feat: make sure Expr.approxDepth does not overflow
2022-01-22 07:45:19 -08:00
Leonardo de Moura
79dec8fa7c
chore: fix test
2022-01-20 17:19:29 -08:00
Leonardo de Moura
d39025e343
test: add test for issue #951
2022-01-20 17:16:06 -08:00
Leonardo de Moura
0c959b6942
chore: fix tests
2022-01-20 15:25:59 -08:00
Leonardo de Moura
f9fa24435d
chore: remove problematic instance hasOfNatOfCoe
...
See #403
See https://github.com/leanprover-community/mathport/issues/94
2022-01-20 14:47:25 -08:00