| 1 |
(* A few examples of non strongly normalizing fixpoints *) |
| 2 |
|
| 3 |
Fail Fixpoint beta_erase (v:bool) := (fun x y => x) 0 (beta_erase v). |
| 4 |
|
| 5 |
Fail Fixpoint zeta_erase (v:bool) := let _ := zeta_erase v in 0. |
| 6 |
|
| 7 |
Fail Fixpoint iota_case_erase (v:bool) := |
| 8 |
match true with |
| 9 |
| true => 0 |
| 10 |
| false => iota_case_erase v |
| 11 |
end. |
| 12 |
|
| 13 |
Fail Fixpoint iota_fix_erase (v:bool) := |
| 14 |
let g1 := fix g1 (x : nat) := x |
| 15 |
with g2 (x : nat) := iota_fix_erase v |
| 16 |
for g1 |
| 17 |
in |
| 18 |
g1 0. |
| 19 |
|
| 20 |
Fail Fixpoint f (x : bool) := |
| 21 |
let y := f x in |
| 22 |
match true with |
| 23 |
| true => true |
| 24 |
| false => y |
| 25 |
end. |