From 9aede26bb0b42df05537d1ee5d3f6e3295281b85 Mon Sep 17 00:00:00 2001 From: Michael Sammler <noreply@sammler.me> Date: Mon, 15 Mar 2021 17:06:26 +0100 Subject: [PATCH] Add more underscores to f_equiv --- theories/tactics.v | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/theories/tactics.v b/theories/tactics.v index bc3a43b2..fa215d87 100644 --- a/theories/tactics.v +++ b/theories/tactics.v @@ -347,6 +347,7 @@ Ltac f_equiv := | |- ?R (?f _ _) _ => simple apply (_ : Proper (R ==> R ==> R) f) | |- ?R (?f _ _ _) _ => simple apply (_ : Proper (R ==> R ==> R ==> R) f) | |- ?R (?f _ _ _ _) _ => simple apply (_ : Proper (R ==> R ==> R ==> R ==> R) f) + | |- ?R (?f _ _ _ _ _) _ => simple apply (_ : Proper (R ==> R ==> R ==> R ==> R ==> R) f) (* For the case in which R is polymorphic, or an operational type class, like equiv. *) | |- (?R _) (?f _) _ => simple apply (_ : Proper (R _ ==> _) f) @@ -360,7 +361,10 @@ Ltac f_equiv := | |- (?R _ _ _) (?f _ _ _) _ => simple apply (_ : Proper (R _ _ _ ==> R _ _ _ R _ _ _ ==> _) f) | |- (?R _) (?f _ _ _ _) _ => simple apply (_ : Proper (R _ ==> R _ ==> R _ ==> R _ ==> _) f) | |- (?R _ _) (?f _ _ _ _) _ => simple apply (_ : Proper (R _ _ ==> R _ _ ==> R _ _ ==> R _ _ ==> _) f) - | |- (?R _ _ _) (?f _ _ _ _) _ => simple apply (_ : Proper (R _ _ _ ==> R _ _ _ R _ _ _ ==> R _ _ _ ==> _) f) + | |- (?R _ _ _) (?f _ _ _ _) _ => simple apply (_ : Proper (R _ _ _ ==> R _ _ _ ==> R _ _ _ ==> R _ _ _ ==> _) f) + | |- (?R _) (?f _ _ _ _ _) _ => simple apply (_ : Proper (R _ ==> R _ ==> R _ ==> R _ ==> R _ ==> _) f) + | |- (?R _ _) (?f _ _ _ _ _) _ => simple apply (_ : Proper (R _ _ ==> R _ _ ==> R _ _ ==> R _ _ ==> R _ _ ==> _) f) + | |- (?R _ _ _) (?f _ _ _ _ _) _ => simple apply (_ : Proper (R _ _ _ ==> R _ _ _ ==> R _ _ _ ==> R _ _ _ ==> R _ _ _ ==> _) f) (* Next, try to infer the relation. Unfortunately, very often, it will turn the goal into a Leibniz equality so we get stuck. *) (* TODO: Can we exclude that instance? *) @@ -368,6 +372,7 @@ Ltac f_equiv := | |- ?R (?f _ _) _ => simple apply (_ : Proper (_ ==> _ ==> R) f) | |- ?R (?f _ _ _) _ => simple apply (_ : Proper (_ ==> _ ==> _ ==> R) f) | |- ?R (?f _ _ _ _) _ => simple apply (_ : Proper (_ ==> _ ==> _ ==> _ ==> R) f) + | |- ?R (?f _ _ _ _ _) _ => simple apply (_ : Proper (_ ==> _ ==> _ ==> _ ==> _ ==> R) f) (* In case the function symbol differs, but the arguments are the same, maybe we have a pointwise_relation in our context. *) (* TODO: If only some of the arguments are the same, we could also -- GitLab