Intersection distributes over unionComplete relation assignments · 512 triples
The problem
Decide the proposed set identity over every triple of finite-universe relations.
The checked result
Equivalent on the stated domain: yes.
The finite universe makes every relation assignment enumerable. The sample output illustrates the identity or supplies a direct refutation.
Why the checker accepts it
- Enumerate every subset of the universe.
- Evaluate both expressions on every triple of sets.
- Compare the complete finite-domain outputs.
- Replay a concrete sample, including a differing output for a false identity.
Formal specification
{
"universe_size": 3,
"law": "intersection-distribution",
"semantics": "Mathematical sets; unique values; no NULL or tuple multiplicity."
}Claim and evidence
{
"claim": {
"equivalent_on_domain": true
},
"witness": {
"sample": {
"A": [
0,
1
],
"B": [
1,
2
],
"C": [
0
],
"left": [
0,
1
],
"right": [
0,
1
]
}
}
}Dataset construction
Deterministic finite fixture; full enumeration or witness replay as stated. Structured JSON; field meanings are stated in the specification. Acceptance covers 512 checker units for this record; the unit type is stated in its verification scope.
Complexity and limits
A universe of n values has 2ⁿ subsets; three relation inputs create 2³ⁿ assignments.
Finite enumeration is bounded to this universe; these artifacts do not certify an SQL optimizer or measured execution speed.
A boundary to investigate
SQL bag semantics, NULL values, and outer joins can invalidate a rewrite valid for mathematical sets. Add equijoin trees, bag multiplicities, NULL handling, and an explicit query-cost model.