File tree Expand file tree Collapse file tree
Mathlib/LinearAlgebra/Matrix Expand file tree Collapse file tree Original file line number Diff line number Diff 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" )]
342328lemma posSemidef_sqrt : PosSemidef (CFC.sqrt A) :=
343329 nonneg_iff.mp (CFC.sqrt_nonneg A)
You can’t perform that action at this time.
0 commit comments