Skip to content

Commit ebb2c24

Browse files
committed
WIP
1 parent 62fc738 commit ebb2c24

File tree

4 files changed

+277
-297
lines changed

4 files changed

+277
-297
lines changed

theories/Vectors/Fin.v

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,12 @@ Inductive t : nat -> Set :=
3838
|F1 : forall {n}, t (S n)
3939
|FS : forall {n}, t n -> t (S n).
4040

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+
4147
Section SCHEMES.
4248
Definition case0 P (p: t 0): P p :=
4349
match p with | F1 | FS _ => fun devil => False_rect (@ID) devil (* subterm !!! *) end.

0 commit comments

Comments
 (0)