@@ -311,7 +311,7 @@ section
311311set_option linter.unusedVariables false
312312
313313/-- The result of `norm_num` running on an expression `x` of type `α`. -/
314- @ [nolint unusedArguments, expose ] def Result {α : Q(Type u)} (x : Q($α)) := Result'
314+ @ [nolint unusedArguments] def Result {α : Q(Type u)} (x : Q($α)) := Result'
315315
316316-- The new behaviour of `inferInstanceAs` from leanprover/lean4#12897 needs to be updated,
317317-- to ensure that if we are in a `meta` section then the auxiliary definitions are also `meta`.
@@ -320,36 +320,36 @@ set_option backward.inferInstanceAs.wrap false in
320320instance {α : Q(Type u)} {x : Q($α)} : Inhabited (Result x) := inferInstanceAs (Inhabited Result')
321321
322322/-- The result is `proof : x`, where `x` is a (true) proposition. -/
323- @ [match_pattern, inline, expose ] def Result.isTrue {x : Q(Prop )} :
323+ @ [match_pattern, inline] def Result.isTrue {x : Q(Prop )} :
324324 ∀ (proof : Q($x)), Result q($x) := Result'.isBool true
325325
326326/-- The result is `proof : ¬x`, where `x` is a (false) proposition. -/
327- @ [match_pattern, inline, expose ] def Result.isFalse {x : Q(Prop )} :
327+ @ [match_pattern, inline] def Result.isFalse {x : Q(Prop )} :
328328 ∀ (proof : Q(¬$x)), Result q($x) := Result'.isBool false
329329
330330/-- The result is `lit : ℕ` (a raw nat literal) and `proof : isNat x lit`. -/
331- @ [match_pattern, inline, expose ] def Result.isNat {α : Q(Type u)} {x : Q($α)} :
331+ @ [match_pattern, inline] def Result.isNat {α : Q(Type u)} {x : Q($α)} :
332332 ∀ (inst : Q(AddMonoidWithOne $α) := by assumption) (lit : Q(ℕ)) (proof : Q(IsNat $x $lit)),
333333 Result x := Result'.isNat
334334
335335/-- The result is `-lit` where `lit` is a raw nat literal
336336and `proof : isInt x (.negOfNat lit)`. -/
337- @ [match_pattern, inline, expose ] def Result.isNegNat {α : Q(Type u)} {x : Q($α)} :
337+ @ [match_pattern, inline] def Result.isNegNat {α : Q(Type u)} {x : Q($α)} :
338338 ∀ (inst : Q(Ring $α) := by assumption) (lit : Q(ℕ)) (proof : Q(IsInt $x (.negOfNat $lit))),
339339 Result x := Result'.isNegNat
340340
341341/-- The result is `proof : IsNNRat x n d`,
342342where `n` a raw nat literal, `d` is a raw nat literal (not 0 or 1),
343343`n` and `d` are coprime, and `q` is the value of `n / d`. -/
344- @ [match_pattern, inline, expose ] def Result.isNNRat {α : Q(Type u)} {x : Q($α)} :
344+ @ [match_pattern, inline] def Result.isNNRat {α : Q(Type u)} {x : Q($α)} :
345345 ∀ (inst : Q(DivisionSemiring $α) := by assumption) (q : Rat) (n : Q(ℕ)) (d : Q(ℕ))
346346 (proof : Q(IsNNRat $x $n $d)), Result x := Result'.isNNRat
347347
348348/-- The result is `proof : IsRat x n d`,
349349where `n` is `.negOfNat lit` with `lit` a raw nat literal,
350350`d` is a raw nat literal (not 0 or 1),
351351`n` and `d` are coprime, and `q` is the value of `n / d`. -/
352- @ [match_pattern, inline, expose ] def Result.isNegNNRat {α : Q(Type u)} {x : Q($α)} :
352+ @ [match_pattern, inline] def Result.isNegNNRat {α : Q(Type u)} {x : Q($α)} :
353353 ∀ (inst : Q(DivisionRing $α) := by assumption) (q : Rat) (n : Q(ℕ)) (d : Q(ℕ))
354354 (proof : Q(IsRat $x (.negOfNat $n) $d)), Result x := Result'.isNegNNRat
355355
0 commit comments