Documentation

Lean.Util.Sorry

Returns true if the expression is an application of sorryAx.

Equations
  • e.isSorry = e.isAppOf `sorryAx

Returns true if the expression is of the form sorryAx _ true ...

Equations
  • e.isSyntheticSorry = (e.isAppOf `sorryAx && decide (e.getAppNumArgs 2) && (e.getArg! 1).isConstOf `Bool.true)

Returns true if the expression is of the form sorryAx _ false ...

Equations
  • e.isNonSyntheticSorry = (e.isAppOf `sorryAx && decide (e.getAppNumArgs 2) && (e.getArg! 1).isConstOf `Bool.false)
Equations
Equations
Equations
Equations
Equations
  • d.hasNonSyntheticSorry = (d.foldExprM (fun (r : Bool) (e : Lean.Expr) => r || e.hasNonSyntheticSorry) false).run