Debian Codegraph @

test-suite/bugs/bug_16226.v

raw
1
2 Inductive sBool : SProp := strue | sfalse.
3
4 Set Definitional UIP.
5
6 Inductive seq {A:SProp} (a:A) : A -> SProp := srefl : seq a a.
7 Arguments srefl {_ _}, {_} _.
8
9 Definition x (b:bool) := if b then strue else sfalse.
10
11 Definition proof : seq (x true) (x false) := srefl.
12
13 Record Box (A:SProp) : Prop := box { unbox : A }.
14 Arguments box {_}.
15
16 Definition foo :=
17 match proof return SProp with
18 | srefl _ => nat -> seq x x
19 end.
20
21 Eval lazy in foo.
22
23 Definition bla (f:foo) := f 0.