-
-
Save jad-hamza/ff6b07794856cfdd04e1fe94d4673688 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Require Import Coq.Program.Program. | |
Require Import Coq.Lists.List. | |
Axiom ignore_termination: nat. | |
Program Fixpoint id (l: list nat) { measure ignore_termination } := | |
match l with | |
| nil => nil | |
| x :: xs => x :: id xs | |
end. | |
Admit Obligations. | |
Parameter x: nat. | |
Parameter l: list nat. | |
Parameter r: list nat. | |
(* false goal *) | |
Goal id (x :: l) = r. | |
unfold id. | |
simpl. (* does nothing *) | |
cbn. (* creates a huge term *) | |
fold id. (* does nothing *) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment