@kha @gebner I added the `show_goal` tactic for selecting arbitrary subgoals. This feature is similar to the one available in Isabelle. This commit allows us to use the `show` keyword as syntax sugar for `show_goal`. The test `show_goal.lean` has a small example. What do you think? @Armael: you can use `show` to structure your proofs in tactic mode. See `tests/lean/run/show_goal.lean` for a small example.
10 lines
182 B
Text
10 lines
182 B
Text
section
|
||
variables (r : ℕ → ℕ → Prop)
|
||
local infix `≼` : 50 := r
|
||
|
||
example {a b : ℕ} : a ≼ b → true :=
|
||
begin
|
||
show a ≼ b → true,
|
||
{intro x, tactic.triv}
|
||
end
|
||
end
|