chore: Code cleanup

This commit is contained in:
Leni Aniva 2024-05-20 14:19:10 -07:00
parent bbc00cbbb8
commit bd42c396d7
Signed by: aniva
GPG Key ID: 4D9B1C8D10EA4C50
2 changed files with 3 additions and 5 deletions

View File

@ -70,11 +70,10 @@ partial def instantiateDelayedMVars (eOrig: Expr) : MetaM Expr := do
let pending ← mvarIdPending.withContext do let pending ← mvarIdPending.withContext do
let inner ← instantiateDelayedMVars (.mvar mvarIdPending) --(level := level + 1) let inner ← instantiateDelayedMVars (.mvar mvarIdPending) --(level := level + 1)
--IO.println s!"{padding}├Pre: {inner}" --IO.println s!"{padding}├Pre: {inner}"
let r := (← Expr.abstractM inner fvars).instantiateRev args pure <| (← inner.abstractM fvars).instantiateRev args
pure r
-- Tail arguments -- Tail arguments
let result := mkAppN pending (List.drop fvars.size args.toList |>.toArray) let result := mkAppRange pending fvars.size args.size args
--IO.println s!"{padding}├MD {result}" --IO.println s!"{padding}├MD {result}"
return .done result return .done result
else else

View File

@ -212,11 +212,10 @@ inductive TacticExecute where
def goalTacticExecute (state: GoalState) (goalId: Nat) (tacticExecute: TacticExecute): Lean.CoreM TacticResult := def goalTacticExecute (state: GoalState) (goalId: Nat) (tacticExecute: TacticExecute): Lean.CoreM TacticResult :=
runTermElabM do runTermElabM do
state.restoreElabM state.restoreElabM
let tactic := match tacticExecute with state.execute goalId $ match tacticExecute with
| .congruenceArg => Tactic.congruenceArg | .congruenceArg => Tactic.congruenceArg
| .congruenceFun => Tactic.congruenceFun | .congruenceFun => Tactic.congruenceFun
| .congruence => Tactic.congruence | .congruence => Tactic.congruence
state.execute goalId tactic