A Decision Method for Elementary Stream Calculus

Harald Ruess
2024-01-04
Abstract:The main result is a doubly exponential decision procedure for the first-order equality theory of streams with both arithmetic and control-oriented stream operations. This stream logic is expressive for elementary problems of stream calculus.
Logic in Computer Science
What problem does this paper attempt to address?
The main problem this paper attempts to address is the development of a decision process with double exponential time complexity for handling stream constraints in the first-order theory of streams, which includes arithmetic and control-oriented stream operations. Specifically, the goals of the paper are: 1. **Provide a decision method**: For a given first-order formula \(\phi\), to decide the validity of \(\phi\) in the structure of discrete real-valued streams. 2. **Support the expressive power of stream logic**: Extend stream logic to handle fundamental problems in stream calculus, including arithmetic and control-oriented operations (such as finite stream shifts). 3. **Applicable to typical correctness conditions in system design**: The decision process is not limited to finite alphabets and has double exponential time complexity, suitable for encoding various conservative extensions in system design. ### Background and Motivation - **Challenges of stream constraints**: Solving quantified stream constraint problems is very challenging because quantifying over streams is essentially second-order. - **Existing methods**: Monadic second-order logic (MSO(ω)) can be described by finite state Mealy machines, but its decision process is non-elementary. - **Contribution of the paper**: Proposes a new decision method that is not only applicable to finite alphabets but also has double exponential time complexity, capable of handling a broader range of stream constraint problems. ### Main Results - **Decision process**: For a given first-order formula \(\phi\), in the language of ordered rings, the validity of \(\phi\) in the structure of discrete real-valued streams can be decided in double exponential time using quantifier elimination. - **Expressive power**: Through defined extensions, demonstrates the strong expressive power of stream logic in handling fundamental problems in stream calculus. - **Comparison with existing methods**: Compared to automaton-based second-order monadic logic decision processes, this method is not limited to finite alphabets and has double exponential time complexity. ### Application Examples - **Observational equivalence**: Prove that two stream processors \(T_1\) and \(T_2\) are observationally equivalent. - **Functionality**: Prove that a stream processor \(T\) is functional. - **Non-interference**: Ensure that the low-security part of the system output is indistinguishable at each step. - **Stream circuit analysis**: Analyze stream circuits through conservative extensions (such as shift operations, constant streams, stream projections). ### Conclusion This paper provides a new decision method that can effectively handle stream constraints in stream calculus, extends the expressive power of stream logic, and is applicable to various correctness conditions in system design. This method has both theoretical significance and practical application value.