aboutsummaryrefslogtreecommitdiff
path: root/test-suite/bugs/closed/bug_1582.v
blob: 88af92493468dee3ffcdfa4d18c90f2239ce2640 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Require Import Peano_dec.

Definition fact_F :
  forall (n:nat),
  (forall m, m<n -> nat) ->
  nat.
refine
  (fun n fact_rec =>
     if eq_nat_dec n 0 then
        1
     else
        let fn := fact_rec (n-1) _ in
        n * fn).
Admitted.