Leonardo de Moura
|
873a2ba8a6
|
feat: unfold namedPattern applications at equation theorems
|
2022-01-18 15:03:20 -08:00 |
|
Leonardo de Moura
|
1e21815e41
|
fix: equality theorem generation when named patterns are used
closed #945
|
2022-01-18 14:37:51 -08:00 |
|
Leonardo de Moura
|
c816524d8d
|
feat: add subst?
|
2022-01-18 14:26:14 -08:00 |
|
Leonardo de Moura
|
c12fa6f0e2
|
fix: error message
The equation theorems may fail for other reasons.
|
2022-01-18 14:11:54 -08:00 |
|
Leonardo de Moura
|
1c1e6d79a7
|
feat: add equality proof for named patterns
The user can optionally name the equality proof.
The new test demostrates how to name the equality proof.
closes #501
|
2022-01-18 12:43:01 -08:00 |
|
Leonardo de Moura
|
42fe01a3eb
|
feat: add new flag to caseValues
|
2022-01-18 12:15:29 -08:00 |
|
Leonardo de Moura
|
9d05023325
|
chore: remove some [specialize] annotations
|
2022-01-18 09:24:06 -08:00 |
|
Leonardo de Moura
|
6631f1d5b3
|
chore: use namedPatternOld
|
2022-01-17 17:18:03 -08:00 |
|
Leonardo de Moura
|
2c690926cf
|
feat: update namedPattern parser
|
2022-01-17 16:49:20 -08:00 |
|
Leonardo de Moura
|
de11f7e1bc
|
feat: add sizeOf spec lemmas as simp theorems
|
2022-01-17 16:14:38 -08:00 |
|
Leonardo de Moura
|
8f47043aee
|
chore: add trace message for sizeOf theorem
|
2022-01-17 15:42:42 -08:00 |
|
Leonardo de Moura
|
bac91b9b5b
|
chore: remove arbitrary
|
2022-01-15 12:14:27 -08:00 |
|
Leonardo de Moura
|
7d5f14b4a7
|
chore: elaborate default_or_ofNonempty% and add mkDefault
|
2022-01-15 11:55:58 -08:00 |
|
Leonardo de Moura
|
f1adedb2de
|
feat: add Classical.ofNonempty
|
2022-01-14 15:59:11 -08:00 |
|
Leonardo de Moura
|
49b2860f2a
|
feat: add Meta.rename tactic
|
2022-01-12 16:15:30 -08:00 |
|
Leonardo de Moura
|
7a86b613dc
|
chore: remove old comment
|
2022-01-12 08:28:03 -08:00 |
|
Leonardo de Moura
|
b50e82bc93
|
feat: unfold tactic
|
2022-01-07 13:51:45 -08:00 |
|
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
|
df6095e580
|
fix: casesOnStuckLHS method
It was not general enough.
|
2022-01-06 13:54:17 -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
|
be6bc67eb0
|
fix: ensure match-expressions compiled using if-then-else can be reduced with TransparencyMode.reducible
closes #891
|
2021-12-18 10:55:42 -08:00 |
|
Leonardo de Moura
|
b3d8766b09
|
chore: use doubleticks at WHNF.lean
|
2021-12-18 08:43:50 -08:00 |
|
Leonardo de Moura
|
b6fbdd8679
|
feat: add Meta.Context.canUnfold?
|
2021-12-18 08:25:56 -08: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
|
1c83ea9e40
|
fix: typo at hasUnusedArguments
See comment at #815
|
2021-12-14 06:50:34 -08:00 |
|
Leonardo de Moura
|
a3361e7d86
|
fix: missing universe assignments made during TC resolution
closes #796
|
2021-12-12 07:07:13 -08:00 |
|
Leonardo de Moura
|
68bd55af32
|
chore: fix codebase
|
2021-12-10 13:12:09 -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
|
41040a81de
|
fix: auxiliary matcher definitions should be treated as abbreviations
The motivation is to prevent performance problems such as the one
described at issue #854.
Fixes #854 after a update stage0
|
2021-12-07 16:43:20 -08:00 |
|
Leonardo de Moura
|
b0fe1e5d10
|
feat: add Tomas Skrivan's TC resolution improvement
This commit implements the TC resolution improvement suggested by
Tomas at #815.
Closes #815.
|
2021-12-06 17:46:11 -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
|
7de749a23c
|
refactor: move setElabConfig to Elab directory
see #849
|
2021-12-06 08:12:59 -08:00 |
|
Sebastian Ullrich
|
80c3d88e3e
|
refactor: optimize critical import path
|
2021-12-06 08:05:24 -08:00 |
|
Sebastian Ullrich
|
458dc64fcb
|
refactor: Lean.Meta should not depend on Lean.Elab
|
2021-12-06 08:05:24 -08:00 |
|
Leonardo de Moura
|
0aa32d643e
|
fix: eta struct and proof irrelevance issue
see #777
|
2021-11-27 07:15:57 -08:00 |
|
Leonardo de Moura
|
2d113e83f9
|
feat: eta struct support for unit-like datatypes
For example, given `a b : Unit`, we have that `a` and `b` are
definitionally equal by `etaStruct`.
See #777
|
2021-11-26 08:36:25 -08:00 |
|
Leonardo de Moura
|
693a96681a
|
doc: fix eta struct comment
|
2021-11-26 08:36:25 -08:00 |
|
Leonardo de Moura
|
88b6ad4756
|
feat: add etaStruct to Meta.Simp.Config
|
2021-11-25 11:31:00 -08:00 |
|
Leonardo de Moura
|
d806344ee2
|
fix: set etaStruct := false at MatchEqns
|
2021-11-25 11:31:00 -08:00 |
|
Leonardo de Moura
|
43217884c0
|
feat: add Meta.Config.etaStruct
It is useful to disable eta for structures for meta programs.
|
2021-11-25 11:31:00 -08:00 |
|
Leonardo de Moura
|
0fc8c1da77
|
feat: eta for structures at recursors
see #777
|
2021-11-25 11:31:00 -08:00 |
|
Leonardo de Moura
|
9e1704f658
|
chore: simplify toCtorWhenK
|
2021-11-25 11:31:00 -08:00 |
|
Leonardo de Moura
|
ccc3f99507
|
chore: use isStructureLike
|
2021-11-25 11:31:00 -08:00 |
|