Leonardo de Moura
d6f778bec4
refactor: arbitrary without explicit arguments
...
@Kha I was tired of writing `arbitrary _` :)
There 0 places in the stdlib where the type needs to be provided.
If in the future we need to specify the type we can use
`arbitrary (α := <type>)`
2020-11-25 09:07:38 -08:00
Leonardo de Moura
b72a3c69b6
fix: ambiguity at induction/cases
...
See efc3a320fe
2020-11-24 14:59:12 -08:00
Leonardo de Moura
29303f17f3
chore: test unboundImplicitLocals
2020-11-22 09:48:15 -08:00
Leonardo de Moura
304c80d610
feat: use <|
2020-11-19 09:03:38 -08:00
Leonardo de Moura
87d97c24a7
chore: code convention
2020-11-19 08:13:11 -08:00
Leonardo de Moura
7e533b4650
refactor: use Lists for Array reference implementation
...
Motivation: better reduction in the kernel.
cc @Kha
2020-11-17 17:05:53 -08:00
Leonardo de Moura
df0e4808ec
feat: define tactic parsers using syntax command
2020-11-17 13:52:36 -08:00
Leonardo de Moura
8c4ac7ccc1
refactor: rename LeanInit ==> Meta, and reduce dependencies
2020-11-13 16:00:31 -08:00
Leonardo de Moura
65dafaf07c
fix: stdlib and tests
...
We also declare a few macros for the syntax command.
2020-11-12 07:12:30 -08:00
Leonardo de Moura
2537a2b84a
chore: implement list and array literals using syntax command
2020-11-11 13:50:25 -08:00
Leonardo de Moura
cca3bad0bb
feat: add Prelude.lean
...
`Prelude.lean` has no dependencies, and
at the end of `Prelude`, the `syntax` and `macro` commands are operational.
2020-11-10 18:08:18 -08:00
Leonardo de Moura
c665d5e20a
chore: cleanup
2020-11-10 15:40:00 -08:00
Leonardo de Moura
2d2d39c78e
chore: use mut
2020-11-07 17:32:13 -08:00
Leonardo de Moura
bf4d48f348
chore: cleanup for presentation
2020-11-05 12:43:02 -08:00
Leonardo de Moura
8c9f148e2f
chore: use new termFor, termReturn, termTry, and tryUnless
2020-10-31 19:19:18 -07:00
Leonardo de Moura
6858cb5fb6
chore: cleanup
2020-10-29 10:24:16 -07:00
Leonardo de Moura
131cb7036f
feat: add combinators for Subarray
2020-10-28 19:49:38 -07:00
Leonardo de Moura
4ba21ea10c
chore: cleanup src/Array/Basic.lean
2020-10-28 19:35:42 -07:00
Leonardo de Moura
6765440724
chore: remove clutter
2020-10-28 14:11:06 -07:00
Leonardo de Moura
3e6b2964cf
chore: minor cleanup
2020-10-28 13:18:45 -07:00
Leonardo de Moura
898a08a0c1
chore: avoid Has prefix in type classes
...
closes #203
2020-10-27 18:29:19 -07:00
Leonardo de Moura
5fed774461
chore: HasRepr ==> Repr
2020-10-27 16:15:10 -07:00
Leonardo de Moura
10c32fcf94
chore: HasToString => ToString
2020-10-27 16:11:48 -07:00
Leonardo de Moura
13c2a8ff51
chore: remove #lang lean4 header
2020-10-25 09:54:07 -07:00
Leonardo de Moura
3941b55bb8
chore: remove old HasCoe
2020-10-24 16:22:52 -07:00
Leonardo de Moura
7dfff63db6
chore: move to new frontend
2020-10-23 17:15:05 -07:00
Leonardo de Moura
3651aa2159
chore: move to new frontend
2020-10-23 16:40:15 -07:00
Leonardo de Moura
78c05e8f46
chore: move to new frontend
2020-10-23 16:13:55 -07:00
Leonardo de Moura
7030dc91f2
chore: move to new frontend
2020-10-23 12:50:03 -07:00
Leonardo de Moura
fc9fb93c38
chore: adjust notation
2020-10-20 15:24:14 -07:00
Leonardo de Moura
51dc10dd93
feat: array slicing notation
2020-10-09 16:40:18 -07:00
Leonardo de Moura
5a40d9eb13
feat: add Subarray
2020-10-09 16:06:24 -07:00
Leonardo de Moura
749e2063cf
feat: add interpolated string for toString
2020-10-09 14:38:24 -07:00
Leonardo de Moura
650bd95ab9
feat: add efficient Array.forIn
2020-10-09 13:07:20 -07:00
Leonardo de Moura
98f7e9b3e4
chore: naming convention
2020-09-24 19:22:24 -07:00
Leonardo de Moura
c46e64b089
feat: add Array.zipWith and Array.zip
2020-09-23 18:24:56 -07:00
Leonardo de Moura
ea2e86afba
feat: add Array.allDiff
2020-09-08 16:16:14 -07:00
Leonardo de Moura
fc1e4cb533
feat: add Array.isPrefixOf
2020-09-08 14:40:43 -07:00
Leonardo de Moura
3ae3c51a8c
feat: add Array.partition
2020-09-05 08:48:15 -07:00
Leonardo de Moura
0199e93079
chore: add Array.erase
2020-09-04 13:35:01 -07:00
Leonardo de Moura
3dbd2b728b
feat: add Array.getMax?
2020-09-04 10:40:34 -07:00
Leonardo de Moura
47ff4d0e8e
chore: add helper functions
...
TODO: we should `Subarray` and functions/methods for it. Then, we can delete
functions such as `foldlFromM`
2020-08-27 14:58:27 -07:00
Leonardo de Moura
bd8e2d305f
feat: add Array.filterMap
2020-08-14 10:50:48 -07:00
Leonardo de Moura
81ae6a734b
feat: mark List.toArray with [matchPattern]
2020-08-13 14:25:47 -07:00
Leonardo de Moura
aefc9a473f
feat: add auxiliary definitions for compiling array literals in pattern matching expressions
2020-08-07 09:23:33 -07:00
Sebastian Ullrich
8f67db0101
refactor: never implicitly ignore monadic results
...
Also change `do e; f` to desugar to `e *> f` so that it is affected as well
2020-04-23 11:09:59 -07:00
Sebastian Ullrich
f66039f7f0
feat: generalize Array function universes
2020-04-06 13:48:09 -07:00
Leonardo de Moura
2d7ec0b49c
fix: bug at unsafe umapMAux implementation
...
closes #125
2020-03-14 13:41:14 -07:00
Leonardo de Moura
6ad0c2cc18
feat: simplify unsafeCast
2020-03-14 13:10:56 -07:00
Leonardo de Moura
a0090b378b
feat: move Array extensionality theorems to Init
2020-03-13 06:39:13 -07:00