Coder Social home page Coder Social logo

SMT: Case Consistency Checks about act HOT 3 CLOSED

d-xo avatar d-xo commented on August 16, 2024
SMT: Case Consistency Checks

from act.

Comments (3)

d-xo avatar d-xo commented on August 16, 2024

After discussing with @msooseth we came up with a more restricted case checking algorithm that should be decidable and very fast (even cases with 1000's of variables should be checkable in under a second).

The restrictions on the form of expressions that are allowable in a case would be:

  • We allow arbitrary combinations of arbitrary expressions connected with or, and and negation
  • The variables in a given expression in the case tree may only be used in that expression or it's negation. So if f(x,y,z) is an expression (e.g. x**2+y < z), then x, y, and z cannot be used anywhere else, except in the same form (i.e. x**2+y < z), or its negation (i.e x**2+y >= z).

This restriction works becase it allows us to abstract the expressions into a pure sat problem, and ensures that there are no connections between the variables in different expressions that would force abstraction refinement.

In order to implement this, we need to:

  1. Introduce a typechecking stage that ensures the expressions in the case tree match the above restrictions
  2. Introduce an SAT based consistency checking pass that actually checks that the expressions are all distinct and total

from act.

d-xo avatar d-xo commented on August 16, 2024

The consistency checking routine remains as described in the first comment, the restrictions simply ensure that it can always be easily solved.

from act.

zoep avatar zoep commented on August 16, 2024

Completed with #157.

from act.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.