We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 62fc738 commit ebb2c24Copy full SHA for ebb2c24
theories/Vectors/Fin.v
@@ -38,6 +38,12 @@ Inductive t : nat -> Set :=
38
|F1 : forall {n}, t (S n)
39
|FS : forall {n}, t n -> t (S n).
40
41
+Fixpoint to_nat' {n} (p : t n) : nat :=
42
+ match p with
43
+ | F1 => 0
44
+ | FS p => S (to_nat' p)
45
+ end.
46
+
47
Section SCHEMES.
48
Definition case0 P (p: t 0): P p :=
49
match p with | F1 | FS _ => fun devil => False_rect (@ID) devil (* subterm !!! *) end.
0 commit comments