From 84ee4d12817c45d4c299cb0359e066b275360982 Mon Sep 17 00:00:00 2001 From: herbelin Date: Tue, 9 Jul 2013 22:32:52 +0000 Subject: 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 --- pretyping/miscops.ml | 2 ++ 1 file changed, 2 insertions(+) (limited to 'pretyping') diff --git a/pretyping/miscops.ml b/pretyping/miscops.ml index 264deeb051..2639e2e720 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 "<-" -- cgit v1.2.3