Skip to content

Commit

Permalink
Missing
Browse files Browse the repository at this point in the history
  • Loading branch information
ajreynol committed Feb 19, 2025
1 parent 0ac860e commit 3081d13
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions tests/pairwise-singleton.eo
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@

(declare-const and (-> Bool Bool Bool) :right-assoc-nil true)
(declare-const distinct (-> (! Type :var A :implicit) A A Bool) :pairwise and)

(declare-const b Bool)

(declare-const = (-> (! Type :var A :implicit) A A Bool) :chainable and)

(define a () (= b) :type Bool)

; chainable with one argument reduces to the neutral element
(declare-const c1 (eo::requires a true Bool))
(define test1 () c1 :type Bool)

(define c () (distinct b) :type Bool)

; pairwise with one argument reduces to the neutral element
(declare-const c2 (eo::requires c true Bool))
(define test1 () c2 :type Bool)

0 comments on commit 3081d13

Please sign in to comment.