Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Obtaining equisatisfiable CNF #175

Open
nano-o opened this issue Jul 11, 2024 · 1 comment
Open

Obtaining equisatisfiable CNF #175

nano-o opened this issue Jul 11, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@nano-o
Copy link

nano-o commented Jul 11, 2024

Hello, this might be a documentation issue. I am a novice user (also not familiar with Python) and I was puzzled for a while trying to obtain an equisatisfiable CNF from e.g. f=Implies(Atom('x'),And('y','z')). After f.clausify(), f.clauses does not return what I expected. I did not find how to do it in the online documentation, so finally I decided to look at formula.py and found that the __iter__ method of Formula allows me to obtain the clauses I wanted as [c for c in f]. It does not appear in the documentation yet it seems documented in the code, so I presume it's an issue with the setup of the documentation generator.

@alexeyignatiev
Copy link
Collaborator

Thanks for reporting, @nano-o!

@alexeyignatiev alexeyignatiev added the enhancement New feature or request label Jul 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants