2015-01-17 01:08:48 +00:00
|
|
|
|
open nat prod
|
|
|
|
|
|
|
|
|
|
set_option pp.coercions true
|
|
|
|
|
|
2015-06-26 00:15:16 +00:00
|
|
|
|
definition s : nat × nat := pair 10 20
|
2015-01-17 01:08:48 +00:00
|
|
|
|
|
|
|
|
|
structure test :=
|
|
|
|
|
(A : Type) (a : A) (B : A → Type) (b : B a)
|
|
|
|
|
|
2015-10-13 22:39:03 +00:00
|
|
|
|
definition s2 := ⦃ test, a := (3:nat), b := (10:nat) ⦄
|
2015-01-17 01:08:48 +00:00
|
|
|
|
|
|
|
|
|
eval s2
|
|
|
|
|
|
2015-10-13 22:39:03 +00:00
|
|
|
|
definition s3 := {| test, a := (20:nat), s2 |}
|
2015-01-17 01:08:48 +00:00
|
|
|
|
|
|
|
|
|
eval s3
|
|
|
|
|
|
|
|
|
|
definition s4 := ⦃ test, A := nat, B := λ a, nat, a := 10, b := 10 ⦄
|
|
|
|
|
|
|
|
|
|
definition s5 : Σ a : nat, a > 0 :=
|
|
|
|
|
⦃ sigma, pr1 := 10, pr2 := of_is_true trivial ⦄
|
|
|
|
|
|
|
|
|
|
eval s5
|
|
|
|
|
|
|
|
|
|
check ⦃ unit ⦄
|