Idris-dev/test/proof008/ClaimAndUnfocus.idr
David Raymond Christiansen f17606a49a "claim" and "unfocus" tactics
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.
2015-02-17 14:19:45 +01:00

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