Commit graph

26741 commits

Author SHA1 Message Date
Leonardo de Moura
c96c677095 chore: update stage0 2020-11-29 08:05:27 -08:00
Leonardo de Moura
ee5679c77c chore: prepare to add optional priorities to the notation and mixfix commands 2020-11-29 08:05:26 -08:00
Leonardo de Moura
05fc1e8bbf feat: optional name for unification hints 2020-11-29 08:05:26 -08:00
Sebastian Ullrich
f649f24014 fix: compilation on Windows 2020-11-29 14:08:53 +01:00
Sebastian Ullrich
c0f94c902e fix: memory leak in interpreter 2020-11-29 14:08:53 +01:00
Sebastian Ullrich
03acc5ea1f feat: Nix: sanitized build 2020-11-29 14:08:53 +01:00
Leonardo de Moura
2ffd929227 feat: improve unification hints
The constraints don't need to be in the same universe anymore.
The new test demonstrates why this is useful.
2020-11-28 19:03:21 -08:00
Leonardo de Moura
16003871e4 feat: add helper instance 2020-11-28 19:01:54 -08:00
Leonardo de Moura
249d79218c test: CoeFun 2020-11-28 17:46:00 -08:00
Leonardo de Moura
5ead7bfc81 feat: add [elabWithoutExpectedType] attribute 2020-11-28 13:23:37 -08:00
Leonardo de Moura
b64c7f7357 chore: update stage0 2020-11-28 12:48:12 -08:00
Leonardo de Moura
470717ba67 feat: autoBoundImplicit for universes 2020-11-28 12:45:57 -08:00
Leonardo de Moura
5a396a4872 feat: insert auto bound implicit arguments before explicitly provided ones
cc @Kha
2020-11-28 12:45:57 -08:00
Leonardo de Moura
0b8b30ef9e fix: CoeFun and CoeSort perf issue 2020-11-28 12:45:57 -08:00
Leonardo de Moura
4fc32d114f chore: "unbound implicit" => "auto bound implicit" 2020-11-28 12:45:57 -08:00
Leonardo de Moura
b6f2ed9e78 feat: add instances for converting CoeFun and CoeSort into Coe 2020-11-28 12:45:57 -08:00
Sebastian Ullrich
d7c3be09f6 feat: Nix: inherit LEAN_PATH in lean-package/emacs-package 2020-11-28 17:36:20 +01:00
Sebastian Ullrich
c432ca72d6 feat: Nix: template for custom packages 2020-11-28 17:36:20 +01:00
Sebastian Ullrich
99383d97e1 feat: measure interpreter time & fix enabling interpreter traces 2020-11-28 17:36:20 +01:00
Sebastian Ullrich
b41301747d chore: fall back to raw printer on pretty printing failure
/cc @leodemoura
2020-11-28 17:36:20 +01:00
Sebastian Ullrich
2a5c85d9e3 refactor: inline FormatMacro
@leodemoura: This was just a remnant of the initial frontend porting, correct?
2020-11-28 12:37:36 +01:00
Sebastian Ullrich
6a61296f73 chore: Nix: use same stage for retrieving dependencies 2020-11-28 12:37:36 +01:00
Sebastian Ullrich
e250e8e433 fix: Nix: use interpreter.prefer_native=false during bootstrap 2020-11-28 12:37:36 +01:00
Sebastian Ullrich
3a4b61f8c7 feat: Nix: debug builds 2020-11-28 12:37:35 +01:00
Sebastian Ullrich
1bcc8f7c16 chore: parenthesizer: more helpful panic message 2020-11-28 12:37:35 +01:00
Sebastian Ullrich
3c86f79bad fix: one instance of parenthesizer "visiting a syntax tree without precedences" 2020-11-28 12:37:35 +01:00
Leonardo de Moura
e21b4a6399 feat: nicer syntax for unification hints 2020-11-27 19:18:18 -08:00
Leonardo de Moura
5a49b3d662 chore: update stage0 2020-11-27 19:02:37 -08:00
Leonardo de Moura
3d3bed56fd feat: add alias bracketedBinder 2020-11-27 19:01:26 -08:00
Leonardo de Moura
4ce69bfcab chore: update stage0 2020-11-27 18:16:15 -08:00
Leonardo de Moura
ebba9d119d feat: unification hints 2020-11-27 18:12:49 -08:00
Leonardo de Moura
9d3d05e02f chore: update stage0 2020-11-27 15:09:31 -08:00
Leonardo de Moura
0869f38de4 chore: update structure, class, inductive 2020-11-27 15:09:30 -08:00
Wojciech Nawrocki
b1e6edefde fix: redirect child I/O to null on Process.Stdio.null
And don't use errno for Win32 API errors.
2020-11-27 13:17:32 -08:00
Leonardo de Moura
5981553e11 chore: remove workaround 2020-11-27 13:15:31 -08:00
Leonardo de Moura
89298b165d chore: update stage0 2020-11-27 13:11:11 -08:00
Leonardo de Moura
3f720d778c fix: unnecessary unfolding 2020-11-27 13:08:18 -08:00
Leonardo de Moura
c0db9f1e0c chore: adjust stdlib to recent changes 2020-11-27 12:26:07 -08:00
Leonardo de Moura
f2ae695e14 test: propagateExpectedType 2020-11-27 12:17:23 -08:00
Leonardo de Moura
745a41fcf0 chore: update stage0 2020-11-27 12:16:16 -08:00
Leonardo de Moura
58f1f512f1 feat: simplify heuristics at propagateExpectedType 2020-11-27 12:13:29 -08:00
Leonardo de Moura
d212a5b671 feat: add macro withoutExpectedType! <term> 2020-11-27 11:08:58 -08:00
Leonardo de Moura
09ed75f517 feat: remove restriction from propagateExpectedType 2020-11-27 09:14:26 -08:00
Leonardo de Moura
93cc8a6403 chore: fix test
It was working for the wrong reasons
2020-11-27 09:00:11 -08:00
Leonardo de Moura
fcc382df08 fix: improve Offset.lean
It did not support for assigned metavariables.
2020-11-27 08:40:43 -08:00
Leonardo de Moura
2909313475 fix: doLetArrow and doReassignArrow
@Kha the new tests did not work without this fix.
The `| _ =>` was being parsed as part of the `doLetArrow` and `doReassignArrow`
2020-11-26 10:29:08 -08:00
Leonardo de Moura
2c38cb56ea test: unbundled ConstantFunction 2020-11-26 09:48:12 -08:00
Leonardo de Moura
43d98ef7e3 fix: Term/Sort parsers
missing `checkColGt`
2020-11-26 09:34:32 -08:00
Leonardo de Moura
ee77afafa5 doc: add typeclass.md 2020-11-26 08:42:42 -08:00
Leonardo de Moura
8898988747 fix: namespace resolution 2020-11-26 08:17:35 -08:00