Skip to content

Commit 5cf41b2

Browse files
committed
chore(MathlibTest): prefer setting pp.mvars.anonymous to false over pp.mvars (leanprover-community#34604)
The new option only replaces autogenerated anonymous metavariables, but leaves ordinary accessible mvars with names present.
1 parent e0a6278 commit 5cf41b2

7 files changed

Lines changed: 7 additions & 7 deletions

File tree

MathlibTest/Algebra/MonoidAlgebra/Defs.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ variable {R M A} [Semiring R] [Monoid M] [AddMonoid A]
44
section Notation
55
open scoped MonoidAlgebra AddMonoidAlgebra
66

7-
set_option pp.mvars false
7+
set_option pp.mvars.anonymous false
88
-- TODO: could resolve ambiguity based on Monoid / AddMonoid
99
/--
1010
error: Ambiguous term

MathlibTest/EuclideanSpace.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ section delaborator
1010
#guard_msgs in
1111
#check !₂[1, 2, 3]
1212

13-
set_option pp.mvars false in
13+
set_option pp.mvars.anonymous false in
1414
/-- info: !₀[] : WithLp 0 (Fin 0 → ?_) -/
1515
#guard_msgs in
1616
#check !₀[]

MathlibTest/FinCoercions.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
import Mathlib
77

8-
set_option pp.mvars false
8+
set_option pp.mvars.anonymous false
99

1010
-- We first verify that there is no global coercion from `Nat` to `Fin n`.
1111
-- Such a coercion would frequently introduce unexpected modular arithmetic.

MathlibTest/Util/PrintSorries.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import Mathlib.Util.PrintSorries
22

3-
set_option pp.mvars false
3+
set_option pp.mvars.anonymous false
44

55
/-!
66
Direct use of `sorry`

MathlibTest/abel.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ h : R (2 • myId x) (2 • myId x)
179179
⊢ True
180180
-/
181181
#guard_msgs (trace) in
182-
set_option pp.mvars false in
182+
set_option pp.mvars.anonymous false in
183183
example (x : ℤ) (R : ℤ → ℤ → Prop) (hR : Reflexive R) : True := by
184184
have h : R (myId x + x) (x + myId x) := hR ..
185185
abel_nf at h

MathlibTest/conv_widget.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ example : 1 = Nat.log2 4 → False := by
154154
test "/0/1/1"
155155
exact test_sorry
156156

157-
set_option pp.mvars false in
157+
set_option pp.mvars.anonymous false in
158158
/--
159159
info: `conv?` would output:
160160
conv =>

MathlibTest/superscript.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ open Nat' (γ) in
194194
#guard_msgs in #check testsub(ᵧ ₙ)
195195

196196
/- The delaborator should reject metavariables. -/
197-
set_option pp.mvars false in
197+
set_option pp.mvars.anonymous false in
198198
/-- info: checkSubscript ?_ : Unit -/
199199
#guard_msgs in #check checkSubscript ?_
200200

0 commit comments

Comments
 (0)