How to prove a certain property of two sequences with equal length #3775
-
|
I would like to prove the below taclet in KeY.
It follows that:
For s1.length <= 1, I can prove it in KeY. For larger values (tested up to s1.length = 5) I need Z3. I don't know how I could go about solving the general case. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
First of all, your Taclet is rather written as an axiom. The Taclet does not assume anything or find anything. It just brings a formula to the sequent. So you want to prove that this formula always holds. To prove this axiom, I guess the way is by using induction over the length of s1 and s2. But the induction step is not trivial, and I do not see the re-use of the induction step directly. Seems to be an HOL/rocq/... problem. |
Beta Was this translation helpful? Give feedback.
-
|
In a recent meeting, it was indeed possible to prove this via induction (although quite tricky) directly in KeY. Thanks, @wadoon, for the hint! |
Beta Was this translation helpful? Give feedback.
First of all, your Taclet is rather written as an axiom. The Taclet does not assume anything or find anything. It just brings a formula to the sequent. So you want to prove that this formula always holds.
To prove this axiom, I guess the way is by using induction over the length of s1 and s2. But the induction step is not trivial, and I do not see the re-use of the induction step directly. Seems to be an HOL/rocq/... problem.