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

  • SEARCH
  • Home
  • 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 7718451
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T03:10:18+00:00 2026-06-01T03:10:18+00:00

How to specify initial ‘soft’ values for the model? This initial model is the

  • 0

How to specify initial ‘soft’ values for the model? This initial model is the result of solving a similar query, and it is likely that this model has a correct pieces or even may be true for the current query.

Currently I am simulating this with an incremental solving and hard/soft constraints:

(define-fun trans_assumed ((a Int)) Int
; an initial model, which may be (partially) true
)

(declare-fun trans_sought ((a Int)) Int) 

(declare-const p Bool)
(assert (=> p (forall ((a Int)) (= (trans_assumed a) (trans_sought a)))))
(check-sat p) ; in hope that trans_assumed values will be used as initial below

; add here the main constraints for trans_sought function

(check-sat) ; Z3 will use trans_assumed as a starting point for trans_sought

Does this really specify initial values for trans_sought to be trans_assumed?

Incremental mode of solving is slow compared to sequential. Any better ways of introducing initial values?

  • 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-01T03:10:19+00:00Added an answer on June 1, 2026 at 3:10 am

    I think this is a good approach, but you may consider using more Boolean variables. Right now, it is a “all” or “nothing” approach. In your script, when (check-sat p) is executed, Z3 will look for a model where trans_assumed and trans_sought have the same interpretation. If such model does not exist, it will return with the unsat core containing p. When (check) is executed, Z3 is free to assign p to false, and the universal quantifier is essentially a don’t care. That is, trans_assumed and trans_sought can be completely different.

    If you use multiple Boolean variables to control the interpretation of trans_sought, you will have more flexibility.
    If the rest of your problem is quantifier free, you should consider dropping the universal quantifier. This can be done if you only care about the value of trans_sought in a finite number of points.

    Suppose we have that trans_assumed(0) = 1 and trans_assumed(1) = 10. Then, we can write:

    assert (=> p0 (= (trans_sought 0) 1)))
    assert (=> p1 (= (trans_sought 1) 10)))
    

    In this encoding, we can query (check-sat p0 p1), (check-sat p0), (check-sat p1)

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

Sidebar

Related Questions

Is there a way to specify a child's initial window position in Qt? I
How do you specify that a foreign key constraint should be a 1:1 relationship
XAML allows you to specify an attribute value using a string that contains curly
Is it possible to specify a Java classpath that includes a JAR file contained
-Xms is to specify initial heap size or minimum heap size? I see differing
I've read in this post that all the ProxyFactory dependency was removed by using
I'm trying to create a generic data model that will allow for a particular
Question : What is the recommended way to specify an initial value for fields
Is there a 'standard' way to specify that a task continuation should run on
In Chrome and Safari, if we specify initial for an inheritable CSS property, it

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.