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 8484313
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T20:20:51+00:00 2026-06-10T20:20:51+00:00

Given two boolexpr b1,b2 say b1=x1>=4&&x2>=5 b2=x2>=5&&x1>=4 Can we use .net API for Z3

  • 0

Given two boolexpr b1,b2
say

b1=x1>=4&&x2>=5
b2=x2>=5&&x1>=4

Can we use .net API for Z3 to know whether b1 and b2 are actually the same constraint? )(meaning that the value of x1 and x2 allowed by b1 and b2 are the same)

  • 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-10T20:20:53+00:00Added an answer on June 10, 2026 at 8:20 pm

    Yes. You want to prove that b1 equals b2, which you can do by showing the negation of b1 == b2 is unsatisfiable. Here’s an example showing how to do this in Z3Py, and you can use basically the same steps in the .NET API: http://rise4fun.com/Z3Py/M4R1

    x1, x2 = Reals('x1 x2')
    
    b1=And(x1>=4, x2>=5)
    b2=And(x2>=5, x1>=4)
    
    s = Solver()
    proposition = b1 == b2 # assertion is whether b1 and b2 are equal
    s.add(Not(proposition))
    # proposition proved if negation of proposition is unsat
    print s.check() # unsat 
    
    b1=And(x1>=3, x2>=5) # note difference
    b2=And(x2>=5, x1>=4)
    s = Solver()
    proposition = b1 == b2
    s.add(Not(proposition))
    print s.check() # sat
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Given two tuples of the same arity, how can I lexicographically compare them? It
Given two DOM elements, say a and b, how can we determine which comes
Given: two images of the same subject matter; the images have the same resolution,
Given two methods on the same class in Java : public void doSomething( Person
Given two .Net types, type A and type B, how could one determine all
Given two colors and n steps, how can one calculate n colors including the
Given two tables, Make and Model, where a make can contain many models and
Given two lists A={a1,a2,a3,...an} and B={b1,b2,b3,...bn} , I would say A>=B if and only
Given two versions of the same wix installer, I am attempting a minor upgrade
Given two arrays of integers, B and A, how can we rearrange their elements

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.