File: bug_5315.v

package info (click to toggle)
rocq-stdlib 9.0.0-3
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 11,828 kB
  • sloc: python: 2,928; sh: 444; makefile: 319; javascript: 24; ml: 2
file content (10 lines) | stat: -rw-r--r-- 345 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
From Stdlib Require Import Recdef.

Function dumb_works (a:nat) {struct a} :=
  match (fun x => x) a with O => O | S n' => dumb_works n' end.

Function dumb_nope (a:nat) {struct a} :=
  match (id (fun x => x)) a with O => O | S n' => dumb_nope n' end.

(* This check is just present to ensure Function worked well *)
Check R_dumb_nope_complete.