| 1 |
Record T : Type := Build_T { f : unit; g := pair f f; }. |
| 2 |
|
| 3 |
Definition t : T := {| f := tt; |}. |
| 4 |
|
| 5 |
Goal match t return unit with Build_T f g => f end = tt. |
| 6 |
Proof. |
| 7 |
cbv. |
| 8 |
reflexivity. |
| 9 |
Qed. |
| 10 |
|
| 11 |
Goal match t return prod unit unit with Build_T f g => g end = pair tt tt. |
| 12 |
Proof. |
| 13 |
cbv. |
| 14 |
reflexivity. |
| 15 |
Qed. |
| 16 |
|
| 17 |
Goal forall (x : T), |
| 18 |
match x return prod unit unit with Build_T f g => g end = |
| 19 |
pair match x return unit with Build_T f g => fst g end match x return unit with Build_T f g => snd g end. |
| 20 |
Proof. |
| 21 |
cbv. |
| 22 |
destruct x. |
| 23 |
reflexivity. |
| 24 |
Qed. |
| 25 |
|
| 26 |
Record U : Type := Build_U { h := tt }. |
| 27 |
|
| 28 |
Definition u : U := Build_U. |
| 29 |
|
| 30 |
Goal match u with Build_U h => h end = tt. |
| 31 |
Proof. |
| 32 |
cbv. |
| 33 |
reflexivity. |
| 34 |
Qed. |