Published October 20, 2025 | Version MFES 24/25
Dataset Open

Alloy4Fun Semantic Entries

  • 1. Universidade do Porto Faculdade de Engenharia
  • 2. ROR icon University of Minho

Description

This dataset groups together entries from the Alloy4Fun dataset according to their semantic and syntactic equivalence. Each entry is a student attempt to formalize a requirement (i.e., a challenge). Each challenge is a command that tests the equivalence of a student predicate against a hidden oracle. This grouping reduces ~51.000 entries into ~7.000 semantically distinct specifications (and ~17.000 syntactically distinct).

Semantic equivalence is tested with the Alloy Analyzer (with a default scope of 3 for top-level signatures).

Syntactic equivalence is tested after a simple normalization (variable anonymization and operator commutativity).

Each file original_cmd.json contains the information regarding a challenge represented by command labeled cmd of an Alloy4Fun exercise whose model has id original, namely:

  • original: the ID of the original model in the Alloy4Fun database 
  • cmd: the challenge command label
  • pred: the challenge predicate label
  • entry_count: the total number of entries for the challenge
  • semantic_count: the number of semantically distinct entries
  • syntactic_count: the number of syntactically distinct entries
  • scope: the scope used to test equivalence
  • groups: the actual semantic groups, containing:
    • entry_count: the total number of entries in the semantic group
    • syntactic_count: the number of syntactically distinct entries
    • correct: whether a correct solution to the challenge
    • elems: the actual syntactic groups, containing:
      • entry_count: the total number of entries in the syntactic group
      • code: a representative code submission

The following Alloy4Fun exercises where considered:

 

Name Permalink Challenge Entries Semantic groups Syntactic groups
Social network

x3JXgWhJ3uti5Dzxz

inv1

3054 119 377
Social network

x3JXgWhJ3uti5Dzxz

inv2

1599 45 171
Social network

x3JXgWhJ3uti5Dzxz

inv3

3936 858 1797
Social network

x3JXgWhJ3uti5Dzxz

inv4

1957 150 583
Social network

x3JXgWhJ3uti5Dzxz

inv5

2544 168 524
Social network

x3JXgWhJ3uti5Dzxz

inv6

1223 71 306
Social network

x3JXgWhJ3uti5Dzxz

inv7

3138 528 1281
Social network

x3JXgWhJ3uti5Dzxz

inv8

1254 268 528
Courses

iP5JL36afv5KbDKP6

inv1

1903 163 482
Courses

iP5JL36afv5KbDKP6

inv2 791 35 105
Courses

iP5JL36afv5KbDKP6

inv3 1075 86 222
Courses

iP5JL36afv5KbDKP6

inv4 1167 88 258
Courses

iP5JL36afv5KbDKP6

inv5 1883 253 721
Courses

iP5JL36afv5KbDKP6

inv6 1150 177 404
Courses

iP5JL36afv5KbDKP6

inv7 1163 187 407
Courses

iP5JL36afv5KbDKP6

inv8 928 85 235
Courses

iP5JL36afv5KbDKP6

inv9 1941 324 1032
Courses

iP5JL36afv5KbDKP6

inv10 882 82 292
Courses

iP5JL36afv5KbDKP6

inv11 790 91 279
Courses

iP5JL36afv5KbDKP6

inv12 751 92 222
Courses

iP5JL36afv5KbDKP6

inv13 934 302 458
Courses

iP5JL36afv5KbDKP6

inv14 577 54 205
Courses

iP5JL36afv5KbDKP6

inv15 466 133 247

Production line

dyj49tEp7j6aWAQQX  inv1 792 45 122

Production line

dyj49tEp7j6aWAQQX 

inv2

1330 94 514

Production line

dyj49tEp7j6aWAQQX 

inv3

539 29 78

Production line

dyj49tEp7j6aWAQQX 

inv4

769 80 244

Production line

dyj49tEp7j6aWAQQX 

inv5

856 128 372

Production line

dyj49tEp7j6aWAQQX 

inv6

1056 61 203

Production line

dyj49tEp7j6aWAQQX 

inv7

908 113 219

Production line

dyj49tEp7j6aWAQQX 

inv8

601 108 250

Production line

dyj49tEp7j6aWAQQX 

inv9

2148 588 1555

Production line

dyj49tEp7j6aWAQQX 

inv10

834 288 472
Train Station

cXPP9QBPTYgTX6WJ6

inv1

792 127 245
Train Station

cXPP9QBPTYgTX6WJ6

inv2

606 56 153
Train Station

cXPP9QBPTYgTX6WJ6

inv3

1473 145 384
Train Station

cXPP9QBPTYgTX6WJ6

inv4

685 111 272
Train Station

cXPP9QBPTYgTX6WJ6

inv5

836 166 392
Train Station

cXPP9QBPTYgTX6WJ6

inv6

461 70 133
Train Station

cXPP9QBPTYgTX6WJ6

inv7

337 38 78
Train Station

cXPP9QBPTYgTX6WJ6

inv8

508 53 120
Train Station

cXPP9QBPTYgTX6WJ6

inv9

768 206 357
Train Station

cXPP9QBPTYgTX6WJ6

inv10

425 90 156

 

Files

cXPP9QBPTYgTX6WJ6_inv1.json

Files (5.8 MB)

Name Size Download all
md5:c654ba4800413ff7a6af4ebb4199479f
77.3 kB Preview Download
md5:4d388ade1a70755b8bc295fd55986fcc
52.2 kB Preview Download
md5:4c54b4eca8c01760bc2ea497b78f48a7
39.8 kB Preview Download
md5:c40da946dc29eedd00e9824ddaf5cf34
105.7 kB Preview Download
md5:2ff1fe53647bbeb17e8b6bd913691cc7
78.0 kB Preview Download
md5:d86bf87903f5f6203c5446a7f61f7e5b
125.4 kB Preview Download
md5:781a399d9ef615a01d10340ac0074ac0
39.1 kB Preview Download
md5:93f285e0740fd9d26303e1d794910daa
21.4 kB Preview Download
md5:6061703aed4c436fd97b2e3e2dec2467
36.0 kB Preview Download
md5:4ccb8ccbdf1cfad575644926b38d4ef9
125.1 kB Preview Download
md5:5ac6d0082c61bf6982da1e0338fb9d40
33.0 kB Preview Download
md5:9ab11dc2dfecc3c88efcb23fb9624897
184.7 kB Preview Download
md5:a53830a9a50b27fa643ea556d70e4170
159.5 kB Preview Download
md5:4a3f9a73a2f08c516163faca61acf7d5
22.1 kB Preview Download
md5:af2319337644e2a4cbf41fab77fce836
75.5 kB Preview Download
md5:19bdeffafd38e772dce4549fbdfaea0c
114.4 kB Preview Download
md5:ac4e77d87adff7ad2664aee6bbdc60fb
52.5 kB Preview Download
md5:38b3afe4bade24fa61720d5d1e743772
71.6 kB Preview Download
md5:3ec33e7b4c9272d03bb32bf683b96f86
79.6 kB Preview Download
md5:4c3f434a639f62e99de77c8b6f68d9eb
577.0 kB Preview Download
md5:c60e66b20633444d86219ba691dfae31
131.1 kB Preview Download
md5:e93f34475ffb004036dd79668badb837
74.4 kB Preview Download
md5:c9999447367513d24a51346ebdf353be
82.5 kB Preview Download
md5:d1933987f47ed241500bfc9e412947c6
64.6 kB Preview Download
md5:b59658e9f9a9a10023debfbecfbbc257
197.9 kB Preview Download
md5:163a9ef9738619eb9fc1528e9754b11b
70.3 kB Preview Download
md5:e01bdbc4632f1677a6484fabcc0feb2f
124.1 kB Preview Download
md5:0d731148dad7520528a5779cf98838d5
28.0 kB Preview Download
md5:0219a5b095d92f3fce0e8fc10524f591
56.9 kB Preview Download
md5:8c44cd9ed3ebabb6ab89874906bdaacc
70.5 kB Preview Download
md5:3f94d3a3771e8f6790e89c1dd089c4a7
255.8 kB Preview Download
md5:829eeba8f3b82b2187609f32fece2fd6
137.3 kB Preview Download
md5:8f5dcd8b8ae1301544a65b633d9d8ff7
131.6 kB Preview Download
md5:2dc5f83a4a70b2a179809f8ed1426238
63.8 kB Preview Download
md5:9b92ad390ea25009cfa418a2e0b3fc4a
304.4 kB Preview Download
md5:666cecbddae4dfcf0bc9542076c165f4
97.7 kB Preview Download
md5:4a0db19ddd2a640b586504b603ad02fa
41.0 kB Preview Download
md5:9b22112285898650e4309302b0ccf467
703.4 kB Preview Download
md5:7c03055d9fba7da09446da6aef963e94
175.6 kB Preview Download
md5:d1ee109f90a16e02517a30ee9b039b8d
144.6 kB Preview Download
md5:a12ded456562b22cf75a1d9a9b7b1725
78.5 kB Preview Download
md5:bd1123289017302364aea823d0c1c3ec
472.8 kB Preview Download
md5:d56d0d93c7b368c3ef95bda344bfa569
182.8 kB Preview Download

Additional details

Related works

Is derived from
Dataset: 10.5281/zenodo.17390557 (DOI)

Dates

Collected
2023-04-22/2025-09-16
Data collection