Skip to content
Discussion options

You must be logged in to vote

Use define-fun-rec if you want to use use the function declaration inside of an array map. Example,

(define-fun-rec f ((x Int)) Int (+ x 1))

(declare-const A (Array Int Int))
(declare-const B (Array Int Int))

(assert (= ((_ map f) A) B))
(check-sat)
(get-model)

define-fun does is (still) treated as a macro with eager unfolding (= without lazy unfolding).

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@zxt5
Comment options

Answer selected by zxt5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #6444 on November 06, 2022 05:52.