2014-08-24 19:58:48 -07:00
|
|
|
import logic
|
2014-09-03 16:00:38 -07:00
|
|
|
open tactic
|
2014-06-29 18:26:07 -07:00
|
|
|
|
2014-07-22 09:43:18 -07:00
|
|
|
theorem tst {A B : Prop} (H1 : A) (H2 : B) : A ∧ B ∧ A
|
2015-05-02 17:32:03 -07:00
|
|
|
:= by apply and.intro; state; assumption; apply and.intro; repeat assumption
|
2014-07-02 13:14:50 -07:00
|
|
|
check tst
|
|
|
|
|
2014-07-22 09:43:18 -07:00
|
|
|
theorem tst2 {A B : Prop} (H1 : A) (H2 : B) : A ∧ B ∧ A
|
2015-04-06 09:24:09 -07:00
|
|
|
:= by repeat ((apply @and.intro | assumption) ; trace "STEP"; state; trace "----------")
|
2014-07-02 13:14:50 -07:00
|
|
|
|
|
|
|
check tst2
|