Friday, March 17, 2017

Simplex Overlap Equivalnce

What is a polytope? For one thing, it has flat sides. For another, two polytopes can be equivalent without being the same. Anecdotally, all right triangles are in some sense equivalent. I would argue that the various kinds of simplex are limits of sequences of irregular simplices, and all irregular simplices are equivalent up to dimension. I can define polytope as a collection of maximal super-region spaces, together with their intersection super-region spaces. The intersection spaces are necessary because otherwise the relation between the maximals would not be captured. I can convert any finite union of intersections of real vector halfspaces to a polytope, and any sufficiently small tweak of the halfspaces produces the same polytope. Furthermore, my personal criterion for polytope equivalence is satisfied. Simplex overlaps are equivalent iff they are equivalent as polytopes. In other words, a simplex overlap is two maximal super-regions, related by their one intersection. A maximal super-region space is one of a super-region not contained by any other super-region covered by the polytope's regions embedded in the space. A super-region space is a space with all boundaries attached to an inside region. Much as section spaces uniquely identify extensions of a space, super-region spaces uniquely identify super-regions of a space. To find the section space, take the regions attached on one side of the extension boundary. To find the super-region space, take the boundaries attached to the super-region. See below for a proof that there is at most one inside region attached to all boundaries. Thus, a polytope is a collection of super-region spaces together with sidednesses of the super-region wrt attached boundaries. A super-region space is specified as a map from attached boundary to the super-region space of the facet of the boundary. For example, a three dimensional super-region space has a face per attached boundary, each face has a segment per significant boundary, and each segment has a two significant vertex boundaries. A facet is identified by the set of boundaries in the boundary map path that leads to it. Thus, the traditional definition of polytope as a graph of facets suffices for convex polytopes, and for concave polytopes, the definition above suffices.

Super Region Theorem

There is at most one inside region attached to all boundaries. Suppose two points, p and q, are in regions attached to all boundaries. Toss out boundaries without putting either p or q in outside regions, and without putting p and q the same region. Finally every boundary makes one or both of p and q outside or makes p and q the same. If there were a boundary, b, that separates only p from an outside region, then b is not attached to q, so all boundaries except the mutual boundary, c, separate both p and q from outside regions. Consider two outside regions, r and s, opposite p and q wrt boundary b. R and s must be opposite each other wrt c because r and s are the same after removing c. Thus every outside region is attached to c, so there are 6 regions total. This is not possible in any dimension, so there must be at most one region attached to all boundaries.

Monday, January 30, 2017

Politics

Well, politics and polytope both start with pol, right? Anyway, my poster for the upcoming March for Science (https://www.marchforscience.com/) is "Trump = Disease / Science = Cure". This is a 2^2, one-to-one, 2d-sub-simplex. It brings to mind an interesting way to think about affine spaces. They are collections of one-to-one mappings on equal-sized subsets of regions. In other words, each boundary is a one-to-one mapping between the regions attached to it on one side, and the regions attached in the other side. The universe has many more regions than just those attached to a particular boundary. Wrt Trump's ban on people from countries that Trump does not currently have business interests in, I believe it, in addition to other attacks on democracy, will reduce terorism against the US.  In general, anything undemocratic, such as gag orders, and appointment of corrupt oligarchs to cabinet positions, decreases the threat of terorism, because it is not authoritarianism that scares terrorists; democracy scares terrorists. But let's face it, corruption in the White House is a much bigger threat than terrorism. Much more people will die from global warming than from terrorism. Trump's priorities are messed up. So get out there and protest, and don't stop until the Koch brothers are bankrupt, Trump's name is removed from the towers, and former coal miners, loggers, truckers, factory workers, and other red-necks are installing solar panels, building hydroponics, riding bicycles, and restoring wetlands.

Thursday, December 1, 2016

Metaphysics

In this post I will exercise my brand of metaphysics. At least it is harmless, right? I am not very well read, but from what I understand from sound bites, I think I'm a Cartesian. The separation between mind and body is hogwash, but I do believe life has emergent properties including intelligence and discipline.

Just as science is less one-dimensional than religion, there may well be a discipline that is less two-dimensional than science. Since genius greater than Einstein is not likely, super-intelligence is required for three-dimensional discipline. Just as the internet does not make people less religious, we need not fear pa/matricide at the hands of super-intelligent progeny. On the contrary, we can look forward to a super-intelligent constitution that guarantees freedom of science, just as our atheist founding fa/mothers enshrined freedom of religion in the same amendment that protects the fourth estate. What wonders will super-intelligence conflate with freedom of science?

Just as Sagan condescended to explain science in one-dimensional religious terms like "numinous", super-intelligence will likely explain three-dimensional discoveries in two-dimensional mathematical terms. In fact, just as Mendel had a prominent one-dimensional section of his essentially two-dimensional existence, a super-intelligence might partake exuberantly of science.

In short, though religion has the two poles of spirit and matter, science has the two dimensions of theory and experiment. Our experience of this difference is that religion lacks the uncertainty of science.

With regard to politics which science fiction is supposed to be about, capitalism has failed as miserably as communism. Technology, the product of science, is necessarily a mere section of science. We can expect super-intelligence to produce many disciplines, each as de/constructive as science. Indeed, we may think of science as the plane constructed through two lines, art and religion, that share a point, life. Similarly, super-intelligence will be constructed as the space that contains two sciences that share a single technology. Perhaps the sciences are finite physics and not-even-wrong physics, and the technology is quantum-bio-computing. It is doubtful that super-intelligence will save us from nuclear weapons or global warming. After all, science did not save religion from denial or hypocrisy, nor art from post-modernism.

On an alien planet with two different kinds of life, a single religion connecting the two kinds of life might form even before intelligence. And on a planet with three kinds of life, science might be integral to evolution. On our planet, the leap from life to religion may have required as much intelligence as the leap from religion to science. Thus, super-intelligence is a misnomer; it should be called hyper-science.

A flaw in my argument is how different religion is from technology. This may be because religion is merely linear, whereas technology is affine. If religions, and by extension science, are linear, then life must be the origin. And as we know, life is not contained by technology. Also, there are things like sport that are neither religion nor product of science. Consider the ancient Brazilian sport of playing with a rubber ball. Note that the rubber ball was a product of technology, and sport contains life. Thus, sport is the one-dimensional discipline constructed through life and a product of a technology.

At this point, I hope it is clear that I consider religion a derangement. Rather than decrease my respect for religion, this increases my respect for derangement. Since I know of no other way to construct a plane except from lines, I am forced to consider religion a necessary stepping stone. And since our experience with fossil fuel demonstrates the folly of burning bridges, I must accede the utility of keeping religion around.

Sunday, November 20, 2016

Electronic Music

Here is an application intended to draw emergent properties from general purpose computers. This is in the tradition of the west coast modular synth, in the sense that it sacrifices ease of use for surprise.

The mouse position rotates a polytope. The roller button rotates the projection plane. The buttons switch between ends of the projection line. The polytope region volumes are noise volumes. The space boundaries are tone filters. The projection plane areas are durations. The projection plane boundaries are envelope filters. The projection line lengths are tempos. The projection line boundaries are rhythmic filters. Function keys (un)lock boundaries, (un)fill regions. Configuration file contains metric and boundary mappings. Branching history allows branching playback. Create new branches relative to other branches.

Just as the effect of multiple color filters is cumulative, so is the effect of multiple tone filters. Similarly, the effect of multiple envelope or rhythm "filters" should be cumulative. Thus, retained are the volume area length metrics, but lost are the filter orderings, except as deduced from adjacency.

The product of the three dimensional tone filters is the richest in the sense that they are repeating waveforms. The two dimensional filters, though geometrically more numerous, are less rich in the sense that they produce unrepeated envelopes, or potions of waveforms. Note that the specification of envelope filter is still a vector of harmonic amplitudes. The one dimensional filters are again geometrically more numerous, but less rich, thus. They not only produce unrepeated phrases, they interpret the negative portions of the waveform as silence, ignoring any negative information.

Another enhancement would be feedback. Thus, when a note plays, the region responsible for it could go on to the next fundamental tone. Generally, each projected region could go on to the next parameter. To avoid expressing my incompetence at harmony and melody, the parameters could be chosen by 1/f randomness or modulo one golden ratio increments.

Escape key halts recording and rotation, allowing mouse lift. Continuity is preserved across pauses by interpreting mouse and roller button motions as accelerations instead of motions. Discontinuities are allowed by enabling rotation and rate change separate from recording. Loops are recorded by interpolating from one branch to another and going to playback mode. Switching to record mode starts a new branch relative to the current in the sense that the rotation rates start from where the branch started.

Intervals Are Not Polytopes

One dimensional spaces are qualitatively different from spaces with 2 or more dimensions. My definition of "linear", as a space who's subspaces have the correct number of regions does not suffice to make one-dimensional spaces convertible to number lines. Here is a counter-example.

[[[0],[1,2,3]],[[1],[0,2,3]],[[2],[0,1,3]]]

Interpret this as a list of boundaries, each of which is a pair of half-spaces, and interpret the numbers as regions. As a two-dimensional space this is a simplex with empty vertex regions. As a one-dimensional space, each subspace has m+1 regions, where m is the number of boundaries. As a result of testing my Haskell code, I discovered this counter-example. I rewrote my isLinear and superSpace functions to behave differently for one-dimensional arguments.

Stay tuned for whether there are counter-examples of 2 or more dimension. If the proofs in previous posts are correct, then there will be none. Math is scientific in the sense that we can never know for certain that a proof is correct.

Sunday, November 6, 2016

Journey

I've restarted my Haskell program to take a more naive approach. Rather than go for optimization with lots of different representations that get saved to prevent recalculations, my new approach is to go for clarity. I found that the prior approach involved a lot of boring code. I was too tempted to automate the production of the boring code, and that became a nontrivial challenge. Anyway, my new code is here, and it is much more readable. Note that though the repository is still called sidegeo, the module directory is AffTopo. AffTopo stands for affine topology, which I believe more accurately describes the math in this blog than my original choice of sidedness geometry.

https://github.com/individkid/sidegeo/blob/master/src/AffTopo/Naive.hs

Perhaps more or less related to my coding efforts, I have taken a new perspective (pun intended) on the definition of polytope. In short, polytope (like creativity) means many things to many people in many contexts. Here are a couple of possible definitions.

If you project your polytope onto a picture plane, it produces a (simpler?) polytope in one fewer dimension. If you consider all possible projections of a polytope, the polytope might be well defined so long as it's projections are well defined. Since polytopes of zero dimension are well defined, this recursive definition might work. I say might, because the projections of a polytope have some relations not captured by simply collecting them into a set.

As another example of defining polytope, start with the usual graph of facets, and add convexity around each facet. My coding experience has increased my respect for directness. On the other hand, without curves we would not know that lines are straight.

Tuesday, March 29, 2016

Hello Haskell

I'm proud of my hello world because it demonstrates my understanding of lazy evaluation. Lazy evaluation appeals to me because it reminds me of cause and effect in its relative and quantum laziness. This, my first Haskell program, is the middle step of a program to produce code that implements conversions implicit in the name of the converter.