| 1 |
Set Implicit Arguments. |
| 2 |
|
| 3 |
Ltac ret_and_left T := |
| 4 |
let t := type of T in |
| 5 |
lazymatch eval hnf in t with |
| 6 |
| ?a /\ ?b => constr:(proj1 T) |
| 7 |
| forall x : ?T', @?f x => |
| 8 |
constr:(fun x : T' => ltac:(let fx := constr:(T x) in |
| 9 |
let t := ret_and_left fx in |
| 10 |
exact t)) |
| 11 |
end. |