Leonardo de Moura
|
c303bf6916
|
refactor: add helper methods for simp
|
2022-01-07 13:51:45 -08:00 |
|
Leonardo de Moura
|
bef161caf7
|
feat: add better support for discharging equation theorem hypotheses
|
2022-01-06 14:42:23 -08:00 |
|
Leonardo de Moura
|
90b179bea9
|
fix: add equation theorems even if definition supports smart unfolding
See new test.
|
2022-01-06 13:53:03 -08:00 |
|
Leonardo de Moura
|
60934bf1d5
|
feat: add support for removing [simp] attribute from definitions with equational theorems
|
2022-01-05 16:57:59 -08:00 |
|
Leonardo de Moura
|
c2e52bd577
|
feat: use getEqnsFor? when applying [simp] at definitions
|
2022-01-05 15:59:39 -08:00 |
|
Leonardo de Moura
|
030e932db8
|
feat: use getEqnsFor? at simp
|
2022-01-05 11:28:24 -08:00 |
|
Mario Carneiro
|
7956a9bb15
|
chore: typos
|
2021-12-23 10:14:39 +01:00 |
|
Leonardo de Moura
|
c954fc9ec7
|
fix: bug at simpLoop
|
2021-12-18 06:48:08 -08:00 |
|
Leonardo de Moura
|
81f7335269
|
fix: ensure motive is type correct at simpProj
|
2021-12-15 17:07:31 -08:00 |
|
Leonardo de Moura
|
0a81093db5
|
fix: bug at simpProj
This bug was reported at https://github.com/dwrensha/lean4-maze/issues/1
|
2021-12-15 17:07:00 -08:00 |
|
Leonardo de Moura
|
96e0e1db98
|
fix: nontermination at simp [OfNat.ofNat]
closes #788
|
2021-12-10 12:29:33 -08:00 |
|
Leonardo de Moura
|
7b6732a137
|
refactor: ExprDefEq.lean and LevelDefEq.lean are now implementation only files
We use the export/extern idiom to define `isLevelDefEqAux`, and then
define the `isDefEq` user facing functions at `Meta/Basic.lean`.
|
2021-12-06 09:57:00 -08:00 |
|
Leonardo de Moura
|
88b6ad4756
|
feat: add etaStruct to Meta.Simp.Config
|
2021-11-25 11:31:00 -08:00 |
|
Gabriel Ebner
|
f55649f81b
|
fix: prefer simp lemmas with *higher* priority
|
2021-11-22 11:52:45 -08:00 |
|
Leonardo de Moura
|
2a7b33089a
|
fix: transparency settings at simp TC check
fixes #790
|
2021-11-15 18:09:31 -08:00 |
|
Leonardo de Moura
|
83cf5b20a1
|
fix: simpLet
Given `let x := v; b`, `simpLet` was using an incorrect local context to simplify `v`.
|
2021-10-22 16:29:00 -07:00 |
|
Leonardo de Moura
|
6b2303b243
|
fix: bug at tryLemmaCore when numExtraArgs > 1
Fixes bug reported at
https://leanprover.zulipchat.com/#narrow/stream/270676-lean4/topic/Simp.20bug.20-.20produces.60application.20type.20mismatch.60/near/257711901
|
2021-10-18 13:59:19 -07:00 |
|
Leonardo de Moura
|
3fed9c9df7
|
feat: reject partial when if constant is not a function
fixes #697
|
2021-09-28 21:07:14 -07:00 |
|
Leonardo de Moura
|
f1be1d5bba
|
feat: add simpProj
Simplifier for kernel projections.
|
2021-09-27 19:06:10 -07:00 |
|
Leonardo de Moura
|
42eba87325
|
feat: add simpMatchTarget
|
2021-09-17 14:20:28 -07:00 |
|
Leonardo de Moura
|
54d0fc043e
|
feat: preserve Expr.mdata at simp
|
2021-09-11 04:49:36 -07:00 |
|
Leonardo de Moura
|
e667385cf5
|
feat: simpLet when zeta reduction is disabled
|
2021-09-10 19:34:38 -07:00 |
|
Leonardo de Moura
|
19a710ffc9
|
feat: add getMatchWithExtra and improve tryLemma at simp
|
2021-09-09 19:28:09 -07:00 |
|
Leonardo de Moura
|
09eecc5c08
|
fix: simp was not applying rewrites to the function application prefixes
|
2021-09-09 17:07:14 -07:00 |
|
Leonardo de Moura
|
9b0dfc4b90
|
feat: convert "orphan" kernel nat literals n into ofNat n
|
2021-09-08 14:58:13 -07:00 |
|
Leonardo de Moura
|
445cc3085f
|
refactor: avoid Name, MVarId, and FVarId confusion
|
2021-09-07 19:06:50 -07:00 |
|
Leonardo de Moura
|
7a69c6483d
|
feat: add congr conv tactic
|
2021-09-01 18:32:21 -07:00 |
|
Leonardo de Moura
|
5f762171cc
|
feat: add support for split at
|
2021-08-31 19:35:07 -07:00 |
|
Leonardo de Moura
|
6d4422e5ac
|
refactor: add Simp.tryLemma?
|
2021-08-31 12:32:34 -07:00 |
|
Leonardo de Moura
|
ce47000e33
|
fix: missing whnf at tryLemma?
|
2021-08-30 08:33:58 -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
|
4cfbe6030f
|
feat: add simpLocalDecl
|
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
|
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
|
3c68703f39
|
feat: elaborate <- modifier at simp arguments
|
2021-08-15 07:07:58 -07:00 |
|
Leonardo de Moura
|
a821dcbff2
|
chore: enforce naming convention for theorems
see issue #402
fix: `ElabTerm.lean`
|
2021-08-07 12:48:38 -07:00 |
|
Wojciech Nawrocki
|
f51b80060d
|
feat: generic tagged Format
|
2021-08-01 09:58:44 +02:00 |
|
Sebastian Ullrich
|
eb1e285e26
|
chore: style
|
2021-06-21 10:17:26 -07:00 |
|
Leonardo de Moura
|
edb203ca54
|
fix: fixes #481
|
2021-05-21 20:40:26 -07:00 |
|
Leonardo de Moura
|
795e3a8646
|
chore: use "theorem" instead of "lemma" in messages
|
2021-05-21 20:35:23 -07:00 |
|
Leonardo de Moura
|
62ee8cfcea
|
feat: add MonadBacktrack instance for SimpM
|
2021-05-16 12:49:33 -07:00 |
|
Leonardo de Moura
|
ac90052139
|
feat: add option for controlling how deep we go when trying to discharge simp theorem hypotheses
|
2021-05-16 12:32:05 -07:00 |
|
Leonardo de Moura
|
f850820029
|
feat: add mkInjectiveTheorems
|
2021-05-13 22:09:50 -07:00 |
|
Leonardo de Moura
|
6dbf227cf2
|
fix: issues #387 part 2
see #387
|
2021-04-10 15:51:07 -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
|
a1205afac2
|
feat: allow simp lemmas to be AbstractMvarsResult
|
2021-04-10 11:37:39 -07:00 |
|