| 1 |
Require Extraction. |
| 2 |
Set Extraction Conservative Types. |
| 3 |
|
| 4 |
Inductive data := Data : forall (T:Type), T -> data. |
| 5 |
Definition t_of d := match d with Data t _ => t end. |
| 6 |
Definition v_of (d : data) := match d return t_of d with Data _ v => v end. |
| 7 |
Extraction v_of. |