feat(shell): start 'lean --server' with 'pp.beta = true'
This commit is contained in:
parent
2d94584816
commit
abdd784729
2 changed files with 11 additions and 0 deletions
|
@ -333,6 +333,7 @@ int main(int argc, char ** argv) {
|
|||
}
|
||||
if (ok && server && default_k == input_kind::Lean) {
|
||||
signal(SIGINT, on_ctrl_c);
|
||||
ios.set_option(lean::name("pp", "beta"), true);
|
||||
lean::server Sv(env, ios, num_threads);
|
||||
if (!Sv(std::cin))
|
||||
ok = false;
|
||||
|
|
10
tests/lean/run/ppbeta.lean
Normal file
10
tests/lean/run/ppbeta.lean
Normal file
|
@ -0,0 +1,10 @@
|
|||
import data.int
|
||||
open [coercions] int
|
||||
open [coercions] nat
|
||||
|
||||
definition lt (a b : int) := int.le (int.add a 1) b
|
||||
infix `<` := lt
|
||||
infixl `+`:65 := int.add
|
||||
|
||||
theorem lt_add_succ2 (a : int) (n : nat) : a < a + nat.succ n :=
|
||||
int.le_intro (show a + 1 + n = a + nat.succ n, from sorry)
|
Loading…
Reference in a new issue