blob: 9c0e86312bd8a8ff4d92cca5a1a31cea204a4da9 [file] [edit]
/-!
# Tests for the `pp.proofs` option
-/
section
set_option pp.analyze.trustSubst true
set_option pp.proofs false
example (h : α = β) : h ▸ (a : α) = (b : β) := _
example (h : α = β) : id h ▸ (a : α) = (b : β) := _
example (h : α = β) : id h ▸ (a : α) = (b : β) := by simp (config := { failIfUnchanged := false })
set_option pp.proofs.withType false
example (h : α = β) : id h ▸ (a : α) = (b : β) := _
set_option pp.proofs true
example (h : α = β) : id h ▸ (a : α) = (b : β) := _
end
/-!
Testing threshold option
-/
section
#check let _ := Nat.le_succ 1; 0
set_option pp.proofs.threshold 10
#check let _ := Nat.le_succ 1; 0
end