Giter Club home page Giter Club logo

Comments (5)

selig avatar selig commented on July 26, 2024

Defaulting to minisat sounds like a good step whilst we find a more long-term solution.

The alternative is the sat_fallback_for_smt option, which runs minisat alongside z3 and falls back to minisat if z3 ever fails... but if we know it's definitely going to fail then that doesn't sound very useful.

from vampire.

MichaelRawson avatar MichaelRawson commented on July 26, 2024

I looked at this code not so long ago in #300 - there we partially handle it if the "polymorphism" is actually just an indexed family of monomorphic functions. This looks like it's more involved though.

Seems to me that the thing to do would be to keep the mechanism in #300 and either:

  1. Ground all sort variables before handing to Z3.
  2. Skip asserting clauses with sort variables to Z3. Then it's an under-approximation, but it is anyway.

from vampire.

ibnyusuf avatar ibnyusuf commented on July 26, 2024

Just to note, that even with the fix #455 in place, we still receive an error when carrying out the above run command. However, the error is totally different (see below). It is linked to the interaction between polymorphism and UWA. As the UWA implementation is set to totally change, I am not going to fix this now.

Version : Vampire 4.7 (commit 340dc86bd on 2023-06-23 14:21:36 +0100)
Control points passed: 2214116
last control point:
                        -AtomicSort::isArraySort (2214116)
main
 vampireMode()
  doProving()
   ProvingHelper::runVampireSaturation
    ProvingHelper::runVampireSaturationImpl
     MainLoop::run
      SaturationAlgorithm::init
       SaturationAlgorithm::addInputClause
        SaturationAlgorithm::addInputSOSClause
         ActiveClauseContainer::add
          SingleParamEvent::fire
           SuperpositionSubtermIndex::handleClause
            SubstitutionTree::insert
             SubstitutionTree::UArrIntermediateNode::childByTop
              SubstitutionTree::ChildBySortHelper::mightExistAsTop
               tryGetResultSort(TermList,unsigned&)
                tryGetResultSort(Term*,unsigned&)
                 SortHelper::getResultSortOrMasterVariable
                  SortHelper::getResultSort(Term*)
                   SubstHelper::apply(TermList...)
                    SubstHelper::applyImpl(TermList...)
                     SubstHelper::applyImpl(Term*...)
                      AtomicSort::create/2
                       TermSharing::insert(AtomicSort*)

from vampire.

ibnyusuf avatar ibnyusuf commented on July 26, 2024

To clarify #455 has nothing to do with this issue. On further investigation, this issue is caused by current UWA implementation incorrectly creating constraints between sorts. As UWA implementation is set to change, I don't propose to fix now, but will leave this issue open so that we can revisit once new UWA implementation goes in.

from vampire.

MichaelRawson avatar MichaelRawson commented on July 26, 2024

No longer reproduces on master, I guess because the UWA changes came through. Good job!

from vampire.

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.