2014-01-05 20:05:08 +00:00
|
|
|
variables A B C : (Type U)
|
|
|
|
variable P : A -> Bool
|
|
|
|
variable F1 : A -> B -> C
|
|
|
|
variable F2 : A -> B -> C
|
2014-01-08 08:38:39 +00:00
|
|
|
variable H : forall (a : A) (b : B), (F1 a b) == (F2 a b)
|
2014-01-05 20:05:08 +00:00
|
|
|
variable a : A
|
2014-01-06 03:10:21 +00:00
|
|
|
check eta (F2 a)
|
|
|
|
check abst (fun a : A,
|
|
|
|
(trans (symm (eta (F1 a)))
|
|
|
|
(trans (abst (fun (b : B), H a b))
|
|
|
|
(eta (F2 a)))))
|
2013-12-16 06:00:26 +00:00
|
|
|
|
2014-01-06 03:10:21 +00:00
|
|
|
check abst (fun a, (abst (fun b, H a b)))
|
2013-12-16 06:00:26 +00:00
|
|
|
|
2014-01-06 03:10:21 +00:00
|
|
|
theorem T1 : F1 = F2 := abst (fun a, (abst (fun b, H a b)))
|
|
|
|
theorem T2 : (fun (x1 : A) (x2 : B), F1 x1 x2) = F2 := abst (fun a, (abst (fun b, H a b)))
|
|
|
|
theorem T3 : F1 = (fun (x1 : A) (x2 : B), F2 x1 x2) := abst (fun a, (abst (fun b, H a b)))
|
|
|
|
theorem T4 : (fun (x1 : A) (x2 : B), F1 x1 x2) = (fun (x1 : A) (x2 : B), F2 x1 x2) := abst (fun a, (abst (fun b, H a b)))
|
2014-01-05 20:05:08 +00:00
|
|
|
print environment 4
|
2014-01-06 05:45:31 +00:00
|
|
|
set::option pp::implicit true
|
2014-01-05 20:05:08 +00:00
|
|
|
print environment 4
|