Venn 7: Exploring Symmetric 7-Venn Diagrams with a Musical Interface
Venn 7 is a Web app exhibiting interactive versions of symmetric 7-Venn diagrams by mapping them to musical chords.
Click on regions in the diagrams to play chords, and use the arrows to navigate between the six 7-Venn diagram and one 5-Venn diagram. Read on for an explanation of what's going on here.
Venn diagrams
You may be familiar with the following Venn diagrams, which visualize all possible Boolean operations of two and three sets:
To introduce some clear terminology, the boundary of each set is referred to as a "curve," and the shapes formed by intersections and differences of curves are the "regions." The 2-Venn diagram has three regions and the 3-Venn diagram seven regions. In general, an n-Venn diagram has exactly 2n - 1 regions. Finally, we'll define the "order" of a region as the number of curves it is contained in.
What about a 4-Venn diagram? Our first attempt might look like this:
On closer inspection, this diagram is incorrect. There are only 13 regions compared to an expected 15. The two missing regions are of order 2, those that would be formed by the intersection of the two diagonally opposite curves. In this case, there is no region contained by x and w but not y and z, and no region contained by y and z but not x and w.
A correct Venn diagram with all 15 regions looks like this (Keep Talking players may recognize this one):
But unlike the 2-Venn and 3-Venn diagrams, it requires ellipses rather than circles, and doesn't have fourfold rotational symmetry like we would expect. In fact, no 4-Venn diagram exists using only circles, and no 4-Venn diagram can be fourfold rotational symmetric.
As we can gather, Venn diagrams of order 4 or more don't generalize easily from the 2-Venn and 3-Venn diagrams. In fact, it isn't obvious whether Venn diagrams even exist at all for n > 4. The answer to this question was positively resolved by Venn himself, who described an inductive construction involving drawing curves around the borders of other curves:
By continually adding these folded curves, we can show that there are valid Venn diagrams for all n > 4. This settles the existence question, but these diagrams sure look messy. Moving the goalposts, how can we find a sufficiently "nice-looking" Venn diagram of high order?
A good place to look is symmetric Venn diagrams — n-Venn diagrams with n-fold rotational symmetry. We've mentioned that no 4-Venn diagram can be symmetric, which follows from Henderson's theorem:
Henderson's theorem: if a symmetric n-Venn diagram exists, then n must be prime.
That brings us to n = 5, which is prime. There are a handful of 5-Venn diagrams, but there is only one that is simple — that is, no three curves intersect at one point. Grünbaum found the only simple symmetric 5-Venn diagram in 1975, a pretty figure that can be rendered using five congruent ellipses:
(This figure is included in the web app, but we use peanut-shaped regions for visual evenness.)
Fast-forward to 1992, and Grünbaum publishes a paper containing this stunning figure — the first simple symmetric 7-Venn diagram:
As more simple symmetric 7-Venn diagrams were found, two additional special constraints were established to narrow the search:
- Monotone: The regions sort themselves into concentric layers by order. Formally, each region of order 1 < k < n is bordered by regions of order k + 1 and k - 1. (The above diagram is not monotone. The reason is left as a reader exercise.)
- Polar symmetric: The Venn diagram is topologically identical if turned inside out.
It was shown that there are exactly six "golden 7-Venn diagrams" that satisfy all three of these properties, named Adelaide, Victoria, Massey, Manawatu, Palmerston North, and Hamilton. If the polar symmetric condition is relaxed, there are an additional 16 "silver 7-Venn diagrams."
The n = 11 case was mysterious for a long time — some symmetric diagrams were found but none were simple. In 2012, Mamakani and Ruskey made a breakthrough discovery christened "Newroz," along with over 200,000 more. Unfortunately, these diagrams are less tenable as interactive Web apps, since most of the 2,047 regions are very small.
About the app
Pandiatonicism is a broad variety of musical practices that use the diatonic scale in ways "beyond" tonal harmony. A common pandiatonic technique is to treat the seven tones as roughly uniform, just as dodecaphony views the 12-tone chromatic scale. This idea is realized in pitch class set theory mod 7 (Santa, 2000), which adapts classical 12-tone set theory to pandiatonic music by thinking of diatonic chords as subsets of the scale.
My friend Nathan Turczan originally inspired this project by pointing out that the curves of a 7-fold Venn diagram can be mapped to a diatonic scale, making the Venn diagram into a playable visualization of set theory mod 7. I loved the idea, and it stuck with me for a good two years until I finally caved and built it. Just as we anticipated, the resulting interface is as awkward and strange as it is fascinating. It is definitely not meant to be a serious contender for a viable musical interface, but more of a net art project on its own.
I noticed early on that standard synthesizer tones on the diagram produced a discontinuity as the scale wraps back to the octave. For example, there are seven regions on a diagram representing diatonic seconds, but one of those has to be a seventh, breaking the symmetry. To address this, I decided to use Shepard tones, an auditory illusion where a note has ambiguous octavation. This closes the seam formed by the octave and makes the tones reflect the symmetry of the diagram.
Conclusions
For source code, see the Git repo.
Since the data generation is decoupled from the app, I would love to see what other things you can do with it. Some fun ideas:
- virtual MIDI keyboard as a VST plugin
- posters
- string or wire art (all Venn diagrams are representable as woven strings)
- physical instrument with buttons
- tattoo
- dartboard
- Twister mat
- 7-day weekly planner
- eccentric billionaire mansion floor plan
Acknowledgements
Thanks to Nathan Turczan for the inspiration, and Luke Nihlen for early feedback. Dedicated in memory of Eddie Gale.
References
- Venn, John. 1881. Symbolic Logic.
- Venn, John. 1880. "On the diagrammatic and mechanical representation of propositions and reasonings." Philosophical Magazine.
- Cao, Tao et al. 2010. "Symmetric Monotone Venn Diagrams with Seven Curves."
- Grünbaum, Branko. 1975. "Venn Diagrams and Independent Families of Sets."
- Grünbaum, Branko. 1992. "Venn Diagrams II." Geombinatorics. Issue II, Vol. 2. (The PDF is hard to find, but it's out there — let me know if you want a copy.)
- Grünbaum, Branko. 1999. "The search for symmetric Venn diagrams."
- Ruskey, Frank and Weston, Mark. 1997. "A Survey of Venn Diagrams."
- Santa, Matthew. 2000. "Analysing Post-Tonal Diatonic Music: A Modulo 7 Perspective."
- Mamakani, Khalegh and Ruskey, Frank. 2012. "A New Rose: The First Simple Symmetric 11-Venn Diagram."