Skip to content

Commit

Permalink
Removing
Browse files Browse the repository at this point in the history
  • Loading branch information
ajreynol committed Feb 8, 2024
1 parent e9500b0 commit 80fad62
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions tests/rare-example.smt3
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,22 @@
(= (or xs true ys) true)
)

(program elim_singleton_list_rhs ((T Type) (f (-> T T T)) (t T) (s T :list))
((-> T T T) T) T
(
((elim_singleton_list_rhs f (f t s)) (alf.ite (alf.is_eq s (alf.emptylist f)) t (f t s)))
((elim_singleton_list_rhs f t) t)
)
)(program elim_singleton_list_lhs ((T Type) (f (-> T T T)) (t T :list) (s T))
((-> T T T) T) T
(
((elim_singleton_list_lhs f (f t s)) (alf.ite (alf.is_eq t (alf.emptylist f)) s (f t s)))
((elim_singleton_list_lhs f s) s)
)
)

(declare-axiom bool-or-false ((xs Bool :list) (ys Bool :list))
(= (or xs false ys) (alf.from_list or (or xs ys)))
(= (or xs false ys) (elim_singleton_list_rhs or (alf.concat or xs ys)))
)

(step @p0 (= (or a b true c) true) :rule bool-or-true :args ((or a b) (or c)))
Expand All @@ -23,7 +37,7 @@
(step @p5 (= (or (or a b) false) (or a b)) :rule bool-or-false :args ((or (or a b)) false))

(declare-axiom bool-and-true ((xs Bool :list) (ys Bool :list))
(= (and xs true ys) (alf.from_list and (and xs ys)))
(= (and xs true ys) (elim_singleton_list_lhs and (alf.concat and xs ys)))
)

(declare-axiom bool-and-false ((xs Bool :list) (ys Bool :list))
Expand Down

0 comments on commit 80fad62

Please sign in to comment.