Commit graph

23544 commits

Author SHA1 Message Date
Sebastian Ullrich
b2b78eb222 test: use printMessageEndPos for leantests 2021-01-15 16:27:59 +01:00
Sebastian Ullrich
021a823f49 feat: add option printMessageEndPos 2021-01-15 16:27:59 +01:00
Sebastian Ullrich
d5ddcacc84 chore: update stage0 2021-01-15 16:27:59 +01:00
Sebastian Ullrich
d1ff0991f4 fix: copy position for identifiers in quotations, not just for atoms 2021-01-15 16:27:59 +01:00
Andrew Kent
4f6bb1feb6
feat: add Float.ofInt 2021-01-15 15:45:28 +01:00
Sebastian Ullrich
dc77c45787 fix: mvar check trace message 2021-01-15 14:34:06 +01:00
Sebastian Ullrich
720f06d251 fix: interpreted bracketedBinder.quot 2021-01-15 14:34:06 +01:00
Leonardo de Moura
6a39c65bd2 feat: improve match error message 2021-01-14 14:58:34 -08: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
d2cdef85ea chore: fix tests 2021-01-14 14:25:41 -08:00
Leonardo de Moura
791388400b feat: improve do error messages
cc @Kha @Vtec234
2021-01-14 14:18:56 -08:00
Leonardo de Moura
25c9727a92 feat: add TermInfo for LVal
@Vtec234 Added the missing info.
Given
```lean
def f3 (s : Nat × Array (Array Nat)) : Array Nat :=
  s.2[1].push s.1
```
We produce the following `InfoTree` for the body (originally at line 30)
```
Array.push (Array.getOp s.snd 1) s.fst : Array Nat @ ⟨30, 2⟩-⟨30, 17⟩
  s : Nat × Array (Array Nat) @ ⟨30, 2⟩-⟨30, 3⟩
  Prod.snd : {α β : Type} → α × β → β @ ⟨30, 4⟩-⟨30, 5⟩
  Array.getOp : {α : Type} → [inst : Inhabited α] → Array α → Nat → α @ ⟨30, 5⟩-⟨30, 6⟩
  1 : Nat @ ⟨30, 6⟩-⟨30, 7⟩
  Array.push : {α : Type} → Array α → α → Array α @ ⟨30, 9⟩-⟨30, 13⟩
  s.fst : Nat @ ⟨30, 14⟩-⟨30, 17⟩
    s : Nat × Array (Array Nat) @ ⟨30, 14⟩-⟨30, 15⟩
    Prod.fst : {α β : Type} → α × β → α @ ⟨30, 16⟩-⟨30, 17⟩
```
2021-01-14 12:19:21 -08:00
Leonardo de Moura
fb52ec8ef5 feat: store binder information in the InfoTree
@Vtec234 I am storing the binder information using `TermInfo`.
If it helps, I can add a custom `Info` constructor.
Example: `| Info.ofBinderInfo (i : BinderInfo)`.
2021-01-14 12:19:21 -08:00
Leonardo de Moura
4d1097327c feat: store ref syntax at LVal 2021-01-14 12:19:21 -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
Sebastian Ullrich
0b146abeb1 chore: CI: don't schedule nightlies on forks 2021-01-14 15:04:45 +01:00
Sebastian Ullrich
5797ee4ab2 chore: CI: try to fix caching on Windows 2021-01-14 14:55:38 +01:00
Leonardo de Moura
5c91b395d6 chore: update stage0 2021-01-13 18:43:16 -08:00
Leonardo de Moura
e5b93783b0 test: TC issue repro 2021-01-13 18:41:01 -08:00
Leonardo de Moura
6e3792e995 chore: fix tests 2021-01-13 18:31:50 -08:00
Leonardo de Moura
bfc1a16c02 chore: adjust instance param order 2021-01-13 18:31:41 -08:00
Leonardo de Moura
74fbca5663 chore: update stage0 2021-01-13 16:34:31 -08:00
Leonardo de Moura
74a9331571 feat: use left-to-right resolution 2021-01-13 16:33:30 -08:00
Leonardo de Moura
8d9339a856 feat: improve error message position for termination check failures 2021-01-13 10:59:28 -08:00
Leonardo de Moura
f115c3919b chore: update stage0 2021-01-13 10:36:38 -08:00
Leonardo de Moura
7a1fe0d235 chore: fix tests 2021-01-13 10:35:38 -08:00
Leonardo de Moura
8ddde1443c test: sorry warning 2021-01-13 10:30:35 -08:00
Leonardo de Moura
e2773113a9 feat: add Float.neg and casts 2021-01-13 10:26:45 -08:00
Leonardo de Moura
b3703739af chore: internal panic meesage 2021-01-13 10:26:25 -08:00
Leonardo de Moura
5e8dc62b94 chore: update stage0 2021-01-13 09:46:57 -08:00
Leonardo de Moura
b6bb31a131 feat: "compile" 'extern' axioms 2021-01-13 09:43:25 -08:00
Leonardo de Moura
f6e5b13591 feat: "implement" sorry using panic 2021-01-13 09:43:25 -08:00
Leonardo de Moura
3ca0aef098 feat: generate warning when sorry is used 2021-01-13 09:43:25 -08:00
Sebastian Ullrich
351285a2e8 fix: Nix: I still forget how to handle argument quoting in bash 2021-01-13 16:39:00 +01:00
Sebastian Ullrich
d1eeba3f74 feat: lean4-mode: allow setting lean4-rootdir after initialization 2021-01-13 16:39:00 +01:00
Sebastian Ullrich
a199f35330 fix: leanpkg: do not rely on PATH 2021-01-13 16:39:00 +01:00
Sebastian Ullrich
3a9658b91f chore: obsolete comment 2021-01-13 16:39:00 +01:00
Leonardo de Moura
0c629b4a26 chore: fix tests 2021-01-12 17:19:38 -08:00
Leonardo de Moura
fdc0f906f4 feat: improve error message position for compiler errors 2021-01-12 17:10:11 -08:00
Sebastian Ullrich
1a8af48cca doc: contribution guidelines & README update 2021-01-12 14:38:36 -08:00
Leonardo de Moura
9f7435b5be chore: cleanup Message.toString 2021-01-12 09:57:46 -08:00
Sebastian Ullrich
74c2d1dca9 chore: remove io_state & abstract_type_context 2021-01-12 09:51:14 -08:00
Sebastian Ullrich
4278480ea3 chore: remove io_state_stream 2021-01-12 09:51:14 -08:00
Sebastian Ullrich
79abd5fec6 chore: remove C++ messages 2021-01-12 09:51:14 -08:00
Sebastian Ullrich
298af4f749 chore: Nix: work around NixOS/nixpkgs#109033 2021-01-12 09:51:14 -08:00
Sebastian Ullrich
a6c319a25c chore: remove message_builder from time_task 2021-01-12 09:51:14 -08:00
Sebastian Ullrich
1cb34604cd chore: remove ios & message from tracing 2021-01-12 09:51:14 -08:00
Sebastian Ullrich
b2e42a3ea6 chore: remove --json option 2021-01-12 09:51:14 -08:00
Sebastian Ullrich
7282470f24 fix: Message.toString: use same formatting as C++ code 2021-01-12 09:51:14 -08:00
Leonardo de Moura
e6a9f97c9b chore: update stage0 2021-01-12 08:14:57 -08:00