Skip to content

Commit a800e55

Browse files
committed
remove def
1 parent ecbf15e commit a800e55

1 file changed

Lines changed: 0 additions & 14 deletions

File tree

Mathlib/LinearAlgebra/Matrix/PosDef.lean

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -324,20 +324,6 @@ noncomputable def sqrt : Matrix n n 𝕜 :=
324324
hA.1.eigenvectorUnitary.1 * diagonal ((↑) ∘ (√·) ∘ hA.1.eigenvalues) *
325325
(star hA.1.eigenvectorUnitary : Matrix n n 𝕜)
326326

327-
open Lean PrettyPrinter.Delaborator SubExpr in
328-
/-- Custom elaborator to produce output like `(_ : PosSemidef A).sqrt` in the goal view. -/
329-
@[app_delab Matrix.PosSemidef.sqrt]
330-
def delabSqrt : Delab :=
331-
whenPPOption getPPNotation <|
332-
whenNotPPOption getPPAnalysisSkip <|
333-
withOverApp 7 <|
334-
withOptionAtCurrPos `pp.analysis.skip true do
335-
let e ← getExpr
336-
guard <| e.isAppOfArity ``Matrix.PosSemidef.sqrt 7
337-
let optionsPerPos ← withNaryArg 6 do
338-
return (← read).optionsPerPos.setBool (← getPos) `pp.proofs.withType true
339-
withTheReader Context ({· with optionsPerPos}) delab
340-
341327
@[deprecated CFC.sqrt_nonneg (since := "2025-09-22")]
342328
lemma posSemidef_sqrt : PosSemidef (CFC.sqrt A) :=
343329
nonneg_iff.mp (CFC.sqrt_nonneg A)

0 commit comments

Comments
 (0)