chore: prepare to change inductionAlts
This commit is contained in:
parent
08fc25217d
commit
1e13c26de3
1 changed files with 2 additions and 1 deletions
|
|
@ -243,8 +243,9 @@ private def generalizeVars (stx : Syntax) (targets : Array Expr) : TacticM Nat :
|
|||
Meta.throwTacticEx `induction mvarId "major premise depends on variable being generalized"
|
||||
pure (fvarIds.size, [mvarId'])
|
||||
|
||||
-- syntax inductionAlts := "with " (tactic)? withPosition( (colGe inductionAlt)+)
|
||||
private def getAltsOfInductionAlts (inductionAlts : Syntax) : Array Syntax :=
|
||||
inductionAlts[1].getArgs
|
||||
inductionAlts[2].getArgs
|
||||
|
||||
private def getAltsOfOptInductionAlts (optInductionAlts : Syntax) : Array Syntax :=
|
||||
if optInductionAlts.isNone then #[] else getAltsOfInductionAlts optInductionAlts[0]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue