2014-07-10 01:47:10 +00:00
|
|
|
let and_intro : ∀ (p q : Bool),
|
|
|
|
p → q → (λ (p q : Bool), ∀ (c : Bool), (p → q → c) → c) p q :=
|
|
|
|
λ (p q : Bool) (H1 : p) (H2 : q) (c : Bool) (H : p → q → c),
|
|
|
|
H H1 H2,
|
|
|
|
and_elim_left : ∀ (p q : Bool),
|
|
|
|
(λ (p q : Bool), ∀ (c : Bool), (p → q → c) → c) p q → p :=
|
|
|
|
λ (p q : Bool) (H : (λ (p q : Bool), ∀ (c : Bool), (p → q → c) → c) p q),
|
|
|
|
H p (λ (H1 : p) (H2 : q), H1),
|
|
|
|
and_elim_right : ∀ (p q : Bool),
|
|
|
|
(λ (p q : Bool), ∀ (c : Bool), (p → q → c) → c) p q → q :=
|
|
|
|
λ (p q : Bool) (H : (λ (p q : Bool), ∀ (c : Bool), (p → q → c) → c) p q),
|
|
|
|
H q (λ (H1 : p) (H2 : q), H2)
|
|
|
|
in and_intro :
|
|
|
|
∀ (p q : Bool),
|
|
|
|
p → q → (λ (p q : Bool), ∀ (c : Bool), (p → q → c) → c) p q
|
2014-06-24 23:27:23 +00:00
|
|
|
let1.lean:17:20: error: type mismatch at application
|
2014-07-10 01:47:10 +00:00
|
|
|
(λ (and_intro : ∀ (p q : Bool), p → q → (λ (p q : Bool), ∀ (c : Bool), (p → q → c) → c) q p),
|
|
|
|
let and_elim_left : ∀ (p q : Bool),
|
|
|
|
(λ (p q : Bool), ∀ (c : Bool), (p → q → c) → c) p q → p :=
|
|
|
|
λ (p q : Bool) (H : (λ (p q : Bool), ∀ (c : Bool), (p → q → c) → c) p q),
|
|
|
|
H p (λ (H1 : p) (H2 : q), H1),
|
|
|
|
and_elim_right : ∀ (p q : Bool),
|
|
|
|
(λ (p q : Bool), ∀ (c : Bool), (p → q → c) → c) p q → q :=
|
|
|
|
λ (p q : Bool) (H : (λ (p q : Bool), ∀ (c : Bool), (p → q → c) → c) p q),
|
|
|
|
H q (λ (H1 : p) (H2 : q), H2)
|
|
|
|
in and_intro)
|
|
|
|
(λ (p q : Bool) (H1 : p) (H2 : q) (c : Bool) (H : p → q → c), H H1 H2)
|
2014-06-24 23:27:23 +00:00
|
|
|
expected type:
|
2014-07-10 01:47:10 +00:00
|
|
|
∀ (p q : Bool),
|
|
|
|
p → q → (λ (p q : Bool), ∀ (c : Bool), (p → q → c) → c) q p
|
2014-06-16 21:11:26 +00:00
|
|
|
given type:
|
2014-07-10 01:47:10 +00:00
|
|
|
∀ (p q : Bool),
|
|
|
|
p → q → (∀ (c : Bool), (p → q → c) → c)
|