| 1 |
(* File reduced by coq-bug-finder from original input, then from 14990 lines to 70 lines, then from 44 lines to 29 lines *) |
| 2 |
(* coqc version trunk (September 2014) compiled on Sep 17 2014 0:22:30 with OCaml 4.01.0 |
| 3 |
coqtop version cagnode16:/afs/csail.mit.edu/u/j/jgross/coq-trunk,trunk (d34e1eed232c84590ddb80d70db9f7f7cf13584a) *) |
| 4 |
Set Primitive Projections. |
| 5 |
Set Implicit Arguments. |
| 6 |
Record sigT {A} P := existT { pr1 : A ; pr2 : P pr1 }. |
| 7 |
Notation "{ x : A & P }" := (sigT (A := A) (fun x : A => P)) : type_scope. |
| 8 |
Notation "x .1" := (pr1 x). |
| 9 |
Notation "x .2" := (pr2 x). |
| 10 |
Record Equiv A B := { equiv_fun :> A -> B }. |
| 11 |
Notation "A <~> B" := (Equiv A B) (at level 85). |
| 12 |
Inductive Bool : Type := true | false. |
| 13 |
Definition negb (b : Bool) := if b then false else true. |
| 14 |
Axiom eval_bool_isequiv : forall (f : Bool -> Bool), f false = negb (f true). |
| 15 |
Lemma bool_map_equiv_not_idmap (f : { f : Bool <~> Bool & ~(forall x, f x = x) }) |
| 16 |
: forall b, ~(f.1 b = b). |
| 17 |
Proof. |
| 18 |
intro b. |
| 19 |
intro H''. |
| 20 |
apply f.2. |
| 21 |
intro b'. |
| 22 |
pose proof (eval_bool_isequiv f.1) as H. |
| 23 |
destruct b', b. |
| 24 |
Fail match type of H with |
| 25 |
| _ = negb (f.1 true) => fail 1 "no f.1 true" |
| 26 |
end. (* Error: No matching clauses for match. *) |
| 27 |
destruct (f.1 true). |
| 28 |
simpl in *. |
| 29 |
Fail match type of H with |
| 30 |
| _ = negb ?T => unify T (f.1 true); fail 1 "still has f.1 true" |
| 31 |
end. (* Error: Tactic failure: still has f.1 true. *) |
| 32 |
Abort. |