diff options
| author | Enrico | 2016-09-07 17:57:19 +0200 |
|---|---|---|
| committer | GitHub | 2016-09-07 17:57:19 +0200 |
| commit | 806b05dc5c3a1594231225df0e8e9e28441d8736 (patch) | |
| tree | 10fcb8c6d9751a2679b9b91d5c023942f18b1749 /mathcomp | |
| parent | 3b97308b6314e34d78a6f14c8173956aa64bd026 (diff) | |
abstract_context utility lemma
Diffstat (limited to 'mathcomp')
| -rw-r--r-- | mathcomp/ssreflect/ssreflect.v | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/mathcomp/ssreflect/ssreflect.v b/mathcomp/ssreflect/ssreflect.v index 38a8013..6750142 100644 --- a/mathcomp/ssreflect/ssreflect.v +++ b/mathcomp/ssreflect/ssreflect.v @@ -422,3 +422,13 @@ End ApplyIff. Hint View for move/ iffLRn|2 iffRLn|2 iffLR|2 iffRL|2. Hint View for apply/ iffRLn|2 iffLRn|2 iffRL|2 iffLR|2. +(* To focus non-ssreflect tactics on a subterm, eg vm_compute. *) +(* Usage: *) +(* elim/abstract_context: (pattern) => G defG. *) +(* vm_compute; rewrite {}defG {G}. *) +(* Note that vm_cast are not stored in the proof term, so *) +(* set here := pattern; vm_compute in (value of here) *) +(* blows up at Qed time. *) +Lemma abstract_context T (P : T -> Type) x : + (forall Q, Q = P -> Q x) -> P x. +Proof. by move=> /(_ P); apply. Qed. |
