Leonardo de Moura
be7ddef689
refactor: move congr and congrFun to Prelude.lean
...
We use them to generate the `sizeOf` lemmas.
2021-01-25 17:18:08 -08:00
Leonardo de Moura
d408c835d2
fix: defaultInstance priorities for Neg Int and OfScientific Float
2021-01-25 13:21:07 -08:00
Leonardo de Moura
d834d88b88
fix: performance bottleneck
...
@Kha @dselsam
The instances
```
instance (sep) : Coe (Array Syntax) (SepArray sep)
instance (sep) : Coe (SepArray sep) (Array Syntax)
```
The instances above generate a loop. The current `isNewAnswer`
predicate is too weak and assumes that answers with different
metavariables are different. Note that, using `isDefEq` there is
incorrect and too expensive. I will fix this later in the future.
In the meantime, I am using `CoeTail` to avoid the loop.
2021-01-24 17:45:50 -08:00
Leonardo de Moura
7ff62ee46b
feat: add CoeHTCT
2021-01-24 17:45:50 -08:00
Leonardo de Moura
acfac85ac0
feat: add IO.getNumHeartbeats
2021-01-24 17:45:50 -08:00
Sebastian Ullrich
446f953461
feat: allow hygienic capture of section variables in quotations
2021-01-24 11:46:04 -08:00
Wojciech Nawrocki
a3f5aca22f
fix: tail-recursive readBinToEnd
2021-01-22 18:02:31 +01:00
Wojciech Nawrocki
8addea6e74
chore: remove Handle.size
2021-01-22 18:02:31 +01:00
Sebastian Ullrich
0c91b3769e
chore: replace variables in src/
2021-01-22 14:36:05 +01:00
Leonardo de Moura
1f88d66035
feat: add missing instances
2021-01-21 10:35:22 -08:00
Leonardo de Moura
e8401ea6e7
chore: remove old instances
2021-01-20 18:12:35 -08:00
Leonardo de Moura
7c6d09496e
chore: define SizeOf Lean.Name instance manually
2021-01-20 18:07:14 -08:00
Leonardo de Moura
46c62a3fed
chore: add missing instances
2021-01-20 17:53:43 -08:00
Leonardo de Moura
ce11b23a59
feat: use deriving insertion sizeOf for types defined at Prelude.lean
2021-01-20 17:48:17 -08:00
Leonardo de Moura
ad913de340
refactor: define SizeOf before Core.lean
2021-01-20 17:07:02 -08:00
Sebastian Ullrich
21a826ee51
chore: naming
2021-01-20 22:47:18 +01:00
Mohamed Al-Fahim
53750ddae6
chore: fix typos
2021-01-20 22:43:25 +01:00
Sebastian Ullrich
a9f96ace3e
chore: naming
2021-01-20 16:48:50 +01:00
Sebastian Ullrich
79107a2316
feat: copy & store whole ref range in SourceInfo
2021-01-20 16:48:50 +01:00
Sebastian Ullrich
462e1d54a3
chore: replace uses of copyInfo with automatic position copying in syntax quotations
...
We could introduce a `copyPos` alternative, but turns out we don't need it right now
2021-01-20 16:48:50 +01:00
Sebastian Ullrich
51e408590f
chore: do not copy whitespace in Syntax synth helpers
2021-01-20 16:48:50 +01:00
Sebastian Ullrich
8ad061e328
feat: leanpkg: change print-path to print-paths that also emit LEAN_SRC_PATH (unused as of yet)
2021-01-19 19:06:01 +01:00
Sebastian Ullrich
e662992533
feat: IO.removeFile
2021-01-19 19:06:01 +01:00
Sebastian Ullrich
d7733ba662
feat: use leanpkg print-path for worker initialization
2021-01-19 19:06:01 +01:00
Leonardo de Moura
0a6d83127d
chore: cleanup
2021-01-18 11:46:13 -08:00
Wojciech Nawrocki
af04c66e22
chore: comment style in Init.String.Basic
2021-01-15 13:29:22 -08:00
Wojciech Nawrocki
f3ab908888
fix: substring APIs
2021-01-15 13:29:22 -08:00
Andrew Kent
4f6bb1feb6
feat: add Float.ofInt
2021-01-15 15:45:28 +01:00
Leonardo de Moura
4752c56fe8
feat: improve range of missing cases: ... error message
...
@Kha I added the helper combinator `withHeadRefOnly x`. I executes `x`
using the head token of the current `ref` as the new `ref`.
2021-01-14 14:48:53 -08:00
Leonardo de Moura
791388400b
feat: improve do error messages
...
cc @Kha @Vtec234
2021-01-14 14:18:56 -08:00
Christian Pehle
225fae9dc2
feat: add shiftLeft and shiftRight for UInt16 and UInt8
...
The same operations are implemented for UInt32, UInt64 and USize
already.
2021-01-14 15:30:35 +01:00
Leonardo de Moura
bfc1a16c02
chore: adjust instance param order
2021-01-13 18:31:41 -08:00
Leonardo de Moura
e2773113a9
feat: add Float.neg and casts
2021-01-13 10:26:45 -08:00
Leonardo de Moura
f6e5b13591
feat: "implement" sorry using panic
2021-01-13 09:43:25 -08:00
Leonardo de Moura
873634be7e
feat: hierarchical InfoTree
2021-01-09 14:10:11 -08:00
Leonardo de Moura
244b72befd
feat: simpArrow
2021-01-01 17:15:15 -08:00
Leonardo de Moura
e742dd1348
feat: allow user to set Simp.Config at simp
2021-01-01 15:12:18 -08:00
Leonardo de Moura
ce09e795b9
feat: finalizeProof at rewrite step
2021-01-01 11:33:34 -08:00
Leonardo de Moura
4a06057410
feat: simp
2020-12-31 15:44:18 -08:00
Leonardo de Moura
34f6f8ef5d
feat: pre/post simp lemmas
2020-12-30 13:46:14 -08:00
Sebastian Ullrich
4a262fbc5b
fix: remove auto-cancellation of IO tasks
...
Chained tasks were never auto-canceled, so let's be explicit everywhere
2020-12-30 17:03:09 +01:00
Leonardo de Moura
eba3983658
feat: use binrel! gadget to define >, <, ... notations
...
It has better support for applying coercions.
2020-12-29 16:53:10 -08:00
Sebastian Ullrich
6e33020da4
feat: version information API
2020-12-29 14:42:48 -08:00
Leonardo de Moura
d0b8dc128b
chore: annotate instance
2020-12-28 17:57:52 -08:00
Leonardo de Moura
539c43e153
fix: typo
...
closes #238
2020-12-28 15:55:25 -08:00
Sebastian Ullrich
4a22854b1e
chore: make server tests fixable
2020-12-27 15:05:29 +01:00
Sebastian Ullrich
1f563695bb
feat: From/ToJson derive handlers
2020-12-26 19:38:24 +01:00
Leonardo de Moura
4450b8567d
fix: sigma notation precedence
2020-12-26 09:35:40 -08:00
Leonardo de Moura
7f9466a7ce
chore: use soft line breaks at if-then-else formatters
...
and remove `priority` leftover.
2020-12-24 08:35:43 -08:00
Leonardo de Moura
3655b1d9d0
chore: remove old if-then-else parsers
2020-12-24 08:25:14 -08:00