- mvarId : Lean.MVarId
- newH : Lean.FVarId
- subst : Lean.Meta.FVarSubst
Instances For
Equations
- Lean.Meta.instInhabitedCaseValueSubgoal = { default := { mvarId := default, newH := default, subst := default } }
Equations
- One or more equations did not get rendered due to their size.
Instances For
- mvarId : Lean.MVarId
- newHs : Array Lean.FVarId
- subst : Lean.Meta.FVarSubst
Instances For
def
Lean.Meta.caseValues
(mvarId : Lean.MVarId)
(fvarId : Lean.FVarId)
(values : Array Lean.Expr)
(hNamePrefix : Lean.Name := `h)
(substNewEqs : Bool := false)
:
Split goal ... |- C x
into values.size + 1 subgoals
..., (h_1 : x = value[0]) |- C value[0]
... n)..., (h_n : x = value[n - 1]) |- C value[n - 1]
n+1)..., (h_1 : x != value[0]) ... (h_n : x != value[n-1]) |- C x
wheren = values.size
wherefvarId
isx
s id. The type ofx
must have decidable equality.
Remark: the last subgoal is for the "else" catchall case, and its subst
is {}
.
Remark: the field newHs
has size 1 forall but the last subgoal.
If substNewEqs = true
, then the new h_i
equality hypotheses are substituted in the first n
cases.
Instances For
def
Lean.Meta.caseValues.loop
(fvarId : Lean.FVarId)
(hNamePrefix : Lean.Name := `h)
(substNewEqs : Bool := false)
: