By having the `pp.proofs` feature use `⋯` when omitting proofs, when users copy/paste terms from the InfoView the elaborator can give an error message explaining why the term cannot be elaborated. Also adds `pp.proofs.threshold` option to allow users to pretty print shallow proof terms. By default, only atomic proof terms are pretty printed. This adjustment was suggested in PR #3201, which added `⋯` and the related `pp.deepTerms` option.
26 lines
398 B
Text
26 lines
398 B
Text
let_fun f := fun x => x * 2;
|
|
let_fun x := 1;
|
|
let_fun y := x + 1;
|
|
f (y + x) : Nat
|
|
a b : Nat
|
|
h1 : a = 0
|
|
h2 : b = 0
|
|
⊢ (let_fun x := 1;
|
|
x + x) >
|
|
b
|
|
(let_fun this := id;
|
|
this)
|
|
1 : Nat
|
|
a b : Nat
|
|
h : a > b
|
|
⊢ a > b
|
|
let_fun n := 5;
|
|
{ val := [], property := (⋯ : 0 ≤ n) } : { as // List.length as ≤ 5 }
|
|
rfl : (let_fun n := 5;
|
|
n) =
|
|
let_fun n := 5;
|
|
n
|
|
rfl : 2 = 2
|
|
5
|
|
let_fun n := 5;
|
|
n
|