Skip to content

Commit

Permalink
several minor fixes in Alethe signature
Browse files Browse the repository at this point in the history
  • Loading branch information
Mallku2 committed Nov 7, 2024
1 parent a0447a7 commit 121793a
Showing 1 changed file with 33 additions and 15 deletions.
48 changes: 33 additions & 15 deletions carcara/src/translation/tests/alethe_signature/Alethe.eo
Original file line number Diff line number Diff line change
Expand Up @@ -538,17 +538,17 @@
((check_implies (@cl (=> phi1 phi2)) refCL)
(clEqual (@cl (not phi1) phi2) refCL)
)
;; TODO: why do we have this case?
((check_implies (=> phi1 phi2) refCL)
(clEqual (@cl (not phi1) phi2) refCL)
)
)
)

(declare-rule implies ((refCL Bool) (CL Bool))
(declare-rule implies ((CL Bool))
:premises (CL)
:args (refCL)
:requires (((check_implies CL refCL) true))
:conclusion refCL
:requires (((check_implies CL eo::conclusion) true))
:conclusion-given
)

(program check_not_implies1 ((phi1 Bool) (phi2 Bool) (refCL Bool))
Expand Down Expand Up @@ -692,18 +692,18 @@
)

;TODO
(program check_or_neg ((CL Bool))
(Bool) Bool
(program check_or_neg ((index Int) (CL Bool))
(Int Bool) Bool
(
((check_or_neg CL) true)
((check_or_neg index CL) true)
)
)

;TRUST
(declare-rule or_neg ((CL Bool))
:args (CL)
:requires (((check_or_neg CL) true))
:conclusion CL
(declare-rule or_neg ((index Int))
:args (index)
:requires (((check_or_neg index eo::conclusion) true))
:conclusion-given
)

;TODO
Expand Down Expand Up @@ -775,10 +775,9 @@
)

;TRUST
(declare-rule implies_pos ((CL Bool))
:args (CL)
:requires (((check_implies_pos CL) true))
:conclusion CL
(declare-rule implies_pos ()
:requires (((check_implies_pos eo::conclusion) true))
:conclusion-given
)

;TODO
Expand Down Expand Up @@ -1393,3 +1392,22 @@
:conclusion (@cl (= l r))
)

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Table 10: Rules used by cvc5, but not by veriT
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;TODO
(program check_symm ((premise Bool) (conclusion Bool))
(Bool Bool) Bool
(
((check_symm premise conclusion) true)
)
)
; TODO: should we delegate the whole responsibility to the checker or
; should we share responsibilities?
;TRUST
(declare-rule symm ((premise Bool))
:premises (premise)
:requires (((check_symm premise eo::conclusion) true))
:conclusion-given
)

0 comments on commit 121793a

Please sign in to comment.