Debian Codegraph @

test-suite/bugs/bug_11846.v

raw
1 Require Import TestSuite.funind.
2
3 Inductive tree : Type :=
4 | Node : unit -> tree.
5
6 Definition height (s : tree) : unit :=
7 match s with
8 | Node h => h
9 end.
10
11 Definition bal : forall l, let h := height l in tree := fun l =>
12 let h := height l in
13 Node h.
14
15 Set Warnings "+all".
16 Functional Scheme bal_ind := Induction for bal Sort Prop.