Leonardo de Moura
837677cb4c
test: doc string
2021-09-30 11:27:09 -07:00
Leonardo de Moura
db5df69db4
fix: bounds check
...
fixes #704
2021-09-30 07:55:10 -07:00
Sebastian Ullrich
9569d7997c
chore: update Nix
2021-09-30 13:34:26 +02:00
Sebastian Ullrich
ee73ad9f23
chore: update mdBook fork
2021-09-30 13:02:39 +02:00
Sebastian Ullrich
f9ab429f75
fix: Nix build
2021-09-30 10:24:45 +02:00
tydeu
3abf53d196
chore: just build bin in examples/bootstrap
...
Reason: `bin` now imports the entire `Lake` lib so this is unecessary
2021-09-30 02:20:41 -04:00
Leonardo de Moura
ff38774b95
test: printDecls
2021-09-29 17:44:21 -07:00
Leonardo de Moura
09d0c93589
feat: declare functions in mutual block using auxiliary fuction defined using WF
2021-09-29 11:24:52 -07:00
Leonardo de Moura
608417b946
fix: check number of explicit variables at induction/cases alternatives when @ is not used
...
fixes #690
2021-09-29 07:39:38 -07:00
Leonardo de Moura
a434489e51
chore: update stage0
2021-09-28 21:10:51 -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
200a38e20c
feat: improve letIdLhs parser
...
The extra space is only really needed to distinguish an array update (NIY)
```
let x[i] := ...
```
from a declaration taking an instance argument
```
let f [Monad m] := ...
```
closes #696
2021-09-28 18:10:25 -07:00
Leonardo de Moura
f4759c9a22
chore: update stage0
2021-09-28 17:49:20 -07:00
Leonardo de Moura
b85d95b7b6
fix: panic in monadic polymorphic code
...
fixes #695
2021-09-28 17:46:19 -07:00
Leonardo de Moura
d0462153a0
fix: bug at smart unfolding procedure
...
It fixes an issue reported at https://leanprover.zulipchat.com/#narrow/stream/270676-lean4/topic/Simplifications.20in.20proofs.2Ftype-checking.20not.20happening.3B.20wh.2E.2E.2E
2021-09-28 10:45:54 -07:00
Sebastian Ullrich
2be3d97cdd
chore: leanc: typo & minor modifications
2021-09-28 14:15:58 +02:00
Leonardo de Moura
4c051896df
refactor: sizeofMeasure => sizeOfWFRel
...
This commit also makes the first argument of `sizeOfWFRel` implicit.
2021-09-27 19:06:10 -07:00
Leonardo de Moura
bd98e6a586
feat: refine WellFounded.fix functional F over PSigma.casesOn
2021-09-27 19:06:10 -07:00
Leonardo de Moura
d0391d07c2
feat: use PSigma.casesOn instead of projections at packDomain
...
Reason: we want to "refine" the `WellFounded.fix` functional `F` over it.
2021-09-27 19:06:10 -07:00
Leonardo de Moura
8b79176102
feat: refine WellFounded.fix functional F over Sum.casesOn
2021-09-27 19:06:10 -07:00
Leonardo de Moura
f1be1d5bba
feat: add simpProj
...
Simplifier for kernel projections.
2021-09-27 19:06:10 -07:00
Leonardo de Moura
c53d892f22
feat: add Expr.projExpr!
2021-09-27 19:06:10 -07:00
Sebastian Ullrich
ae0308fc04
chore: leanc: do not pass linking flags when not linking, again
2021-09-27 17:40:59 +02:00
tydeu
3b78652547
refactor: prefer build rather than fetch terminology
2021-09-27 02:50:45 -04:00
tydeu
032be7ee2e
refactor: generalize buildRBTop
2021-09-27 02:40:24 -04:00
Leonardo de Moura
108518aad1
feat: use simp at mkDecreasingProof
2021-09-26 16:32:48 -07:00
Leonardo de Moura
d13bdef6e2
feat: add WF.mkFix
2021-09-26 16:01:07 -07:00
tydeu
a093a38459
refactor: rename package.lean to lakefile.lean
2021-09-26 18:52:31 -04:00
Leonardo de Moura
a7f36cc642
chore: style
2021-09-26 15:52:13 -07:00
tydeu
6a9997c7ad
chore: -O3 not -03
2021-09-25 23:59:13 -04:00
tydeu
ff1e63c719
refactor: default leancArgs to -03, -DNDEBUG (like leanpkg)
2021-09-25 23:57:31 -04:00
tydeu
3f534e1155
refactor: use DSL in examples
2021-09-25 23:53:34 -04:00
tydeu
2e5b4d2221
feat: add simple DSL for package configurations
2021-09-25 23:40:31 -04:00
tydeu
63ad2d7765
chore: bump to v3.0.0-pre
2021-09-25 22:59:15 -04:00
Leonardo de Moura
094b70c3d4
feat: add notation for Sum and PSum
2021-09-25 18:24:27 -07:00
Leonardo de Moura
dc5f44edcf
feat: delaborate Sigma and PSigma
2021-09-25 18:19:44 -07:00
Leonardo de Moura
9d69189a60
chore: use Sum instead of PSum at PackMutual
2021-09-25 17:24:56 -07:00
Leonardo de Moura
d4509878bb
feat: add WellFoundedRelation for termination_by
2021-09-25 17:21:03 -07:00
Leonardo de Moura
ceb9889b0e
feat: elaborate temination_by term
2021-09-25 16:54:41 -07:00
tydeu
a9c0210ef3
refactor: use import Lake in package configurations
2021-09-25 19:36:00 -04:00
tydeu
efadebd5ef
refactor: move main into Lake.Main which is not imported by Lake
2021-09-25 19:18:10 -04:00
tydeu
1d052a1b39
fix: update examples/git commit hash
2021-09-25 18:38:42 -04:00
tydeu
4af8135172
refactor: remove the package version field
...
Reason: It is unused. See https://leanprover.zulipchat.com/#narrow/stream/270676-lean4/topic/.5BRFC.5D.20name.2Fversion.20package.20fields/near/254114011 for more discussion of topic.
2021-09-25 18:31:33 -04:00
Leonardo de Moura
a5b27952b5
fix: panic messages on invalid input
...
fixes #689
2021-09-25 09:01:01 -07:00
Leonardo de Moura
1282fb2d97
fix: getMatchWithExtra
...
`getMatchKeyArgs` returns arguments in reverse order.
2021-09-25 08:36:12 -07:00
Leonardo de Moura
4a8679a57c
feat: add Subarray.popFront
2021-09-25 08:35:41 -07:00
Sebastian Ullrich
816dc1895f
perf: reuse idle thread in favor of spawning new one
2021-09-25 07:34:12 -07:00
Sebastian Ullrich
e6927253cf
feat: use leanc written in Lean for testing & distribution
...
building is still handled by a (minimal) Bash script for bootstrapping purposes
2021-09-25 09:59:50 +02:00
Sebastian Ullrich
a9c5eb491d
chore: put import library in lib/lean/
2021-09-25 09:59:50 +02:00
tydeu
ba8067f3bd
refactor: don't use globs to determine local modules + cleanup
...
Reasion: globs should be submodules of the roots
2021-09-24 01:11:29 -04:00