Commit graph

26011 commits

Author SHA1 Message Date
Leonardo de Moura
63ad42ba47 refactor: move and generalize reduceProj? 2021-08-10 20:21:04 -07:00
Leonardo de Moura
0623bb3860 feat: update fieldMap with composite field 2021-08-10 20:04:41 -07:00
Leonardo de Moura
ae03f15c92 test: default value set at copied structure 2021-08-10 19:00:34 -07:00
Leonardo de Moura
3b1285bee8 feat: process overriden default values in copied parents 2021-08-10 18:55:12 -07:00
Leonardo de Moura
295cae8afd feat: copy field default values
Only basic examples are working. We still have many TODOs
2021-08-10 16:53:10 -07:00
Leonardo de Moura
47b8fa15f1 fix: propagate visibility annotation 2021-08-10 15:34:07 -07:00
Leonardo de Moura
702a24913f chore: update stage0 2021-08-10 15:07:16 -07:00
Leonardo de Moura
16ea00586d fix: fixes #620 2021-08-10 15:06:06 -07:00
Leonardo de Moura
972f00b0ff fix: pending metavariable issue
It fixes issue reported at https://leanprover.zulipchat.com/#narrow/stream/270676-lean4/topic/let.20overload
2021-08-10 14:52:53 -07:00
Leonardo de Moura
7cec20582b feat: add instance Alternative (MonadCacheT α β m) 2021-08-10 14:28:04 -07:00
Leonardo de Moura
f4433f3147 feat: add Alternative (StateRefT' ω σ m) 2021-08-10 14:27:05 -07:00
Leonardo de Moura
b226ae738c test: add CommGroup diamond 2021-08-10 10:20:37 -07:00
Leonardo de Moura
9cd729265e fix: missing instantiateMVars 2021-08-10 10:04:16 -07:00
Leonardo de Moura
9fe1cd1026 chore: modify default value for option structureDiamondWarning
We still have some TODO items, but structure diamond support is
already useful in practice.
2021-08-10 09:24:53 -07:00
Leonardo de Moura
d03fa17c49 test: copyNewFieldsFrom 2021-08-10 09:19:27 -07:00
Leonardo de Moura
50deae9b8b feat: copy binderInfo and inferMod from original field 2021-08-10 09:12:58 -07:00
Leonardo de Moura
bc26a9b527 feat: improve copyNewFieldsFrom 2021-08-10 09:08:35 -07:00
Leonardo de Moura
af1cecc641 feat: better error message 2021-08-10 07:46:15 -07:00
Leonardo de Moura
9e5998baf0 feat: register instance/reducible attribute for structuer diamond coercions 2021-08-10 07:16:59 -07:00
Leonardo de Moura
0f184a8c93 fix: binder annotation for class diamond coercions 2021-08-10 06:59:28 -07:00
Leonardo de Moura
2b71e16551 test: structure diamond coercion 2021-08-10 06:31:44 -07:00
Sebastian Ullrich
0b3e548672 fix: syntax tree returned by syntax elaborator 2021-08-10 12:02:04 +02:00
Leonardo de Moura
4089fca103 chore: update stage0 2021-08-09 19:02:38 -07:00
Leonardo de Moura
bccad8edb1 feat: add coercion to parent structure whose fields having been copied 2021-08-09 19:01:08 -07:00
Leonardo de Moura
97664de3ee fix: diamonds with dependent fields 2021-08-09 19:01:08 -07:00
Leonardo de Moura
e8403f89b0 fix: ensure field names are atomic 2021-08-09 19:01:08 -07:00
Leonardo de Moura
52710688f7 chore: update stage0 2021-08-09 19:01:08 -07:00
Leonardo de Moura
6f318ddde3 feat: save binderInfo and inferMod ad registerStructure 2021-08-09 19:01:08 -07:00
Leonardo de Moura
80cf5202b8 chore: update stage0 2021-08-09 19:01:08 -07:00
Leonardo de Moura
5ef72057e9 feat: save additional information at StructureFieldInfo 2021-08-09 19:01:08 -07:00
Leonardo de Moura
f67501a890 chore: cleanup 2021-08-09 19:01:08 -07:00
Leonardo de Moura
a0bd964255 test: overriding default value of private field 2021-08-09 19:01:08 -07:00
Leonardo de Moura
3f3e5d9dcb fix: private field + default value bug 2021-08-09 19:01:08 -07:00
Leonardo de Moura
3896c44b55 chore: fix incorrect comment
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2021-08-09 19:01:08 -07:00
Leonardo de Moura
fdce7a99e1 feat: structure diamonds basic support
See TODO in the new comments.
2021-08-09 19:01:08 -07:00
Leonardo de Moura
56c2f595c7 feat: add getFieldType 2021-08-09 19:01:08 -07:00
Daniel Selsam
0118c47117 refactor: separate pp.funBinderTypes and pp.piBinderTypes 2021-08-09 16:13:40 +02:00
Sebastian Ullrich
4e7cb76281 chore: Nix: adjust local cache config 2021-08-09 12:16:17 +02:00
Sebastian Ullrich
119f685cda
doc: fix link 2021-08-08 18:39:28 +02:00
Sebastian Ullrich
40274e487f chore: fix docs 2021-08-08 13:26:46 +02:00
Sebastian Ullrich
341b4ac652 doc: link to some macro documentation 2021-08-08 12:41:59 +02:00
François G. Dorais
358a129d78 fix: protect rfl 2021-08-07 13:25:54 -07:00
Leonardo de Moura
ba6fcd7b74 chore: update stage0 2021-08-07 13:23:41 -07:00
Leonardo de Moura
1d9d8c7e75 chore: fix tests
close #402
2021-08-07 13:22:58 -07:00
Leonardo de Moura
9cc94296e5 chore: remove staging workaround theorems 2021-08-07 12:52:31 -07:00
Leonardo de Moura
f1272f70cb chore: update stage0 2021-08-07 12:50:18 -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
Leonardo de Moura
a0c2142233 chore: update stage0 2021-08-07 07:30:41 -07:00
Leonardo de Moura
a863f1b8a3 fix: fixes #616 2021-08-07 07:29:54 -07:00
Leonardo de Moura
8a84532760 feat: add PEmpty
closes #537
2021-08-06 19:18:22 -07:00