Skip to content

Commit 14b1f4a

Browse files
Updated alphasat experiments
1 parent 40e015a commit 14b1f4a

6 files changed

Lines changed: 34 additions & 42 deletions

File tree

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,5 @@ Manifest.toml
77
docs/build/
88
.vscode
99
experiments/*/formulas/*/
10-
experiments/*/results/*
1110
results/
1211
test/alphaval/mvhs-tableau/enriched_valid*

experiments/.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
*.toml
1+
results/
2+
*.toml

experiments/alphasat/mvcl-tableau.jl

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ using SoleLogics
33
using SoleLogics.ManyValuedLogics
44
using SoleReasoners
55
using StatsBase
6-
import SoleBase: initrng
76
import SoleLogics: sample
87

98
myalphabet = Atom.(["p", "q", "r"])
@@ -35,16 +34,15 @@ append!(
3534
mvclopweights = [8, 8, 8, 3, 3, 3, 3, 3, 3, 3, 3]
3635

3736
using SoleLogics.ManyValuedLogics: booleanalgebra, G3, Ł3, G4, Ł4, H4
38-
using SoleLogics.ManyValuedLogics: G5, G6, H6_1, H6_2, H6_3, H6
37+
using SoleLogics.ManyValuedLogics: G6, H6_1, H6_2, H6_3, H6, H9
3938

4039
algebras = [
41-
# ("BA", booleanalgebra),
42-
# ("G3", G3 ),
43-
# ("Ł3", Ł3 ),
44-
# ("G4", G4 ),
45-
# ("Ł4", Ł4 ),
46-
# ("H4", H4 ),
47-
("G5", G5 ),
40+
("BA", booleanalgebra),
41+
("G3", G3 ),
42+
("Ł3", Ł3 ),
43+
("G4", G4 ),
44+
("Ł4", Ł4 ),
45+
("H4", H4 ),
4846
("G6", G6 ),
4947
("H6_1", H6_1 ),
5048
("H6_2", H6_2 ),
@@ -67,7 +65,7 @@ for a in algebras
6765
unsats = zeros(Int64, max_height-min_height+1) # unsat for each height
6866
times = zeros(Float16, max_height-min_height+1) # times for each height
6967

70-
rng = initrng(Random.GLOBAL_RNG)
68+
rng = Random.GLOBAL_RNG
7169
aot = vcat(myalphabet,getdomain(a[2])) # atoms or truths
7270
aotweights = StatsBase.uweights(length(myalphabet)+length(getdomain(a[2])))
7371
aotpicker = (rng)->StatsBase.sample(rng, aot, aotweights)

experiments/alphasat/mvhs-tableau.jl

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ using SoleLogics
33
using SoleLogics.ManyValuedLogics
44
using SoleReasoners
55
using StatsBase
6-
import SoleBase: initrng
76
import SoleLogics: sample
87

98
myalphabet = Atom.(["p", "q", "r"])
@@ -52,16 +51,15 @@ append!(
5251
mvhsopweights = [8, 8, 8, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
5352

5453
using SoleLogics.ManyValuedLogics: booleanalgebra, G3, Ł3, G4, Ł4, H4
55-
using SoleLogics.ManyValuedLogics: G5, G6, H6_1, H6_2, H6_3, H6
54+
using SoleLogics.ManyValuedLogics: G6, H6_1, H6_2, H6_3, H6, H9
5655

5756
algebras = [
58-
# ("BA", booleanalgebra),
59-
# ("G3", G3 ),
60-
# ("Ł3", Ł3 ),
61-
# ("G4", G4 ),
62-
# ("Ł4", Ł4 ),
63-
# ("H4", H4 ),
64-
("G5", G5 ),
57+
("BA", booleanalgebra),
58+
("G3", G3 ),
59+
("Ł3", Ł3 ),
60+
("G4", G4 ),
61+
("Ł4", Ł4 ),
62+
("H4", H4 ),
6563
("G6", G6 ),
6664
("H6_1", H6_1 ),
6765
("H6_2", H6_2 ),
@@ -84,7 +82,7 @@ for a in algebras
8482
unsats = zeros(Int64, max_height-min_height+1) # unsat for each height
8583
times = zeros(Float16, max_height-min_height+1) # times for each height
8684

87-
rng = initrng(Random.GLOBAL_RNG)
85+
rng = Random.GLOBAL_RNG
8886
aot = vcat(myalphabet,getdomain(a[2])) # atoms or truths
8987
aotweights = StatsBase.uweights(length(myalphabet)+length(getdomain(a[2])))
9088
aotpicker = (rng)->StatsBase.sample(rng, aot, aotweights)

experiments/alphasat/mvlrcc8-tableau.jl

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ using SoleLogics
33
using SoleLogics.ManyValuedLogics
44
using SoleReasoners
55
using StatsBase
6-
import SoleBase: initrng
76
import SoleLogics: sample
87

98
myalphabet = Atom.(["p", "q", "r"])
@@ -42,16 +41,15 @@ append!(
4241
mvlrcc8opweights = [14, 14, 14, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3]
4342

4443
using SoleLogics.ManyValuedLogics: booleanalgebra, G3, Ł3, G4, Ł4, H4
45-
using SoleLogics.ManyValuedLogics: G5, G6, H6_1, H6_2, H6_3, H6
44+
using SoleLogics.ManyValuedLogics: G5, G6, H6_1, H6_2, H6_3, H6, H9
4645

4746
algebras = [
48-
# ("BA", booleanalgebra),
49-
# ("G3", G3 ),
50-
# ("Ł3", Ł3 ),
51-
# ("G4", G4 ),
52-
# ("Ł4", Ł4 ),
53-
# ("H4", H4 ),
54-
("G5", G5 ),
47+
("BA", booleanalgebra),
48+
("G3", G3 ),
49+
("Ł3", Ł3 ),
50+
("G4", G4 ),
51+
("Ł4", Ł4 ),
52+
("H4", H4 ),
5553
("G6", G6 ),
5654
("H6_1", H6_1 ),
5755
("H6_2", H6_2 ),
@@ -74,7 +72,7 @@ for a in algebras
7472
unsats = zeros(Int64, max_height-min_height+1) # unsat for each height
7573
times = zeros(Float16, max_height-min_height+1) # times for each height
7674

77-
rng = initrng(Random.GLOBAL_RNG)
75+
rng = Random.GLOBAL_RNG
7876
aot = vcat(myalphabet,getdomain(a[2])) # atoms or truths
7977
aotweights = StatsBase.uweights(length(myalphabet)+length(getdomain(a[2])))
8078
aotpicker = (rng)->StatsBase.sample(rng, aot, aotweights)

experiments/alphasat/mvltlfp-tableau.jl

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ using SoleLogics
33
using SoleLogics.ManyValuedLogics
44
using SoleReasoners
55
using StatsBase
6-
import SoleBase: initrng
76
import SoleLogics: sample
87

98
myalphabet = Atom.(["p", "q", "r"])
@@ -31,16 +30,15 @@ append!(
3130
mvltlfpopweights = [4, 4, 4, 3, 3, 3, 3]
3231

3332
using SoleLogics.ManyValuedLogics: booleanalgebra, G3, Ł3, G4, Ł4, H4
34-
using SoleLogics.ManyValuedLogics: G5, G6, H6_1, H6_2, H6_3, H6
33+
using SoleLogics.ManyValuedLogics: G6, H6_1, H6_2, H6_3, H6, H9
3534

3635
algebras = [
37-
# ("BA", booleanalgebra),
38-
# ("G3", G3 ),
39-
# ("Ł3", Ł3 ),
40-
# ("G4", G4 ),
41-
# ("Ł4", Ł4 ),
42-
# ("H4", H4 ),
43-
("G5", G5 ),
36+
("BA", booleanalgebra),
37+
("G3", G3 ),
38+
("Ł3", Ł3 ),
39+
("G4", G4 ),
40+
("Ł4", Ł4 ),
41+
("H4", H4 ),
4442
("G6", G6 ),
4543
("H6_1", H6_1 ),
4644
("H6_2", H6_2 ),
@@ -63,7 +61,7 @@ for a in algebras
6361
unsats = zeros(Int64, max_height-min_height+1) # unsat for each height
6462
times = zeros(Float16, max_height-min_height+1) # times for each height
6563

66-
rng = initrng(Random.GLOBAL_RNG)
64+
rng = Random.GLOBAL_RNG
6765
aot = vcat(myalphabet,getdomain(a[2])) # atoms or truths
6866
aotweights = StatsBase.uweights(length(myalphabet)+length(getdomain(a[2])))
6967
aotpicker = (rng)->StatsBase.sample(rng, aot, aotweights)

0 commit comments

Comments
 (0)