GithubHelp home page GithubHelp logo

Connection to datalog? about monosat HOT 1 OPEN

sambayless avatar sambayless commented on August 25, 2024
Connection to datalog?

from monosat.

Comments (1)

sambayless avatar sambayless commented on August 25, 2024

I haven't thought too deeply about the Datalog/MonoSAT connection before; but it could be promising.
Maybe something like: rules in data log become edges in a graph, facts are modeled as nodes (perhaps with a node 'true' always present), and we consider facts to be derivable if they are reachable from the true node. Each edge would have constraints on it ensuring that it can only be true if the body of one of its rules holds. Queries would be reachability predicates.

Is that similar to what you had in mind? It might be worth trying.

One thing to keep in mind:
MonoSAT scales well for graphs with as many as a few million nodes, depending on how complex the constraints are. But it isn't going to handle billions of nodes. So you would only be able to apply this to problem domains where the total space of possibly-derivable-facts (each of which will become a node) is not too large.

The closest thing I'm aware of in that area would be Answer Set Programming, which is a logic programming language with constraints. High-performance ASP solvers typically use a modified SAT solver on the backend. I'm not sure how closely the semantics of datalog and ASP line up (ASP is based around a notion of 'stable models' that I think differs from datalog), but that might be another direction to explore if you wanted a SAT backend for datalog constraints. This paper discusses the semantics of datalog and ASP.

from monosat.

Related Issues (19)

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.