mirror of
https://github.com/ilyakooo0/Idris-dev.git
synced 2024-09-22 06:29:37 +03:00
f17606a49a
This commit introduces: * A new tactic "claim N TY" that introduces a new hole named N with type TY * A new tactic "unfocus" that moves the current hole to the bottom of the hole stack In the process of this and some other work, I also added comments and docs to more of the core.
18 lines
234 B
Idris
18 lines
234 B
Idris
module ClaimAndUnfocus
|
|
|
|
foo : Nat -> Nat
|
|
foo = ?foo_rhs
|
|
|
|
---------- Proofs ----------
|
|
|
|
ClaimAndUnfocus.foo_rhs = proof
|
|
claim bar Nat -> Nat -> Nat
|
|
unfocus
|
|
intro x
|
|
exact bar x x
|
|
intro x,y
|
|
refine plus
|
|
refine x
|
|
refine y
|
|
|