summaryrefslogtreecommitdiff
path: root/proofs/signatures/lrat.plf
diff options
context:
space:
mode:
authorAlex Ozdemir <aozdemir@hmc.edu>2019-01-16 09:52:42 -0800
committerGitHub <noreply@github.com>2019-01-16 09:52:42 -0800
commit0287acb1180db269c5dd0fe0dad8f2fa925ba0b9 (patch)
tree767ed45ac5f3df764384d4287406ca9ba1537c29 /proofs/signatures/lrat.plf
parent1e6293daa3f6d61c9035e22ee76448b46dd83ce8 (diff)
Bugfix: LFSC clause equality (#2801)
* Bugfix: LFSC clause equality My implementation of clause equality had an undocumented assumption that the clauses didn't have any duplicate literals. Now that assumption is gone, and the tests suite has been expanded. * Added an empty clause test * Typo fix: Yoni Co-Authored-By: alex-ozdemir <aozdemir@hmc.edu> * Address Yoni's comments * Remove a duplicate clause_eq test. * Add an ordering clause_eq test. * Improve the documentation of clause_eq.
Diffstat (limited to 'proofs/signatures/lrat.plf')
-rw-r--r--proofs/signatures/lrat.plf8
1 files changed, 8 insertions, 0 deletions
diff --git a/proofs/signatures/lrat.plf b/proofs/signatures/lrat.plf
index ae6cbd101..ea1d90537 100644
--- a/proofs/signatures/lrat.plf
+++ b/proofs/signatures/lrat.plf
@@ -18,6 +18,14 @@
(program bool_or ((l bool) (r bool)) bool (match l (ff r) (tt tt)))
(program bool_and ((l bool) (r bool)) bool (match l (tt r) (ff ff)))
(program bool_not ((b bool)) bool (match b (tt ff) (ff tt)))
+(program bool_eq ((l bool) (r bool)) bool
+ (match l
+ (tt (match r
+ (tt tt)
+ (ff ff)))
+ (ff (match r
+ (tt ff)
+ (ff tt)))))
; =================== ;
; Working CNF formula ;
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback