summaryrefslogtreecommitdiff
path: root/prolog/problems/family_relations/brother_2
diff options
context:
space:
mode:
authorTimotej Lazar <timotej.lazar@fri.uni-lj.si>2017-02-27 18:35:01 +0100
committerTimotej Lazar <timotej.lazar@fri.uni-lj.si>2017-02-27 18:35:01 +0100
commit92c49ac708e04e545da6e7aafe91cac8f223f475 (patch)
treefe56e0e2e5e40e863cb993d85cd0e09d39e545de /prolog/problems/family_relations/brother_2
parent320f6db34b5da13e259c3a55db9996a456bf8839 (diff)
Prolog: add bugs files for the first six groups
Diffstat (limited to 'prolog/problems/family_relations/brother_2')
-rw-r--r--prolog/problems/family_relations/brother_2/bugs.json115
1 files changed, 115 insertions, 0 deletions
diff --git a/prolog/problems/family_relations/brother_2/bugs.json b/prolog/problems/family_relations/brother_2/bugs.json
new file mode 100644
index 0000000..252bcdf
--- /dev/null
+++ b/prolog/problems/family_relations/brother_2/bugs.json
@@ -0,0 +1,115 @@
+{
+ "patterns": [
+ "(clause (compound (functor \"parent\") (args variable)) (compound (functor \"parent\") (args variable)))",
+ "(clause (head (compound (functor \"brother\") (args variable))) (compound (functor \"parent\") (args (args variable))))",
+ "(clause (head (compound (functor \"brother\") (args (args variable)))) (compound (functor \"parent\") (args (args variable))))",
+ "(clause (head (compound (functor \"brother\") (args variable))) (compound (functor \"male\") (args variable)))",
+ "(clause (head (compound (functor \"brother\") (args variable))) (binop variable \"\\==\"))",
+ "(clause (head (compound (functor \"brother\") (args (args variable)))) (binop \"\\==\" variable))",
+ "(clause (compound (functor \"parent\") (args (args variable))) (binop variable \"\\==\"))",
+ "(clause (compound (functor \"parent\") (args (args variable))) (binop \"\\==\" variable))",
+ "(clause (compound (functor \"parent\") (args (args variable))) (compound (functor \"male\") (args variable)))",
+ "(clause (compound (functor \"male\") (args variable)) (binop variable \"\\==\"))",
+ "(clause (compound (functor \"male\") (args variable)) (compound (functor \"parent\") (args (args variable))))",
+ "(clause (head (compound (functor \"brother\") (args (args variable)))) (binop \"\\=\" variable))",
+ "(clause (head (compound (functor \"brother\") (args variable))) (binop variable \"\\=\"))",
+ "(clause (compound (functor \"parent\") (args (args variable))) (binop variable \"\\=\"))",
+ "(clause (compound (functor \"parent\") (args (args variable))) (binop \"\\=\" variable))",
+ "(clause (compound (functor \"male\") (args variable)) (binop variable \"\\=\"))",
+ "(clause (binop variable \"\\==\") (compound (functor \"male\") (args variable)))",
+ "(clause (binop variable \"\\=\") (compound (functor \"male\") (args variable)))",
+ "(clause (binop \"\\=\" variable) (compound (functor \"parent\") (args (args variable))))",
+ "(clause (binop variable \"\\=\") (compound (functor \"parent\") (args (args variable))))",
+ "(clause (head (compound (functor \"brother\") (args (args variable)))) (compound (functor \"not\") (args (binop \"=\" variable))))",
+ "(clause (head (compound (functor \"brother\") (args variable))) (binop \"\\=\" variable))",
+ "(clause (head (compound (functor \"brother\") (args (args variable)))) (binop variable \"\\=\"))",
+ "(clause (head (compound (functor \"brother\") (args variable))) (compound (functor \"not\") (args (binop variable \"=\"))))"
+ ],
+ "rules": [
+ {
+ "class": true,
+ "condition": [
+ "(clause (head (compound (functor \"brother\") (args variable))) (compound (functor \"male\") (args variable)))",
+ "(clause (compound (functor \"parent\") (args (args variable))) (binop \"\\==\" variable))"
+ ],
+ "distribution": [
+ 0,
+ 102
+ ],
+ "quality": 0.9873786600439431
+ },
+ {
+ "class": true,
+ "condition": [
+ "(clause (head (compound (functor \"brother\") (args variable))) (compound (functor \"male\") (args variable)))",
+ "(clause (compound (functor \"parent\") (args (args variable))) (binop \"\\=\" variable))",
+ "(clause (head (compound (functor \"brother\") (args (args variable)))) (binop \"\\=\" variable))"
+ ],
+ "distribution": [
+ 0,
+ 39
+ ],
+ "quality": 0.9574307072764063
+ },
+ {
+ "class": true,
+ "condition": [
+ "(clause (compound (functor \"parent\") (args (args variable))) (binop \"\\=\" variable))",
+ "(clause (compound (functor \"male\") (args variable)) (binop variable \"\\=\"))"
+ ],
+ "distribution": [
+ 0,
+ 34
+ ],
+ "quality": 0.9526649947812729
+ },
+ {
+ "class": true,
+ "condition": [
+ "(clause (head (compound (functor \"brother\") (args (args variable)))) (compound (functor \"parent\") (args (args variable))))",
+ "(clause (compound (functor \"parent\") (args (args variable))) (binop \"\\==\" variable))"
+ ],
+ "distribution": [
+ 4,
+ 102
+ ],
+ "quality": 0.9462163947101927
+ },
+ {
+ "class": true,
+ "condition": [
+ "(clause (head (compound (functor \"brother\") (args variable))) (compound (functor \"male\") (args variable)))",
+ "(clause (compound (functor \"parent\") (args (args variable))) (binop \"\\=\" variable))"
+ ],
+ "distribution": [
+ 1,
+ 43
+ ],
+ "quality": 0.9357128569764824
+ },
+ {
+ "class": true,
+ "condition": [
+ "(clause (compound (functor \"parent\") (args variable)) (compound (functor \"parent\") (args variable)))",
+ "(clause (head (compound (functor \"brother\") (args variable))) (compound (functor \"male\") (args variable)))",
+ "(clause (compound (functor \"parent\") (args (args variable))) (compound (functor \"male\") (args variable)))"
+ ],
+ "distribution": [
+ 9,
+ 80
+ ],
+ "quality": 0.8661764695637234
+ },
+ {
+ "class": false,
+ "condition": [
+ "(clause (binop \"\\=\" variable) (compound (functor \"parent\") (args (args variable))))"
+ ],
+ "distribution": [
+ 9,
+ 0
+ ],
+ "quality": 0.7899147086754702
+ }
+ ]
+} \ No newline at end of file