Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8426693
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T04:35:58+00:00 2026-06-10T04:35:58+00:00

Can somebody help me in pointing out what will be the best encoding of

  • 0

Can somebody help me in pointing out what will be the best encoding of following equation using first order formula so as to give it as input to the SMT solver??

x`=Ax+b
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T04:36:00+00:00Added an answer on June 10, 2026 at 4:36 am

    You can encode the differential equation easily in Z3 as it is just a set of n linear (affine) functions over n^2 + n real constants (n^2 from a_ij, n from b_i) and n real variables (x_i). You can encode this directly in Z3.

    dotx_1 = a_11 * x_1 + a_12 * x_2 + a_13 * x_3 + ... + a_1n * x_n + b_1
    dotx_2 = a_21 * x_1 + a_22 * x_2 + a_13 * x_3 + ... + a_2n * x_n + b_2
    ...
    dotx_n = a_n1 * x_1 + a_n2 * x_2 + a_n3 * x_3 + ... + a_nn * x_n + b_n
    

    Here’s a link for a 2×2 version of this in Z3Py: http://rise4fun.com/Z3Py/pl6P

    However, encoding the solution of the ODEs will be difficult, as the solution of linear ODEs involve exponentials (transcendental functions). For the class of ODEs with solutions that can be represented as polynomials (over the a_ij constants, x_i variables, and/or a time variable t), you would be able to encode the (exact) solutions as polynomials in Z3 (see, e.g., [1]).

    For the general solutions that involve transcendentals however, you have many possible options, depending on what you are trying to accomplish. One option is modeling the transcendentals as uninterpreted functions. There is some work in various SMT-LIB benchmarks that do this, but I am not so familiar with these, so hopefully someone else can point out a link to them. This would be most useful if you wanted to prove some lemmas about the solutions of such ODEs. Some tools like MetiTarski maintain upper and lower bound approximations of transcendentals (using, e.g., truncated Taylor series, which are polynomials, and hence representable in Z3), but I’m not aware of the status of this in Z3, but it looks like there may be some support that Leonardo could comment on more [6].

    If you are doing reachability computations, then you could overapproximate the reach set, which can be done with simpler (more abstract) representations of the solutions of the ODEs. For instance, you could apply a variant of the hybridization technique [2] and overapproximate the linear dynamics with rectangular dynamics, e.g., partition an interesting subset of the state space, then in each partition, under and over approximate each dimension dotx_i = a_i1 x_1 + a_i2 x_2 + … + b_i with dothatx_i \in [C, D] for some constants C and D chosen to ensure every solution of the original (concrete) x_i is contained in the set of overapproximated (abstract) solutions hatx_i. The set of solutions of hatx_i from time 0 to t is in the interval [C t + x_i(0), D t + x_i(0)], where x_i(0) is the initial condition of x_i at time zero, and t is the bounded real time you want to compute the reach set up-to. You can do this over all dimensions. To compute the C, D (which will likely vary for each partition and each dimension), depending on how much you care about soundness, you can simply (numerically) maximize and minimize the original ODE dotx_i in each partition.

    From your other posts, it looks like you are trying to simulate hybrid systems. Simulation will still suffer the problems in trying to represent transcendentals, as even trying to model one trajectory (instead of modeling the set of possible trajectories) will require representing the solution, which is in general transcendental. To my knowledge, this is still done in the simulation community numerically [see, e.g., 3], but there is work on “guaranteed” (sound) integration, which provides bounds on how far off the numerical solution is from the actual (analytic) solution [4, 5].

    [1] Symbolic reachability computations for families of linear vector fields. Gerardo Lafferriere, George J. Pappas, and Sergio Yovine. Journal of Symbolic Computation, 32(3):231-253, September 2001. http://www.seas.upenn.edu/~pappasg/papers/JSC01.pdf

    [2] E. Asarin, T. Dang, A. Girard, Hybridization methods for the analysis of nonlinear systems, Acta Informatica, 43:7, 2007, 451-476, http://www.springerlink.com/content/q6755l613l856737/

    [3] Nineteen Dubious Ways to Compute the Exponential of a Matrix, Twenty-Five Years Later, Cleve Moler and Charles Van Loan, SIAM Review, Vol. 45, No. 1 (Mar., 2003), pp. 3-49, http://www.jstor.org/stable/25054364

    [4] Automatic, guaranteed integration of analytic functions, Martin C. Eiermann, BIT NUMERICAL MATHEMATICS, 1989, http://www.springerlink.com/content/q2k30rtx2h2n1815/

    [5] GRKLib: a Guaranteed Runge Kutta Library, Bouissou, O., Martel, M., Scientific Computing, Computer Arithmetic and Validated Numerics, 2006, http://ieeexplore.ieee.org/xpls/abs_all.jsp?arnumber=4402398

    [6] Real Algebraic Strategies for MetiTarski Proofs, Grant Olney Passmore, Lawrence C. Paulson, and Leonardo de Moura. Conference on Intelligent Computer Mathematics (CICM/AISC), 2012, http://research.microsoft.com/en-us/um/people/leonardo/CICM2012.pdf

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Can somebody help me to figure out why DataAnnotations will not work with my
Can somebody help me in converting the following code written using if-else to try/catch.
Can somebody help me to convert the following array to a hash with the
Can somebody help me find the mistake I am doing in evaluating following XPath
Can somebody help me convert the following html <ul> <li>1</li> <li>2</li> <li>3</li> <li>4</li> </ul>
Can somebody help me construct this regular expression, please... Given the following strings... "April
Can somebody help me in understanding how split in java works.I have the following
Can somebody help me guess out this code..this is just a snippet and I
Hi can somebody help me with building an extended addslashes function, which will work
Sorry I'm beginner, can somebody help me out? <script> var iW = $(document).width(); $(function()

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.