The basics
This page is a quick introduction to Trilangle fundamentals needed to understand the rest of the grammar and make a simple sentence.
What do triangles do?
Triangles assert existence, which can be qualified by predicates. Red triangles ("Reds" for short) assert the existence of objects and entities.
The red triangle above asserts the existence of an object-type variable x, and applies the predicate cat to x. You can think of the variable x as being like a subject in a sentence or clause, and the predicate in the triangle is, of course, the predicate. That means a single triangle can be an entire sentence on its own!
Note that the choice of variable name (e.g. x, y, etc.) is arbitrary, and two different triangles will assert the existence of two different variables.
Blue triangles ("Blues" for short) assert the existence of events.
Polarity
In addition to existing, something can also not exist (negative polarity), or maybe exist (unknown polarity). We represent this by drawing the triangle with dashed lines for unknown polarity, and dotted lines for negative.
Donating and recieving variables
Triangles can donate their variable to adjacent triangles. A triangle that accepts the donated variable uses as an argument to its predicate.
Notice how the Red, when attached to the bottom of the Blue, donates its own variable x to the Blue. The Blue now uses x as an argument to sleep and becomes ∃e sleep(e, x) ("x is sleeping") instead of just ∃e sleep(e) ("sleep is happening.")
Different color triangles donate and receive variables differently. The Red donates its variable on all sides, but never accepts donations. Blues donate only on its left side, but accept donations from the bottom and right sides.
In the following figure, an outward arrow indicates that the triangle donates its variable from that side. An inward arrow indicates that the triangle accepts donations from that side.
Since orientation matters for Blues, a dot is used to mark the "top." If you rotate the Blue, the dot will move along with it, as will the edges that donate variables or accept donations.
With correct placement, Blues can use variables from Reds because Reds donate variables while Blues can accept them.
Two Reds will never use each others' variables even if they are adjacent, because they always give but never receive.