Skip to content

Commit 792ac93

Browse files
committed
Clarify A - B is anti-restriction, not set difference
The minus operator is the negated form of restriction (A & ~B), not a true set difference operation.
1 parent a541deb commit 792ac93

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

docs/SPEC-semantic-matching.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,10 @@ Semantic matching applies to all binary operations that match attributes between
7171
| Operator | Operation | Semantic Matching |
7272
|----------|-----------|-------------------|
7373
| `A * B` | Join | Matches on homologous namesakes |
74-
| `A & B` | Restriction (subquery) | Matches on homologous namesakes |
75-
| `A - B` | Difference | Matches on homologous namesakes |
74+
| `A & B` | Restriction | Matches on homologous namesakes |
75+
| `A - B` | Anti-restriction | Matches on homologous namesakes |
76+
77+
Note: `A - B` is the negated form of restriction (equivalent to `A & ~B`), not a true set difference.
7678

7779
**All operators**:
7880
1. Match on **homologous namesakes** (same name AND same lineage)

0 commit comments

Comments
 (0)