Equations
- One or more equations did not get rendered due to their size.
Equations
- Lean.Meta.withPPInaccessibleNames x flag = Lean.Meta.mapMetaM (fun {α} => Lean.Meta.withPPInaccessibleNamesImp flag) x
Equations
- One or more equations did not get rendered due to their size.
Equations
- Lean.Meta.withPPShowLetValues x flag = Lean.Meta.mapMetaM (fun {α} => Lean.Meta.withPPShowLetValuesImp flag) x
Set pretty-printing options (pp.showLetValues = true and pp.inaccessibleNames = true) for visualizing goals.
Return true if fvarId is marked as an hidden inaccessible or inaccessible proposition
Equations
- Lean.Meta.ToHide.isMarked fvarId = do let s ← get pure (Lean.RBTree.contains s.hiddenInaccessible fvarId || Lean.RBTree.contains s.hiddenInaccessibleProp fvarId)
If fvarId isMarked, then unmark it.
Equations
- One or more equations did not get rendered due to their size.
Equations
- One or more equations did not get rendered due to their size.
Return true if the given local declaration has a "visible dependency", that is, it contains
a free variable that is hiddenInaccessible
Recall that hiddenInaccessibleProps are visible, only their names are hidden
Equations
- Lean.Meta.ToHide.hasVisibleDep localDecl = do let s ← get Lean.Meta.ToHide.findDeps localDecl fun a => !Lean.RBTree.contains s.hiddenInaccessible a
Return true if the given local declaration has a "nonvisible dependency", that is, it contains
a free variable that is hiddenInaccessible or hiddenInaccessibleProp
Equations
- One or more equations did not get rendered due to their size.
If e is visible, then any inaccessible in e marked as hidden should be unmarked.
Equations
Equations
- One or more equations did not get rendered due to their size.
If pp.inaccessibleNames == false, then collect two sets of FVarIds : hiddenInaccessible and hiddenInaccessibleProp
1- hiddenInaccessible contains FVarIds of free variables with inaccessible names that
a) are not propositions or
b) are propositions containing "visible" names.
2- hiddenInaccessibleProp contains FVarIds of free variables with inaccessible names that are propositions
containing "visible" names.
Both sets do not contain FVarIds that contain visible backward or forward dependencies.
The goalTarget counts as a forward dependency.
We say a name is visible if it is a free variable with FVarId not in hiddenInaccessible nor hiddenInaccessibleProp
For propositions in hiddenInaccessibleProp, we show only their types when displaying a goal.
Remark: when pp.inaccessibleNames == true, we still compute hiddenInaccessibleProp to prevent the
goal from being littered with irrelevant names.
Equations
- One or more equations did not get rendered due to their size.
Equations
- Lean.Meta.getGoalPrefix mvarDecl = if Option.isSome (Lean.isLHSGoal? mvarDecl.type) = true then "| " else "⊢ "
Equations
- One or more equations did not get rendered due to their size.
Equations
- One or more equations did not get rendered due to their size.
Equations
- One or more equations did not get rendered due to their size.