Skip to content

z3py unsat : proof() gives invalid usage and unsat core is empty #1137

@YutanpoFR

Description

@YutanpoFR

Dear all,

I use the z3py API, and wrote the following :

import z3
s = z3.Solver()
z3.set_param(proof=True)
s.add(unsatisfiable formula)
result = s.check()
if result == unsat :
    print s.proof()

And I get the following error :
z3.z3types.Z3Exception: invalid usage

I also try to get the unsat core, it is empty.

When the formula is satisfiable, the model generated is good.

Am I doing something wrong here ?

Thank you very much.
Yutanpo

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions