Debian Codegraph @

test-suite/bugs/bug_13271.v

raw
1 Require Program.Tactics.
2
3 Definition PeanoWithMax (maxValue : nat) : Set := { value : nat | value <= maxValue }.
4
5 Polymorphic Definition NonEmptyList (elementType : Type) : Type :=
6 { list : list elementType | list <> nil }.
7
8 Axiom n : nat.
9 Axiom ListFromPeano : forall (value : nat), list (PeanoWithMax n).
10
11 Polymorphic Program Definition FromPeano (value : nat) : NonEmptyList (PeanoWithMax n) :=
12 match value with
13 | 0 => exist _ (cons (exist _ 0 _) nil) _
14 | S _ => exist _ (ListFromPeano value) _
15 end.
16 Next Obligation.
17 Admitted.
18 Next Obligation.
19 Admitted.