Leonardo de Moura
|
9d5f211c28
|
feat: add environment extension for storing match conditional equations and splitter
|
2021-08-28 14:49:20 -07:00 |
|
Leonardo de Moura
|
03f095ccab
|
fix: match + OfNat issue
See https://leanprover.zulipchat.com/#narrow/stream/270676-lean4/topic/simp.20match.20question
|
2021-08-27 11:48:02 -07:00 |
|
Leonardo de Moura
|
2f8d2e8a12
|
feat: add procedure for solving subgoals generated by mkSplitterProof
|
2021-08-24 20:23:13 -07:00 |
|
Leonardo de Moura
|
2b9fded6b7
|
feat: add splitter theorem
|
2021-08-24 18:37:12 -07:00 |
|
Leonardo de Moura
|
f4ecbd1102
|
chore: reduce dependencies
|
2021-08-24 17:38:43 -07:00 |
|
Leonardo de Moura
|
6f71cb1047
|
refactor: add Meta.intros
|
2021-08-24 17:24:29 -07:00 |
|
Leonardo de Moura
|
14b65499e6
|
feat: construct proof template for the auto generated extended elimination principle
|
2021-08-24 17:13:42 -07:00 |
|
Leonardo de Moura
|
214f2f7bb6
|
fix: toFVarsRHSArgs
|
2021-08-24 16:50:03 -07:00 |
|
Wojciech Nawrocki
|
81eff794d5
|
doc: add review comments
|
2021-08-24 08:57:41 -07:00 |
|
Wojciech Nawrocki
|
f52940160e
|
feat: better interactive goals
|
2021-08-24 08:57:41 -07:00 |
|
Leonardo de Moura
|
269a3478e0
|
refactor: cleanup mkEquationsFor
and build eliminator type where alternatives have the extra
conditions that ensure none of the previous alternatives are applicable.
|
2021-08-23 20:19:24 -07:00 |
|
Leonardo de Moura
|
4f45a514fc
|
fix: TC issue introduced by recent bug fix
This commit fixes the issue reported at
https://leanprover.zulipchat.com/#narrow/stream/270676-lean4/topic/instance.20not.20synthesizing.20issue.3F
|
2021-08-23 17:32:19 -07:00 |
|
Leonardo de Moura
|
5a7044365b
|
feat: add instances Alternative MetaM and Alternative TacticM
|
2021-08-22 22:29:09 -07:00 |
|
Leonardo de Moura
|
ca747e9b27
|
feat: use contradiction at leaves
closes #644
|
2021-08-22 18:41:02 -07:00 |
|
Leonardo de Moura
|
48e6188e89
|
feat: use exfalso at ElimEmptyInductive
|
2021-08-22 18:16:14 -07:00 |
|
Leonardo de Moura
|
e5c380fd4f
|
feat: add exfalso
|
2021-08-22 18:14:49 -07:00 |
|
Leonardo de Moura
|
ec20725cfb
|
feat: use searchFuel instead of searchDepth at contradiction
|
2021-08-22 17:41:12 -07:00 |
|
Leonardo de Moura
|
49520aa2ee
|
feat: generate conditional equation theorems for match expressions
|
2021-08-19 19:33:31 -07:00 |
|
Leonardo de Moura
|
37f2f7d472
|
fix: bug at processGenDiseq
We should not assign metavar from outer depth inside `withNewMCtxDepth`
|
2021-08-19 19:33:26 -07:00 |
|
Leonardo de Moura
|
3c519887d1
|
chore: generate error message when MatchEqs fail
TODO: we currently do not generate equation theorems
for `match` expressions using array literals.
|
2021-08-19 17:04:52 -07:00 |
|
Leonardo de Moura
|
1624e42a5d
|
chore: cleaup
|
2021-08-19 14:39:58 -07:00 |
|
Leonardo de Moura
|
bffefa61bd
|
feat: extend contradiction for MatchEqs.lean
|
2021-08-19 12:52:50 -07:00 |
|
Leonardo de Moura
|
7b881b6020
|
chore: add Contradiction.Config
|
2021-08-19 11:43:12 -07:00 |
|
Leonardo de Moura
|
a6529a795b
|
feat: add casesOnStuckLHS
|
2021-08-19 11:22:13 -07:00 |
|
Leonardo de Moura
|
015df19808
|
feat: add trySubst
|
2021-08-19 07:08:02 -07:00 |
|
Leonardo de Moura
|
d0d7799a7b
|
doc: document (and rename) the new configuration option ignoreLevelMVarDepth
|
2021-08-18 20:38:18 -07:00 |
|
Leonardo de Moura
|
99e8a98f06
|
feat: allow universes metavariables from any depth to be assigned when ignoreLevelDepth is true
We set `ignoreLevelDepth` to true during type class resolution.
|
2021-08-18 20:20:51 -07:00 |
|
Leonardo de Moura
|
45d3b85d5a
|
refactor: cleanup MatchEqs and simplify SplitIf
|
2021-08-18 18:34:34 -07:00 |
|
Leonardo de Moura
|
83eaa47e0a
|
chore: move MatchEqs
|
2021-08-17 21:32:32 -07:00 |
|
Leonardo de Moura
|
158636b8c0
|
feat: add spliIfGoal
TODO: remove unnecessary complexity, `MatchEqs` doesn't need all this
complexity, and we should not recurse here.
|
2021-08-17 21:32:32 -07:00 |
|
Leonardo de Moura
|
e04976614f
|
feat: check if metavar is not assigned at simp tactics
and make sure `simpLocalDecl` does not change the goal if it didn't simplify
|
2021-08-17 21:32:32 -07:00 |
|
Leonardo de Moura
|
60d38606e7
|
fix: missing instantiateMVars
|
2021-08-17 21:32:32 -07:00 |
|
Leonardo de Moura
|
a5b9306e04
|
fix: deep recursion at contradiction
|
2021-08-17 21:32:32 -07:00 |
|
Leonardo de Moura
|
4cfbe6030f
|
feat: add simpLocalDecl
|
2021-08-17 21:32:32 -07:00 |
|
Leonardo de Moura
|
52b52b22ef
|
fix: to do unfold matcher applications that cannot be reduced when smartUnfolding is true
https://leanprover.zulipchat.com/#narrow/stream/270676-lean4/topic/How.20to.20WHNF.20without.20exposing.20recursors.3F
|
2021-08-17 21:32:32 -07:00 |
|
Leonardo de Moura
|
60ff468a8b
|
feat: add simpGoal helper method
chore: rename `simpGoal?`
|
2021-08-17 21:32:32 -07:00 |
|
Leonardo de Moura
|
5a76f70bc8
|
feat: add optional argument discharge? to simp basic methods
|
2021-08-17 21:32:32 -07:00 |
|
Leonardo de Moura
|
571a0491ee
|
feat: add Meta.byCases helper tactic
|
2021-08-16 14:58:51 -07:00 |
|
Leonardo de Moura
|
f59b9813fb
|
feat: add environment extension for caching Simp.Context for splitIf
|
2021-08-16 13:05:01 -07:00 |
|
Leonardo de Moura
|
ca0c205389
|
feat: add registerSimpAttr
|
2021-08-16 09:59:58 -07:00 |
|
Leonardo de Moura
|
9182ebd4c1
|
feat: elaborate * simp argument
|
2021-08-15 08:02:21 -07:00 |
|
Leonardo de Moura
|
3c68703f39
|
feat: elaborate <- modifier at simp arguments
|
2021-08-15 07:07:58 -07:00 |
|
Leonardo de Moura
|
d52de3392b
|
chore: remove workaround
|
2021-08-13 19:35:47 -07:00 |
|
Leonardo de Moura
|
a15a36b8d3
|
chore: cleanup Subarray instances
|
2021-08-13 19:29:09 -07:00 |
|
Leonardo de Moura
|
4b58c4cc02
|
refactor: instances that "hide" coercions
Example:
```
instance [CoeHTCT α β] [Add β] : HAdd α β β where
hAdd a b := Add.add a b
```
|
2021-08-13 17:18:55 -07:00 |
|
Leonardo de Moura
|
be23709737
|
chore: use binop% to define ++ notation
|
2021-08-13 16:26:35 -07:00 |
|
Sebastian Ullrich
|
16026e9edd
|
perf: restore monad instance specialization hack
|
2021-08-12 21:09:09 +02:00 |
|
Leonardo de Moura
|
63ad42ba47
|
refactor: move and generalize reduceProj?
|
2021-08-10 20:21:04 -07:00 |
|
Leonardo de Moura
|
16ea00586d
|
fix: fixes #620
|
2021-08-10 15:06:06 -07:00 |
|
Leonardo de Moura
|
97664de3ee
|
fix: diamonds with dependent fields
|
2021-08-09 19:01:08 -07:00 |
|