File: bug_7061.v

package info (click to toggle)
coq 9.1.0%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 35,964 kB
  • sloc: ml: 239,908; sh: 4,355; python: 2,985; ansic: 2,644; makefile: 874; lisp: 171; javascript: 63; xml: 24; sed: 2
file content (25 lines) | stat: -rw-r--r-- 573 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
(* A few examples of non strongly normalizing fixpoints *)

Fail Fixpoint beta_erase (v:bool) := (fun x y => x) 0 (beta_erase v).

Fail Fixpoint zeta_erase (v:bool) := let _ := zeta_erase v in 0.

Fail Fixpoint iota_case_erase (v:bool) :=
  match true with
  | true => 0
  | false => iota_case_erase v
  end.

Fail Fixpoint iota_fix_erase (v:bool) :=
  let g1 := fix g1 (x : nat) := x
            with g2 (x : nat) := iota_fix_erase v
            for g1
  in
  g1 0.

Fail Fixpoint f (x : bool) :=
  let y := f x in
  match true with
  | true => true
  | false => y
  end.