princess icon indicating copy to clipboard operation
princess copied to clipboard

ADT constructor for update

Open mgudemann opened this issue 5 months ago • 4 comments

Is there an equivalent to update (in CVC5) or update-field (in Z3) for ADTs in Princess?

cf. https://github.com/Z3Prover/z3/discussions/5712

mgudemann avatar Aug 01 '25 09:08 mgudemann

This is not currently supported, but we could introduce update functions easily.

Is this a question concerning the API or the SMT-LIB interface?

pruemmer avatar Aug 01 '25 10:08 pruemmer

Is this a question concerning the API or the SMT-LIB interface?

For the SMT-LIB interface.

mgudemann avatar Aug 01 '25 10:08 mgudemann

Thanks for the suggestion, we have now added update functions following the Z3 syntax: (_ update-field X)

pruemmer avatar Aug 05 '25 06:08 pruemmer

Great, thanks!

mgudemann avatar Aug 05 '25 12:08 mgudemann