dd62af1641
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>
13 lines
No EOL
302 B
Text
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. |