Compare commits
No commits in common. "c701210f53143e26f831794e959fe81501d1465f" and "aeed23384642402aeef448c85be56a58d054492a" have entirely different histories.
c701210f53
...
aeed233846
|
@ -225,10 +225,6 @@ protected def GoalState.parentExpr? (goalState: GoalState): Option Expr := do
|
||||||
let expr := goalState.mctx.eAssignment.find! parent
|
let expr := goalState.mctx.eAssignment.find! parent
|
||||||
let (expr, _) := instantiateMVarsCore (mctx := goalState.mctx) (e := expr)
|
let (expr, _) := instantiateMVarsCore (mctx := goalState.mctx) (e := expr)
|
||||||
return expr
|
return expr
|
||||||
protected def GoalState.assignedExprOf? (goalState: GoalState) (mvar: MVarId): Option Expr := do
|
|
||||||
let expr ← goalState.mctx.eAssignment.find? mvar
|
|
||||||
let (expr, _) := instantiateMVarsCore (mctx := goalState.mctx) (e := expr)
|
|
||||||
return expr
|
|
||||||
|
|
||||||
|
|
||||||
end Pantograph
|
end Pantograph
|
||||||
|
|
|
@ -243,7 +243,7 @@ structure GoalPrintResult where
|
||||||
-- The root expression
|
-- The root expression
|
||||||
root?: Option Expression := .none
|
root?: Option Expression := .none
|
||||||
-- The filling expression of the parent goal
|
-- The filling expression of the parent goal
|
||||||
parent?: Option Expression
|
parent?: Option Expression := .none
|
||||||
deriving Lean.ToJson
|
deriving Lean.ToJson
|
||||||
|
|
||||||
-- Diagnostic Options, not available in REPL
|
-- Diagnostic Options, not available in REPL
|
||||||
|
|
|
@ -97,12 +97,6 @@ def test_tactic : IO LSpec.TestSeq :=
|
||||||
goals? := #[goal1],
|
goals? := #[goal1],
|
||||||
}:
|
}:
|
||||||
Protocol.GoalTacticResult)),
|
Protocol.GoalTacticResult)),
|
||||||
subroutine_step "goal.print"
|
|
||||||
[("stateId", .num 1)]
|
|
||||||
(Lean.toJson ({
|
|
||||||
parent? := .some { pp? := .some "fun x => ?m.11 x" },
|
|
||||||
}:
|
|
||||||
Protocol.GoalPrintResult)),
|
|
||||||
subroutine_step "goal.tactic"
|
subroutine_step "goal.tactic"
|
||||||
[("stateId", .num 1), ("goalId", .num 0), ("tactic", .str "intro y")]
|
[("stateId", .num 1), ("goalId", .num 0), ("tactic", .str "intro y")]
|
||||||
(Lean.toJson ({
|
(Lean.toJson ({
|
||||||
|
|
Loading…
Reference in New Issue