Blygger Studio 0.62.0 can write mathematics. Put TeX between dollar signs and it publishes as MathML, which every current browser draws: no script, no stylesheet and no font travels with the page.
from Venkatesh Rao's Blyg ↗ · excerpt of v2
UPDATE: now blyg studio 0.62.0 and we're cooking.
Oooh this might be fun for sharing out problems of a new ai native sort in the spirit of project euler? Or fermi gym? I will cogitate.
First, I would have thought the test environment would be less than or equal to zero for this function, which is mathematically equivalent though more on brand :P
Second, I cannot resist an opportunity to share about the Cantor Set.
Cantor Set: the infinite void, a Grand Canyon's worth of majesty, where out of nothing emerges everything
Claim. The Cantor set has Lebesgue measure , and yet contains infinitely many points.
Construction. Let . Given , a union of disjoint closed intervals, form by deleting the open middle third of each interval. Put .
Measure zero. By induction, is a union of disjoint closed intervals, each of length . Indeed, is one interval of length , and trisecting an interval of length leaves two intervals of length . Hence
Since for every , monotonicity of measure gives
Because as , we conclude that . Equivalently, the sets decrease and , so continuity from above gives .
Infinitely many points. Call a point an endpoint at stage if it is an endpoint of one of the intervals making up .
Lemma. If is an endpoint at stage , then is an endpoint at stage , and so for all .
Proof. Let be an endpoint of the interval of . When is trisected, the remaining pieces are
The point is the left endpoint of the first piece and is the right endpoint of the second, so whichever of them is, it is still an endpoint at stage . Induction on finishes the argument.
Now consider the points for . The point is the right endpoint of the interval , which belongs to . This holds because is the left third of , so it survives each stage. By the lemma, for all . For we have
Therefore for every , that is, . The numbers are pairwise distinct, so contains infinitely many points.
Remark (far more than infinitely many). For each sequence with , define
Every such sum lies in , because its ternary digits are all or , and so it never falls in a removed middle third. Distinct sequences give distinct sums: if two sequences first differ at index , then the sums differ by at least
So is an injection from , a set of cardinality , into . The Cantor set is therefore uncountable, even though it has measure zero.
v6
“Added an introductory section with a note about absolute value notation and a poetic subtitle for the Cantor Set section, then reorganized the mathematical content under that new heading.”
PAtwater