aboutsummaryrefslogtreecommitdiffhomepage
path: root/pretyping/miscops.ml
diff options
context:
space:
mode:
authorGravatar herbelin <herbelin@85f007b7-540e-0410-9357-904b9bb8a0f7>2013-07-09 22:32:52 +0000
committerGravatar herbelin <herbelin@85f007b7-540e-0410-9357-904b9bb8a0f7>2013-07-09 22:32:52 +0000
commit84ee4d12817c45d4c299cb0359e066b275360982 (patch)
treed193f928f8853f6eaaa5403ceeaf5a159e6df549 /pretyping/miscops.ml
parent92c45e641b0c8fda5fffb2cf543f886188fe772d (diff)
Revising r16550 about providing intro patterns for applying injection:
- Introduction of a specific notation for injection intropatterns: [= pats] - Use of this specific pattern also to apply discriminate on the fly Note: The automatic injection of dependent tuples over a same first component (introduced in r10180) still not integrated to the main parts of injection and its variant (indeed, it applies only for a root dependent tuple in sigT). git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@16621 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'pretyping/miscops.ml')
-rw-r--r--pretyping/miscops.ml2
1 files changed, 2 insertions, 0 deletions
diff --git a/pretyping/miscops.ml b/pretyping/miscops.ml
index 264deeb05..2639e2e72 100644
--- a/pretyping/miscops.ml
+++ b/pretyping/miscops.ml
@@ -29,6 +29,8 @@ let smartmap_cast_type f c =
let rec pr_intro_pattern (_,pat) = match pat with
| IntroOrAndPattern pll -> pr_or_and_intro_pattern pll
+ | IntroInjection pl ->
+ str "[=" ++ hv 0 (prlist_with_sep spc pr_intro_pattern pl) ++ str "]"
| IntroWildcard -> str "_"
| IntroRewrite true -> str "->"
| IntroRewrite false -> str "<-"