lean2/tests/lean/tactic12.lean
Leonardo de Moura dd62af1641 feat(frontends/parser): simplified theorem definition using tactical proof
When using tactics for proving theorems, a common pattern is

     Theorem T : <proposition> := _.
          apply <tactic>.
          ...
          done.

This commit allows the user to write the simplified form:

     Theorem T : <proposition>.
          apply <tactic>.
          ...
          done.

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2013-12-02 08:20:18 -08:00

13 lines
No EOL
302 B
Text

Theorem T (a b : Bool) : ((fun x, x /\ b) a) => ((fun x, x) a).
apply beta_tactic.
apply imp_tactic.
apply conj_hyp_tactic.
apply assumption_tactic.
done.
Variables p q : Bool.
Theorem T2 : p /\ q => q.
apply imp_tactic.
apply conj_hyp_tactic.
apply assumption_tactic.
done.