Leonardo de Moura
5a7044365b
feat: add instances Alternative MetaM and Alternative TacticM
2021-08-22 22:29:09 -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
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
7385cbfe2d
test: add mapTR test
2021-08-22 16:51:38 -07:00
Leonardo de Moura
4dccaa963b
feat: add List.mapTR and csimp lemma
2021-08-22 09:32:19 -07:00
Leonardo de Moura
a942ab2b72
chore: update stage0
2021-08-21 17:03:30 -07:00
Leonardo de Moura
21c68a49e3
feat: elaborate nonrec modifier
2021-08-21 17:02:54 -07:00
Leonardo de Moura
ef4359a439
chore: update stage0
2021-08-21 16:39:47 -07:00
Leonardo de Moura
54316fabb4
feat: add nonrec parser
2021-08-21 16:39:18 -07:00
Leonardo de Moura
46a5f06121
feat: do not consider dot notation when isAuxDecl is true
2021-08-21 16:35:32 -07:00
Leonardo de Moura
38ecb25d28
chore: update stage0
2021-08-21 16:13:04 -07:00
Leonardo de Moura
ec6af1ba26
feat: use simple List.append definition and add csimp theorem
2021-08-21 16:11:54 -07:00
Leonardo de Moura
3226fdec8c
chore: update stage0
2021-08-21 15:10:10 -07:00
Leonardo de Moura
4d1d06fcbc
chore: fix test
2021-08-21 15:07:36 -07:00
Leonardo de Moura
4b7498f84b
chore: update stage0
2021-08-21 15:05:52 -07:00
Leonardo de Moura
3b240d9a14
feat: use simple List.length definition and add csimp theorem
2021-08-21 13:11:06 -07:00
Leonardo de Moura
6cfdfe9942
feat: apply csimp attribute constant replacements
2021-08-21 12:22:15 -07:00
Leonardo de Moura
347710204a
chore: update stage0
2021-08-21 11:59:57 -07:00
Leonardo de Moura
71e0ff40c2
feat: add basic support for csimp
2021-08-21 11:58:51 -07:00
Leonardo de Moura
e8d23f305d
chore: elaborate open scoped
2021-08-21 07:16:24 -07:00
Leonardo de Moura
7d3e0ee578
chore: update stage0
2021-08-21 07:07:31 -07:00
Leonardo de Moura
519bb1e7d4
feat: add open scoped parser
2021-08-21 07:06:50 -07:00
Leonardo de Moura
6bd37361dc
chore: update stage0
2021-08-20 19:43:44 -07:00
Leonardo de Moura
7066619123
refactor: define Nat.le using inductive type
2021-08-20 19:39:45 -07:00
Leonardo de Moura
9686910c72
chore: update stage0
2021-08-20 09:46:00 -07:00
Sebastian Ullrich
c138dc7d44
chore: CI: fix patching & copying dependent libs
2021-08-20 09:42:05 -07:00
Sebastian Ullrich
2418acd216
chore: Nix: fix stage0
2021-08-20 09:42:05 -07:00
Sebastian Ullrich
6521143ab3
chore: update stage0
2021-08-20 09:42:05 -07:00
Sebastian Ullrich
82c97d34fa
chore: specify accurate dependencies for leanshared
2021-08-20 09:42:05 -07:00
Sebastian Ullrich
5f4b1b1d44
Revert "Revert "feat: reintroduce libleanshared, link lean & leanpkg against it""
...
This reverts commit ccbc9d00db .
2021-08-20 09:42:05 -07:00
Sebastian Ullrich
ccbc9d00db
Revert "feat: reintroduce libleanshared, link lean & leanpkg against it"
2021-08-20 15:39:00 +02: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
33a0da8c6f
chore: remove simp annotation from PUnit.eq_punit
...
closes #635
2021-08-19 11:22:13 -07:00
Leonardo de Moura
a6529a795b
feat: add casesOnStuckLHS
2021-08-19 11:22:13 -07:00
Leonardo de Moura
1b60d54814
feat: make sure Eq.ndrec and Eq.ndrecOn are "tagged" as auxiliary recursors
2021-08-19 11:22:13 -07:00
Sebastian Ullrich
f33cdf6bf9
fix: linking against dl
2021-08-19 19:44:28 +02:00
Leonardo de Moura
7c9158a50e
fix: structure command diamond support
...
Fixes issue described at https://leanprover.zulipchat.com/#narrow/stream/270676-lean4/topic/Structure.20diamond.20error
2021-08-19 07:45:21 -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
107712f8be
feat: add instance from CoeSort to CoeTail
2021-08-18 20:24:43 -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