SemGuS-git / Semgus-Parser

Library and tool for parsing SemGuS specifications
MIT License
4 stars 1 forks source link

Support "intrinsic" declarations #114

Closed kjcjohnson closed 7 months ago

kjcjohnson commented 7 months ago

Fixes #113.

Adds three new "experimental" commands:

(define-intrinsic-fun <identifier> (<arg-sorts>) <return-sort>)
(define-intrinsic-const <identifier> <sort>)
(define-intrinsic-sort <identifier>)

These function symbols will be used during parsing, but will not be emitted as declare-function or define-function events.

For example, to use cvc5's transcendental theory, one might do:

(define-intrinsic-const real.pi Real)
(define-intrinsic-fun sin (Real) Real)