From ab66d07f321810e1142d0d2dc02511fa4ba0cffa Mon Sep 17 00:00:00 2001 From: Pierre-Marie Pédrot Date: Tue, 10 Apr 2018 20:17:23 +0200 Subject: Deprecate the "simple subst" tactic. This tactic was introduced by aba4b19 in 2009 and never documented. Its main purpose was backward compatibility, and as such it ought to be deprecated. --- tactics/equality.ml | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'tactics') diff --git a/tactics/equality.ml b/tactics/equality.ml index 98f627f21..5821717d9 100644 --- a/tactics/equality.ml +++ b/tactics/equality.ml @@ -1761,8 +1761,17 @@ type subst_tactic_flags = { let default_subst_tactic_flags = { only_leibniz = false; rewrite_dependent_proof = true } +let warn_deprecated_simple_subst = + CWarnings.create ~name:"deprecated-simple-subst" ~category:"deprecated" + (fun () -> strbrk"\"simple subst\" is deprecated") + let subst_all ?(flags=default_subst_tactic_flags) () = + let () = + if flags.only_leibniz || not flags.rewrite_dependent_proof then + warn_deprecated_simple_subst () + in + if !regular_subst_tactic then (* First step: find hypotheses to treat in linear time *) -- cgit v1.2.3