Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: catch 'none' exception in Real.sqrt positivity extension (#8014)
This example currently fails ```lean example (x : ℝ) : 0 ≤ Real.sqrt x := by positivity ``` due to the exception being thrown here: https://github.com/leanprover-community/mathlib4/blob/b56efa53d7479fda9740f364170cbaef34699dee/Mathlib/Tactic/Positivity/Core.lean#L304 It should succeed, because the junk value used for `sqrt` of a negative number is non-negative. This PR fixes it by catching the exception, a pattern used elsewhere: https://github.com/leanprover-community/mathlib4/blob/b56efa53d7479fda9740f364170cbaef34699dee/Mathlib/Tactic/Positivity/Core.lean#L325
- Loading branch information