Comments (13)
That depends on whether or not you think it should also be skolemizing.
from hol.
Is there a conv that just converts to cnf without touching the quantifiers? For preprocessing before calling HolQbfLib.decide, for example.
from hol.
There's Canon_Port.PROP_CNF_CONV. But this one exposes you to a potential exponential blowup. I think you should use defCNF.DEF_CNF_VECTOR_CONV. Unfortunately, defCNF is only in examples/HolCheck at the moment, but I will change this. Using definitional CNF has to introduce quantifiers, but you can avoid messing with existing ones simply by applying the conversion under the quantifiers that are there (STRIP_QUANT_CONV).
There are also CNF conversions in Canon, and metis/normalForms. The latter may also skolemize.
from hol.
Err, clearly normalForms.CNF_CONV does skolemize, becase that's the one you're complaining about.
from hol.
Has defCNF been moved to a better place?
from hol.
Unfortunately, the vector version necessarily depends on the numbers so I couldn't figure out just where the "better place" should be.
from hol.
I think my original intention with this issue was to get the first item on the HolQbfLib Wishlist (in the Description manual), namely supporting arbitrary QBF via an appropriate conversion behind the scenes. The conversion should go to "prenex form", which is a quantifier prefix that ends in an existential quantifier followed by a quantifier-free CNF proposition. Whether that conversion is made from existing code or not I don't mind... If we can come up with a good plan of action, given what code exists (in any HOL-like theorem prover) and algorithms are known, in this issue I'd be happy to follow it through...
from hol.
It strikes me that you don't want the vectorised CNF conversion for HOLQBF because you won't want to deal with quantifiers over functions from the naturals. So, defCNF's position is irrelevant to your project.
from hol.
A lot of good stuff appears to be in Canon, namely PRENEX_CONV, NNF_CONV, and PROP_CNF_CONV.
One thing missing is a conversion to remove innermost universal quantifiers. Do you know if such a conversion has been implemented? The idea: starting from a formula in prenex normal form with a matrix in CNF, if the innermost quantifier is universal, delete that quantifier and delete that variable wherever it appears. The justification: imagine taking two copies of the matrix, one for when the variable is true and one for when it is false. In the true case, the variable makes each clause where it appears true, so the clause can be deleted. In the false case, the variable can be deleted from each clause where it appears. If the variable doesn't appear in some clause, only one copy of the clause needs to be kept.
I don't have an LCF style algorithm to hand...
from hol.
LCF algorithm suggestion:
- move the quantifier in over each conjunct using
FORALL_AND_THM
- using
EVERY_CONJ_CONV
reorder each clause so that the bound variable comes first (|- (... ∨ x ∨ ..) = (x ∨ ...)
) (you can probably do this withmarkerLib.move_disj_left
) - apply rewrite
|- (∀x. (x ∨ P)) = P
to each conjunct (or the version with¬x
)
I’m assuming that variables only appear once in each clause.
from hol.
Not clear that this requires any further work.
from hol.
Well, HolQbfLib.decide_any
doesn't quite accept anything yet, but maybe we can wait for someone else who cares to open an issue about that...
from hol.
On 24/05/12 3:42 PM, Ramana Kumar wrote:
Well,
HolQbfLib.decide_any
doesn't quite accept anything yet, but
maybe we can wait for someone else who cares to open an issue about
that...
Indeed. It seems to me that that is a separate issue from CNF_CONV not
working properly...
from hol.
Related Issues (20)
- Configure failure on macOS: Failed to make mlyacc (Fail "Command failed") HOT 4
- Store location information about where theorems were proved in Theory.sig files
- Emacs mode doesn't have M-h H in menu
- Failure to build on Android/termux HOT 6
- emacs mode should choose HOL executable based on lastmaker file (if any) HOT 1
- emacs mode: package the lisp code for it to be released in a package archive HOT 1
- Manual Makefile HOT 5
- Proof failed but Holmake doesn't report it HOT 6
- Use kernel compute feature in HOL4 simplifier, decision procedures, and EVAL HOT 6
- Command sequence for installing HOL's OpenTheory packages HOT 3
- Some small typos in the doc HOT 2
- Alpha turns into a by accident
- Tools should report config files' location
- Building HOL4 will crash with latest Apple update of Xcode HOT 3
- Remove/Name Anonymous Rewrite for NUM_CEILING HOT 1
- Allow "reduced" info printing in emacs HOT 1
- Use rule-names instead of conjunctions in Inductive definitions HOT 1
- `Holmake: Exception: Subscript` when building HOL with -j12 or greater (but not -j11 or lower) HOT 5
- Limits on the number of jobs for Holmake? HOT 2
- SAT_ORACLE gives wrong answers HOT 11
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hol.