| 1 |
(* Checking computation of free vars of a term for generalization *) |
| 2 |
|
| 3 |
Definition Decision := fun P : Prop => {P} + {~ P}. |
| 4 |
Class SetUnfold (P Q : Prop) : Prop := Build_SetUnfold { set_unfold : P <-> Q |
| 5 |
}. |
| 6 |
|
| 7 |
Section Filter_Help. |
| 8 |
|
| 9 |
Context {A: Type}. |
| 10 |
Context (fold_right : forall A B : Type, (B -> A -> A) -> A -> list B -> A). |
| 11 |
Definition lType2 := (sigT (fun (P : A -> Prop) => forall a, Decision (P |
| 12 |
a))). |
| 13 |
Definition test (X: lType2) := let (x, _) := X in x. |
| 14 |
|
| 15 |
Global Instance foo `{fhl1 : list lType2} m Q: |
| 16 |
SetUnfold (Q) |
| 17 |
(fold_right _ _ (fun (s : lType2) => let (P, _) := s in and (P |
| 18 |
m)) (Q) (fhl1)). |
| 19 |
Abort. |
| 20 |
|
| 21 |
End Filter_Help. |