我試圖用「護航模式」,保留3個變量(兩個參數和返回值)之間的依賴關係:在最後一個定義 Require Import Vector.
(* "sparse" vector type *)
Notation svector A n := (Vector.t (option A) n).
Fixpoint svector_is_dense {A} {n} (v:svector A n) : P
我有以下問題,請查看代碼。現在 (* Suppose we have type A *)
Variable A: Type.
(* Also we have a function that returns the type (option A) *)
Definition f_opt x: option A := ...
(* Then, I can p