Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(ocaml): refactoring ocaml lambda #15

Merged
merged 4 commits into from
Nov 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 2 additions & 0 deletions OCaml/lambda-1/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.dockerignore
Dockerfile
6 changes: 6 additions & 0 deletions OCaml/lambda-1/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
FROM ghcr.io/sambyeol/ocaml-devcontainer:4.14.1-debian-root

USER root
RUN mkdir -p /workspace
WORKDIR /workspace
COPY . /workspace
File renamed without changes.
File renamed without changes.
12 changes: 12 additions & 0 deletions OCaml/lambda-1/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"language": "ocaml",
"id": "lambda-1",

"buggyPath": "buggy",
"referencePath": null,

"buildCommand": "ocamlc src.ml",
"testCommand": null,

"categories": ["functional"]
}
2 changes: 2 additions & 0 deletions OCaml/lambda-10/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.dockerignore
Dockerfile
6 changes: 6 additions & 0 deletions OCaml/lambda-10/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
FROM ghcr.io/sambyeol/ocaml-devcontainer:4.14.1-debian-root

USER root
RUN mkdir -p /workspace
WORKDIR /workspace
COPY . /workspace
35 changes: 35 additions & 0 deletions OCaml/lambda-10/buggy/testcases
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
V ("X") => false;
(C (P ("h", P ("f", P ("y", P ("c", C (C (V "f", V "f"), V "c"))))), V "z")) => false;
(C (V "h", C (C (V "f", V "f"), V "y"))) => false;
(P ("y", P ("g", C (V "f", V "f")))) => false;
(C (C (V "b", P ("c", V "c")), P ("y", P ("c", C (C (V "f", V "f"), V "c"))))) => false;
(C (V "h", V "y")) => false;
(P ("g", P ("x", V "y"))) => false;
(C (P ("y", P ("c", C (C (V "f", V "f"), V "c"))), C (C (V "f", V "f"), V "y"))) => false;
(C (P ("f", P ("y", P ("c", C (C (V "f", V "f"), V "c")))), P ("b", C (V "f", V "f")))) => false;
(C (C (C (V "z", P ("x", V "y")), P ("y", P ("c", C (C (V "f", V "f"), V "c")))), C (V "x", V "h"))) => false;
(P ("h", P ("y", P ("c", C (C (V "f", V "f"), V "c"))))) => false;
(P ("c", V "c")) => true;
(P ("h", P ("h", P ("f", P ("y", P ("c", C (C (V "f", V "f"), V "c"))))))) => true;
(P ("h", P ("f", P ("y", P ("c", C (C (V "f", V "f"), V "c")))))) => true;
(P ("h", P ("b", P ("f", P ("y", P ("c", C (C (V "f", V "f"), V "c"))))))) => true;
(P ("g", P ("h", P ("f", P ("y", P ("c", C (C (V "f", V "f"), V "c"))))))) => true;
(P ("x", P ("c", V "c"))) => true;
(P ("b", P ("f", P ("y", P ("c", C (C (V "f", V "f"), V "c")))))) => true;
(P ("f", P ("y", P ("c", C (C (V "f", V "f"), V "c"))))) => true;
(P ("h", C (P ("x", P ("c", V "c")), V "h"))) => true;
(P ("a", P ("b", C(V "a", V "b")))) => true;
C ((P (("x", V ("x"))), P (("x", V ("x"))))) => true;
C ((P (("x", V ("x"))), V ("x"))) => false;
P (("x_0", C ((V ("x_1"), P (("x_1", V ("x_0"))))))) => false;
P (("x_1", P (("x_0", C ((V ("x_1"), V ("x_1"))))))) => true;
P (("x_0", P (("x_1", P (("x_2", C ((V ("x_0"), V ("x_1"))))))))) => true;
P (("x", P (("x", P (("x", V ("x"))))))) => true;
P (("x_0", C ((V ("x_1"), P (("x_1", V ("x_1"))))))) => false;
P (("x_0", C ((P (("x_1", V ("x_1"))), V ("x_1"))))) => false;
P (("x_0", C ((V ("x_0"), V ("x_1"))))) => false;
P (("x_1", C ((P (("x_0", C ((V ("x_0"), V ("x_1"))))), V ("x_1"))))) => true;
C ((P (("x", V ("x"))), C ((V ("x"), P (("x", V ("x"))))))) => false;
C ((C ((V ("x"), P (("x", V ("x"))))), P (("x", V ("x"))))) => false;
}
12 changes: 12 additions & 0 deletions OCaml/lambda-10/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"language": "ocaml",
"id": "lambda-10",

"buggyPath": "buggy",
"referencePath": null,

"buildCommand": "ocamlc src.ml",
"testCommand": null,

"categories": ["functional"]
}
2 changes: 2 additions & 0 deletions OCaml/lambda-100/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.dockerignore
Dockerfile
6 changes: 6 additions & 0 deletions OCaml/lambda-100/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
FROM ghcr.io/sambyeol/ocaml-devcontainer:4.14.1-debian-root

USER root
RUN mkdir -p /workspace
WORKDIR /workspace
COPY . /workspace
35 changes: 35 additions & 0 deletions OCaml/lambda-100/buggy/testcases
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
V ("X") => false;
(C (P ("h", P ("f", P ("y", P ("c", C (C (V "f", V "f"), V "c"))))), V "z")) => false;
(C (V "h", C (C (V "f", V "f"), V "y"))) => false;
(P ("y", P ("g", C (V "f", V "f")))) => false;
(C (C (V "b", P ("c", V "c")), P ("y", P ("c", C (C (V "f", V "f"), V "c"))))) => false;
(C (V "h", V "y")) => false;
(P ("g", P ("x", V "y"))) => false;
(C (P ("y", P ("c", C (C (V "f", V "f"), V "c"))), C (C (V "f", V "f"), V "y"))) => false;
(C (P ("f", P ("y", P ("c", C (C (V "f", V "f"), V "c")))), P ("b", C (V "f", V "f")))) => false;
(C (C (C (V "z", P ("x", V "y")), P ("y", P ("c", C (C (V "f", V "f"), V "c")))), C (V "x", V "h"))) => false;
(P ("h", P ("y", P ("c", C (C (V "f", V "f"), V "c"))))) => false;
(P ("c", V "c")) => true;
(P ("h", P ("h", P ("f", P ("y", P ("c", C (C (V "f", V "f"), V "c"))))))) => true;
(P ("h", P ("f", P ("y", P ("c", C (C (V "f", V "f"), V "c")))))) => true;
(P ("h", P ("b", P ("f", P ("y", P ("c", C (C (V "f", V "f"), V "c"))))))) => true;
(P ("g", P ("h", P ("f", P ("y", P ("c", C (C (V "f", V "f"), V "c"))))))) => true;
(P ("x", P ("c", V "c"))) => true;
(P ("b", P ("f", P ("y", P ("c", C (C (V "f", V "f"), V "c")))))) => true;
(P ("f", P ("y", P ("c", C (C (V "f", V "f"), V "c"))))) => true;
(P ("h", C (P ("x", P ("c", V "c")), V "h"))) => true;
(P ("a", P ("b", C(V "a", V "b")))) => true;
C ((P (("x", V ("x"))), P (("x", V ("x"))))) => true;
C ((P (("x", V ("x"))), V ("x"))) => false;
P (("x_0", C ((V ("x_1"), P (("x_1", V ("x_0"))))))) => false;
P (("x_1", P (("x_0", C ((V ("x_1"), V ("x_1"))))))) => true;
P (("x_0", P (("x_1", P (("x_2", C ((V ("x_0"), V ("x_1"))))))))) => true;
P (("x", P (("x", P (("x", V ("x"))))))) => true;
P (("x_0", C ((V ("x_1"), P (("x_1", V ("x_1"))))))) => false;
P (("x_0", C ((P (("x_1", V ("x_1"))), V ("x_1"))))) => false;
P (("x_0", C ((V ("x_0"), V ("x_1"))))) => false;
P (("x_1", C ((P (("x_0", C ((V ("x_0"), V ("x_1"))))), V ("x_1"))))) => true;
C ((P (("x", V ("x"))), C ((V ("x"), P (("x", V ("x"))))))) => false;
C ((C ((V ("x"), P (("x", V ("x"))))), P (("x", V ("x"))))) => false;
}
12 changes: 12 additions & 0 deletions OCaml/lambda-100/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"language": "ocaml",
"id": "lambda-100",

"buggyPath": "buggy",
"referencePath": null,

"buildCommand": "ocamlc src.ml",
"testCommand": null,

"categories": ["functional"]
}
2 changes: 2 additions & 0 deletions OCaml/lambda-11/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.dockerignore
Dockerfile
6 changes: 6 additions & 0 deletions OCaml/lambda-11/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
FROM ghcr.io/sambyeol/ocaml-devcontainer:4.14.1-debian-root

USER root
RUN mkdir -p /workspace
WORKDIR /workspace
COPY . /workspace
35 changes: 35 additions & 0 deletions OCaml/lambda-11/buggy/testcases
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
V ("X") => false;
(C (P ("h", P ("f", P ("y", P ("c", C (C (V "f", V "f"), V "c"))))), V "z")) => false;
(C (V "h", C (C (V "f", V "f"), V "y"))) => false;
(P ("y", P ("g", C (V "f", V "f")))) => false;
(C (C (V "b", P ("c", V "c")), P ("y", P ("c", C (C (V "f", V "f"), V "c"))))) => false;
(C (V "h", V "y")) => false;
(P ("g", P ("x", V "y"))) => false;
(C (P ("y", P ("c", C (C (V "f", V "f"), V "c"))), C (C (V "f", V "f"), V "y"))) => false;
(C (P ("f", P ("y", P ("c", C (C (V "f", V "f"), V "c")))), P ("b", C (V "f", V "f")))) => false;
(C (C (C (V "z", P ("x", V "y")), P ("y", P ("c", C (C (V "f", V "f"), V "c")))), C (V "x", V "h"))) => false;
(P ("h", P ("y", P ("c", C (C (V "f", V "f"), V "c"))))) => false;
(P ("c", V "c")) => true;
(P ("h", P ("h", P ("f", P ("y", P ("c", C (C (V "f", V "f"), V "c"))))))) => true;
(P ("h", P ("f", P ("y", P ("c", C (C (V "f", V "f"), V "c")))))) => true;
(P ("h", P ("b", P ("f", P ("y", P ("c", C (C (V "f", V "f"), V "c"))))))) => true;
(P ("g", P ("h", P ("f", P ("y", P ("c", C (C (V "f", V "f"), V "c"))))))) => true;
(P ("x", P ("c", V "c"))) => true;
(P ("b", P ("f", P ("y", P ("c", C (C (V "f", V "f"), V "c")))))) => true;
(P ("f", P ("y", P ("c", C (C (V "f", V "f"), V "c"))))) => true;
(P ("h", C (P ("x", P ("c", V "c")), V "h"))) => true;
(P ("a", P ("b", C(V "a", V "b")))) => true;
C ((P (("x", V ("x"))), P (("x", V ("x"))))) => true;
C ((P (("x", V ("x"))), V ("x"))) => false;
P (("x_0", C ((V ("x_1"), P (("x_1", V ("x_0"))))))) => false;
P (("x_1", P (("x_0", C ((V ("x_1"), V ("x_1"))))))) => true;
P (("x_0", P (("x_1", P (("x_2", C ((V ("x_0"), V ("x_1"))))))))) => true;
P (("x", P (("x", P (("x", V ("x"))))))) => true;
P (("x_0", C ((V ("x_1"), P (("x_1", V ("x_1"))))))) => false;
P (("x_0", C ((P (("x_1", V ("x_1"))), V ("x_1"))))) => false;
P (("x_0", C ((V ("x_0"), V ("x_1"))))) => false;
P (("x_1", C ((P (("x_0", C ((V ("x_0"), V ("x_1"))))), V ("x_1"))))) => true;
C ((P (("x", V ("x"))), C ((V ("x"), P (("x", V ("x"))))))) => false;
C ((C ((V ("x"), P (("x", V ("x"))))), P (("x", V ("x"))))) => false;
}
12 changes: 12 additions & 0 deletions OCaml/lambda-11/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"language": "ocaml",
"id": "lambda-11",

"buggyPath": "buggy",
"referencePath": null,

"buildCommand": "ocamlc src.ml",
"testCommand": null,

"categories": ["functional"]
}
2 changes: 2 additions & 0 deletions OCaml/lambda-12/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.dockerignore
Dockerfile
6 changes: 6 additions & 0 deletions OCaml/lambda-12/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
FROM ghcr.io/sambyeol/ocaml-devcontainer:4.14.1-debian-root

USER root
RUN mkdir -p /workspace
WORKDIR /workspace
COPY . /workspace
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ let rec check (m : lambda) : bool =
| C (m0, m1) -> check_sub (m0, l) && check_sub (m1, l)
in

match m with V s -> raise Invalid_input "V only" | _ -> check_sub (m, [])
match m with V s -> raise (Invalid_input "V only") | _ -> check_sub (m, [])
35 changes: 35 additions & 0 deletions OCaml/lambda-12/buggy/testcases
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
V ("X") => false;
(C (P ("h", P ("f", P ("y", P ("c", C (C (V "f", V "f"), V "c"))))), V "z")) => false;
(C (V "h", C (C (V "f", V "f"), V "y"))) => false;
(P ("y", P ("g", C (V "f", V "f")))) => false;
(C (C (V "b", P ("c", V "c")), P ("y", P ("c", C (C (V "f", V "f"), V "c"))))) => false;
(C (V "h", V "y")) => false;
(P ("g", P ("x", V "y"))) => false;
(C (P ("y", P ("c", C (C (V "f", V "f"), V "c"))), C (C (V "f", V "f"), V "y"))) => false;
(C (P ("f", P ("y", P ("c", C (C (V "f", V "f"), V "c")))), P ("b", C (V "f", V "f")))) => false;
(C (C (C (V "z", P ("x", V "y")), P ("y", P ("c", C (C (V "f", V "f"), V "c")))), C (V "x", V "h"))) => false;
(P ("h", P ("y", P ("c", C (C (V "f", V "f"), V "c"))))) => false;
(P ("c", V "c")) => true;
(P ("h", P ("h", P ("f", P ("y", P ("c", C (C (V "f", V "f"), V "c"))))))) => true;
(P ("h", P ("f", P ("y", P ("c", C (C (V "f", V "f"), V "c")))))) => true;
(P ("h", P ("b", P ("f", P ("y", P ("c", C (C (V "f", V "f"), V "c"))))))) => true;
(P ("g", P ("h", P ("f", P ("y", P ("c", C (C (V "f", V "f"), V "c"))))))) => true;
(P ("x", P ("c", V "c"))) => true;
(P ("b", P ("f", P ("y", P ("c", C (C (V "f", V "f"), V "c")))))) => true;
(P ("f", P ("y", P ("c", C (C (V "f", V "f"), V "c"))))) => true;
(P ("h", C (P ("x", P ("c", V "c")), V "h"))) => true;
(P ("a", P ("b", C(V "a", V "b")))) => true;
C ((P (("x", V ("x"))), P (("x", V ("x"))))) => true;
C ((P (("x", V ("x"))), V ("x"))) => false;
P (("x_0", C ((V ("x_1"), P (("x_1", V ("x_0"))))))) => false;
P (("x_1", P (("x_0", C ((V ("x_1"), V ("x_1"))))))) => true;
P (("x_0", P (("x_1", P (("x_2", C ((V ("x_0"), V ("x_1"))))))))) => true;
P (("x", P (("x", P (("x", V ("x"))))))) => true;
P (("x_0", C ((V ("x_1"), P (("x_1", V ("x_1"))))))) => false;
P (("x_0", C ((P (("x_1", V ("x_1"))), V ("x_1"))))) => false;
P (("x_0", C ((V ("x_0"), V ("x_1"))))) => false;
P (("x_1", C ((P (("x_0", C ((V ("x_0"), V ("x_1"))))), V ("x_1"))))) => true;
C ((P (("x", V ("x"))), C ((V ("x"), P (("x", V ("x"))))))) => false;
C ((C ((V ("x"), P (("x", V ("x"))))), P (("x", V ("x"))))) => false;
}
12 changes: 12 additions & 0 deletions OCaml/lambda-12/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"language": "ocaml",
"id": "lambda-12",

"buggyPath": "buggy",
"referencePath": null,

"buildCommand": "ocamlc src.ml",
"testCommand": null,

"categories": ["functional"]
}
2 changes: 2 additions & 0 deletions OCaml/lambda-13/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.dockerignore
Dockerfile
6 changes: 6 additions & 0 deletions OCaml/lambda-13/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
FROM ghcr.io/sambyeol/ocaml-devcontainer:4.14.1-debian-root

USER root
RUN mkdir -p /workspace
WORKDIR /workspace
COPY . /workspace
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ and var = string

let rec check (a : lambda) : bool =
match a with
| V _ -> raise Invalid_argument "check"
| C (a, b) -> raise Invalid_argument "check"
| V _ -> raise (Invalid_argument "check")
| C (a, b) -> raise (Invalid_argument "check")
| P (a, V b) -> if a = b then true else false
| P (a, C (V b, V c)) -> if a = b || a = c then true else false
| P (a, C (P (b, V c), V d)) -> if a = c || a = d then true else false
Expand Down
35 changes: 35 additions & 0 deletions OCaml/lambda-13/buggy/testcases
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
V ("X") => false;
(C (P ("h", P ("f", P ("y", P ("c", C (C (V "f", V "f"), V "c"))))), V "z")) => false;
(C (V "h", C (C (V "f", V "f"), V "y"))) => false;
(P ("y", P ("g", C (V "f", V "f")))) => false;
(C (C (V "b", P ("c", V "c")), P ("y", P ("c", C (C (V "f", V "f"), V "c"))))) => false;
(C (V "h", V "y")) => false;
(P ("g", P ("x", V "y"))) => false;
(C (P ("y", P ("c", C (C (V "f", V "f"), V "c"))), C (C (V "f", V "f"), V "y"))) => false;
(C (P ("f", P ("y", P ("c", C (C (V "f", V "f"), V "c")))), P ("b", C (V "f", V "f")))) => false;
(C (C (C (V "z", P ("x", V "y")), P ("y", P ("c", C (C (V "f", V "f"), V "c")))), C (V "x", V "h"))) => false;
(P ("h", P ("y", P ("c", C (C (V "f", V "f"), V "c"))))) => false;
(P ("c", V "c")) => true;
(P ("h", P ("h", P ("f", P ("y", P ("c", C (C (V "f", V "f"), V "c"))))))) => true;
(P ("h", P ("f", P ("y", P ("c", C (C (V "f", V "f"), V "c")))))) => true;
(P ("h", P ("b", P ("f", P ("y", P ("c", C (C (V "f", V "f"), V "c"))))))) => true;
(P ("g", P ("h", P ("f", P ("y", P ("c", C (C (V "f", V "f"), V "c"))))))) => true;
(P ("x", P ("c", V "c"))) => true;
(P ("b", P ("f", P ("y", P ("c", C (C (V "f", V "f"), V "c")))))) => true;
(P ("f", P ("y", P ("c", C (C (V "f", V "f"), V "c"))))) => true;
(P ("h", C (P ("x", P ("c", V "c")), V "h"))) => true;
(P ("a", P ("b", C(V "a", V "b")))) => true;
C ((P (("x", V ("x"))), P (("x", V ("x"))))) => true;
C ((P (("x", V ("x"))), V ("x"))) => false;
P (("x_0", C ((V ("x_1"), P (("x_1", V ("x_0"))))))) => false;
P (("x_1", P (("x_0", C ((V ("x_1"), V ("x_1"))))))) => true;
P (("x_0", P (("x_1", P (("x_2", C ((V ("x_0"), V ("x_1"))))))))) => true;
P (("x", P (("x", P (("x", V ("x"))))))) => true;
P (("x_0", C ((V ("x_1"), P (("x_1", V ("x_1"))))))) => false;
P (("x_0", C ((P (("x_1", V ("x_1"))), V ("x_1"))))) => false;
P (("x_0", C ((V ("x_0"), V ("x_1"))))) => false;
P (("x_1", C ((P (("x_0", C ((V ("x_0"), V ("x_1"))))), V ("x_1"))))) => true;
C ((P (("x", V ("x"))), C ((V ("x"), P (("x", V ("x"))))))) => false;
C ((C ((V ("x"), P (("x", V ("x"))))), P (("x", V ("x"))))) => false;
}
12 changes: 12 additions & 0 deletions OCaml/lambda-13/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"language": "ocaml",
"id": "lambda-13",

"buggyPath": "buggy",
"referencePath": null,

"buildCommand": "ocamlc src.ml",
"testCommand": null,

"categories": ["functional"]
}
2 changes: 2 additions & 0 deletions OCaml/lambda-14/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.dockerignore
Dockerfile
6 changes: 6 additions & 0 deletions OCaml/lambda-14/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
FROM ghcr.io/sambyeol/ocaml-devcontainer:4.14.1-debian-root

USER root
RUN mkdir -p /workspace
WORKDIR /workspace
COPY . /workspace
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ and var = string

let rec check (a : lambda) : bool =
match a with
| V _ -> raise Invalid_argument "check"
| C (a, b) -> raise Invalid_argument "check"
| V _ -> raise (Invalid_argument "check")
| C (a, b) -> raise (Invalid_argument "check")
| P (a, V b) -> if a = b then true else false
| P (a, C (V b, V c)) -> if a = b || a = c then true else false
| P (a, C (P (b, V c), V d)) -> if a = c && a = d then true else false
Expand Down
35 changes: 35 additions & 0 deletions OCaml/lambda-14/buggy/testcases
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
V ("X") => false;
(C (P ("h", P ("f", P ("y", P ("c", C (C (V "f", V "f"), V "c"))))), V "z")) => false;
(C (V "h", C (C (V "f", V "f"), V "y"))) => false;
(P ("y", P ("g", C (V "f", V "f")))) => false;
(C (C (V "b", P ("c", V "c")), P ("y", P ("c", C (C (V "f", V "f"), V "c"))))) => false;
(C (V "h", V "y")) => false;
(P ("g", P ("x", V "y"))) => false;
(C (P ("y", P ("c", C (C (V "f", V "f"), V "c"))), C (C (V "f", V "f"), V "y"))) => false;
(C (P ("f", P ("y", P ("c", C (C (V "f", V "f"), V "c")))), P ("b", C (V "f", V "f")))) => false;
(C (C (C (V "z", P ("x", V "y")), P ("y", P ("c", C (C (V "f", V "f"), V "c")))), C (V "x", V "h"))) => false;
(P ("h", P ("y", P ("c", C (C (V "f", V "f"), V "c"))))) => false;
(P ("c", V "c")) => true;
(P ("h", P ("h", P ("f", P ("y", P ("c", C (C (V "f", V "f"), V "c"))))))) => true;
(P ("h", P ("f", P ("y", P ("c", C (C (V "f", V "f"), V "c")))))) => true;
(P ("h", P ("b", P ("f", P ("y", P ("c", C (C (V "f", V "f"), V "c"))))))) => true;
(P ("g", P ("h", P ("f", P ("y", P ("c", C (C (V "f", V "f"), V "c"))))))) => true;
(P ("x", P ("c", V "c"))) => true;
(P ("b", P ("f", P ("y", P ("c", C (C (V "f", V "f"), V "c")))))) => true;
(P ("f", P ("y", P ("c", C (C (V "f", V "f"), V "c"))))) => true;
(P ("h", C (P ("x", P ("c", V "c")), V "h"))) => true;
(P ("a", P ("b", C(V "a", V "b")))) => true;
C ((P (("x", V ("x"))), P (("x", V ("x"))))) => true;
C ((P (("x", V ("x"))), V ("x"))) => false;
P (("x_0", C ((V ("x_1"), P (("x_1", V ("x_0"))))))) => false;
P (("x_1", P (("x_0", C ((V ("x_1"), V ("x_1"))))))) => true;
P (("x_0", P (("x_1", P (("x_2", C ((V ("x_0"), V ("x_1"))))))))) => true;
P (("x", P (("x", P (("x", V ("x"))))))) => true;
P (("x_0", C ((V ("x_1"), P (("x_1", V ("x_1"))))))) => false;
P (("x_0", C ((P (("x_1", V ("x_1"))), V ("x_1"))))) => false;
P (("x_0", C ((V ("x_0"), V ("x_1"))))) => false;
P (("x_1", C ((P (("x_0", C ((V ("x_0"), V ("x_1"))))), V ("x_1"))))) => true;
C ((P (("x", V ("x"))), C ((V ("x"), P (("x", V ("x"))))))) => false;
C ((C ((V ("x"), P (("x", V ("x"))))), P (("x", V ("x"))))) => false;
}
Loading
Loading