| 1 |
(* File reduced by coq-bug-finder from original input, then from 538 lines to 31 lines *) |
| 2 |
Open Scope type_scope. |
| 3 |
Global Set Primitive Projections. |
| 4 |
Set Implicit Arguments. |
| 5 |
Record sig (A : Type) (P : A -> Type) := exist { proj1_sig : A ; proj2_sig : P proj1_sig }. |
| 6 |
Notation sigT := sig (only parsing). |
| 7 |
Notation "{ x : A & P }" := (sigT (fun x:A => P)) : type_scope. |
| 8 |
Notation projT1 := proj1_sig (only parsing). |
| 9 |
Notation projT2 := proj2_sig (only parsing). |
| 10 |
Parameters X : Type. |
| 11 |
Parameter R : X -> X -> Type. |
| 12 |
Lemma dependent_choice : |
| 13 |
(forall x:X, {y : _ & R x y}) -> |
| 14 |
forall x0, {f : nat -> X & (f O = x0) * (forall n, R (f n) (f (S n)))}. |
| 15 |
Proof. |
| 16 |
intros H x0. |
| 17 |
set (f:=fix f n := match n with O => x0 | S n' => projT1 (H (f n')) end). |
| 18 |
exists f. |
| 19 |
split. |
| 20 |
reflexivity. |
| 21 |
induction n; simpl in *. |
| 22 |
clear. |
| 23 |
apply (proj2_sig (H x0)). |
| 24 |
Undo. |
| 25 |
apply @proj2_sig. |
| 26 |
|
| 27 |
|
| 28 |
(* Toplevel input, characters 21-31: |
| 29 |
Error: Found no subterm matching "proj1_sig ?206" in the current *) |
| 30 |
Abort. |