{"id":6452,"date":"2026-06-23T22:00:17","date_gmt":"2026-06-23T22:00:17","guid":{"rendered":"https:\/\/hoo.central12.com\/portal\/2026\/06\/23\/super-mario-is-mathier-than-you-think\/"},"modified":"2026-06-23T22:00:17","modified_gmt":"2026-06-23T22:00:17","slug":"super-mario-is-mathier-than-you-think","status":"publish","type":"post","link":"https:\/\/hoo.central12.com\/portal\/2026\/06\/23\/super-mario-is-mathier-than-you-think\/","title":{"rendered":"Super Mario is mathier than you think"},"content":{"rendered":"<p>Here\u2019s a problem you probably didn\u2019t solve in school: You\u2019re an ambitious young plumber from Brooklyn in a world inhabited by violent human-size mushrooms called Goombas. The love of your life has been kidnapped, so you embark on a quest to rescue her, venturing through stretches of pipe-filled and monster-\u00adridden terrain where your only means of protection are your powers of jumping and stomping.&nbsp;<\/p>\n<p>It\u2019s a journey so arduous that no computer\u2014real or hypothetical\u2014is powerful enough to figure out if you can reach her. And according to research published by the MIT Hardness Group, determining whether your quest is possible at all is at least as complicated as decoding the encryption behind financial transactions. But if this problem could talk, the first thing it would say is \u201cHello, it\u2019s a-me, Mario!\u201d<\/p>\n<h3 class=\"wp-block-heading\">For the love of the game<\/h3>\n<p>Though it does have a YouTube channel, the MIT Hardness Group isn\u2019t an official research group. Instead, it\u2019s a placeholder name for theoretical computer science projects\u2014including several related to Super Mario\u2014from Erik Demaine\u2019s class Algorithmic Lower Bounds: Fun with Hardness Proofs.<\/p>\n<p>Demaine, a professor of computer science, received a MacArthur fellowship (also known as a \u201cgenius\u201d grant) for his work in computational geometry on protein folding and origami. But he also researches complexity theory, which focuses on organizing problems into categories based on how much time and memory space it takes for computers to solve them.<\/p>\n<p>He happens to be an avid Super Mario fan as well. \u201cI grew up playing NES [Nintendo Entertainment System] games,\u201d Demaine says. \u201cI poured many hours into playing as a kid, so it\u2019s fun to come back to it these many years later and tie it into my research.\u201d<\/p>\n<div class=\"wp-block-image\">\n<figure class=\"wp-block-image alignright size-large\"><img decoding=\"async\" loading=\"lazy\" height=\"2000\" width=\"1473\" src=\"https:\/\/wp.technologyreview.com\/wp-content\/uploads\/2026\/06\/demaine.jpg?w=1473\" alt=\"Erik Demaine\" class=\"wp-image-1138369\" \/><figcaption class=\"wp-element-caption\">Erik Demaine researches complexity theory, which examines the amount of time and memory that computers need to solve problems. He\u2019s also an avid Super Mario fan.<\/figcaption><div class=\"image-credit\">DONNA COVENEY\/MIT<\/div>\n<\/figure>\n<\/div>\n<p>Super Mario takes place on a horizontally scrolling universe of platforms, pipes, and other obstacles. The object of the game is to rescue Princess Peach, the monarch of the Mushroom Kingdom, by racing through this terrain while sidestepping or dueling monsters like Goombas and deadly porcupines called Spinies. The game takes place over several levels; in the original version, each level ends with a flagpole that sends Mario on to the next part of his mission.<\/p>\n<p>Over the last 14 years, Demaine and his collaborators have proved many things about Super Mario, such as that it\u2019s even harder than the infamous traveling-salesman problem (which seeks the most efficient route between many different locations) or the problem of factoring large numbers. But the result that surprised Demaine the most came from four of his students: Hayashi Ani \u201921, MEng \u201923; Holden Hall \u201926; Ricardo Ruiz \u201924, MEng \u201925; and Naveen Venkat \u201923, MEng \u201924. For their final project in that 2023 class, the team used a combination of fan-made Super Mario level editors and a platform called Super Mario Maker to create levels so hard that they are undecidable. In other words, it\u2019s impossible to write a computer program that always correctly predicts whether, in those levels, Mario can reach the castle.&nbsp;<\/p>\n<p>Previously, Demaine had believed that Super Mario belonged in the PSPACE complexity class, which contains problems that are solvable but whose solutions become impractically complex as the problem gets bigger. At the time, he had even said that PSPACE was Mario\u2019s \u201cpermanent home.\u201d But the new findings pushed Super Mariointo RE-Complete, the class of undecidable problems. \u201cIt\u2019s the hardest complexity class we could imagine for these sorts of games,\u201d Demaine says.&nbsp;<\/p>\n<h3 class=\"wp-block-heading\">What computers can\u2019t solve<\/h3>\n<p>In 1936, Alan Turing, the father of modern computer science,created a puzzle now known as the Halting Problem to prove it\u2019s not possible to construct a computer that can solve <em>everything<\/em>.<\/p>\n<p>At the core of the Halting Problem lies a paradox, and it goes like this: Suppose you have a fancy computer, called the Oracle, that looks at any program and correctly determines whether a computer following it will ever come to a stop. For example, if it sees the program \u201cTake 1 and add 3,\u201d the Oracle will say the program halts, but if the program says \u201cTake 1 and add 1 to it until it becomes 0,\u201d the Oracle will say it runs forever.&nbsp;<\/p>\n<p>Now suppose you have another computer, the Contrarian, and you put the Oracle inside it. When you give the Contrarian a program, it passes it to the Oracle and then does the opposite of whatever the Oracle says the program will do. So if the Oracle assesses the Contrarian\u2019s program and thinks it will halt, the Contrarian will run forever. If the Oracle thinks the program will run forever, the Contrarian will halt. Either way, the Oracle\u2019s assessment is wrong, so the classification problem is undecidable.<\/p>\n<p>The proofs that Super Mario is undecidable rely on a more complex version of this idea. The team\u2019s argument breaks down the video game using a technique called a reduction, in which mathematicians convert a problem they\u2019re trying to solve into a problem they already know something about. \u201cThe classic example I remember in a math class is: How do you make a pot of boiling water?\u201d Demaine recalls. \u201cWell, I fill up the pot with water from the sink, and then I put it on the stove, and then it eventually boils. Okay, now I\u2019ll give you a pot of water that\u2019s already filled. How do you make a pot of boiling water? Well, I empty out the pot first and reduce to the previous problem.\u201d<\/p>\n<p>In their particular world of platforms and porcupines, the team broke down their Super Mariolevel into localized parts of Mario\u2019s path called gadgets, which they could use to prove that the level was undecidable.<\/p>\n<p>\u201cA gadget in our sense is anything in your environment that decides whether or not you can go through one pattern [within a level],\u201d explains Jayson Lynch \u201912, MEng \u201915, PhD \u201920, a CSAIL research scientist and head of algorithms at MIT FutureTech. For example, in one gadget Mario might need to jump on a platform to avoid a monster as he makes his way across the screen. As a PhD student mentored by Demaine, Lynch spearheaded the formalization of gadget theory and worked on some of the earlier Super Mario papers but did not study the game\u2019s undecidability.<\/p>\n<p>One of Lynch\u2019s favorite Super Mario gadgets is the door gadget, which works like a door that Mario can open, traverse, and close. The door in question is always either open (when the Spiny is on the right) or closed (when the Spiny is on the left). So if a Spiny is pacing back and forth on the left of the door, Mario has to navigate beneath the moving Spiny and jump up to hit a brick block just as the Spiny reaches it. This bumps the Spiny to the right side, which opens the door and allows Mario to travel across the traverse path and get to the spot where he can close the door. Once there, he must time another jump beneath the pacing Spiny to send it back to the left side of the gadget, closing the door behind him.\u00a0<\/p>\n<\/p>\n<figure class=\"wp-block-image size-large is-resized\"><img decoding=\"async\" loading=\"lazy\" width=\"514\" height=\"450\" src=\"https:\/\/wp.technologyreview.com\/wp-content\/uploads\/2026\/06\/260623_Mario_GIF1.gif?w=514\" alt=\"\" class=\"wp-image-1139552\" style=\"width:840px;height:auto\" \/><figcaption class=\"wp-element-caption\">Mario opens the door by bumping the Spiny from the left to the right.<\/figcaption><\/figure>\n<figure class=\"wp-block-image size-large is-resized\"><img decoding=\"async\" loading=\"lazy\" width=\"514\" height=\"450\" src=\"https:\/\/wp.technologyreview.com\/wp-content\/uploads\/2026\/06\/260623_Mario_GIF2.gif?w=514\" alt=\"\" class=\"wp-image-1139553\" style=\"width:840px;height:auto\" \/><figcaption class=\"wp-element-caption\">With the Spiny out of the way, Mario can go through the open door and follow the traverse path to the other side. Once there, he\u2019ll be able to bump the Spiny back to the left and close the door.<\/figcaption><\/figure>\n<p>Since a door is always open or closed, its state can be used to simulate a true or false statement, with open being true and closed being false. Earlier Super Mario papers had strung together multiple door gadgets to simulate a true-or-false problem that complexity researchers already knew to be hard. But to show undecidability, the team used Super Mario level editors to put together another device, called a counter gadget, that tallies the game\u2019s monsters and obstacles.&nbsp;<\/p>\n<p>If you can build a machine with even just a few of those counters, Demaine says, you can simulate an arbitrary computer\u2014one that could essentially do anything a non-quantum computer could do, given enough time and memory. And with no limit on the number of monsters, such a machine could have infinitely expandable memory, even though the level size stays the same, which he calls \u201cpretty wild.\u201d&nbsp;In other words, any theoretical computer can be built in a&nbsp;Super Mario&nbsp;level. \u201cYou could use it to solve anything you can use a computer to do,\u201d says Demaine. \u201cYou could have it do your taxes, or compile your code, or run an LLM, or optimize your class schedule.\u201d You might even build Super Mario levels that could excel at sudoku, construct optimal chess strategies, or prove any provable mathematical theorem.<\/p>\n<p>The MIT mathematician Marvin Minsky invented counter machines in 1961 to figure out how simple a computer could be while still being \u201cuniversal\u201d (as powerful as any other computer, given enough time). These theoretical computers each store two numbers and can change them by adding 1, subtracting 1, or doing something special if a number hits a set value.&nbsp;<\/p>\n<p>In the counter gadgets the students designed for Super Mario, the numbers reflect how many Goombas the levels contain. A number increases when a pipe spits out a Goomba and decreases when Mario stomps on one. Mario dies if he collides with a Goomba without stomping on it, so he can continue along the path only when the counter is at 0.&nbsp;<\/p>\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\">\n<div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" width=\"500\" height=\"281\" src=\"https:\/\/www.youtube.com\/embed\/thYo6RiiZkk?feature=oembed\" frameborder=\"0\" allowfullscreen><\/iframe>\n<\/div><figcaption class=\"wp-element-caption\">The MIT Hardness group designed this counter gadget in <em>Super Mario Maker 1<\/em> to prove undecidability.<\/figcaption><\/figure>\n<p>Minsky had already proved that counter machines are undecidable because they can run undecidable problems. Since the researchers proved that counter gadgets simulate counter machines, then any level of Super Mario containing a counter gadget will also be unsolvable. \u201cIn the future, if someone wants to show a game is undecidable,\u201d explains Holden Hall, one of the students behind the project, \u201cthey just have to make one of these gadgets.\u201d<\/p>\n<p>The existence of undecidable problems like the Halting Problem implies that it\u2019s possible to construct an undecidable Super Mario level. Just as the singular undecidable program for the Halting Problem meant thatit\u2019s impossible to figure out if a computer program will run forever, the team\u2019s undecidable level means that it is impossible to determine whether an arbitrary Mario level can be beaten.<\/p>\n<h3 class=\"wp-block-heading\">Putting the \u201csuper\u201d in Super Mario<\/h3>\n<p>More than two years after Demaine\u2019s class on hardness proofs, some of his students continue to meet weekly to discuss their Super Marioresearch.<\/p>\n<p>\u201cFrom the point of view of complexity theory, studying video games is interesting mostly for didactical reasons,\u201d Fabrizio Grandoni, a research professor at the University of Applied Sciences and Arts of Southern Switzerland, told MIT News in 2016. \u201cIt\u2019s a simple, natural way to attract students to study this specific topic.\u201d<\/p>\n<p>Hall, who had very little exposure to the ideas of complexity theory before taking Demaine\u2019s class, is a case in point, noting: \u201cI took the class because a bunch of people I knew were taking it. But since I took it, I really enjoyed the class, and so I\u2019ve taken a lot more classes in that realm.\u201d<\/p>\n<p>The applications of the MIT Hardness Group\u2019s work go way beyond stomping on mushrooms and collecting coins. For example, researchers at the University of Texas Rio Grande Valley (including Timothy Gomez, now a PhD student at MIT) have used the gadget theory developed for analyzing games like Super Marioto study the complexity of problems relating to planning robotic motion and modeling chemical reaction networks.<\/p>\n<p>\u201c[Gadget theory] can be used in the negative way to say \u2018Oh, well, we should stop searching for algorithms because we know this problem is too hard\u2019\u2014or it can be used in this positive way, because usually, to prove something hard, you\u2019re showing that you can build a computer of a certain type,\u201d Demaine says.&nbsp;<\/p>\n<p>Though there\u2019s no way of knowing what mark Super Mariowill leave on the future of math and computer science, one thing\u2019s for sure: No matter how many princesses he does or doesn\u2019t save, the legacy of this little plumber is set to extend far beyond video screens.&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Here\u2019s a problem you probably didn\u2019t solve in school: You\u2019re an ambitious young plumber from Brooklyn in a world inhabited by violent human-size mushrooms called Goombas. The love of your life has been kidnapped, so you embark on a quest to rescue her, venturing through stretches of pipe-filled and monster-\u00adridden [&hellip;]<\/p>\n","protected":false},"author":0,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[68],"tags":[67],"class_list":["post-6452","post","type-post","status-publish","format-standard","hentry","category-mit-feed","tag-mit-tech"],"_links":{"self":[{"href":"https:\/\/hoo.central12.com\/portal\/wp-json\/wp\/v2\/posts\/6452","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hoo.central12.com\/portal\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hoo.central12.com\/portal\/wp-json\/wp\/v2\/types\/post"}],"replies":[{"embeddable":true,"href":"https:\/\/hoo.central12.com\/portal\/wp-json\/wp\/v2\/comments?post=6452"}],"version-history":[{"count":0,"href":"https:\/\/hoo.central12.com\/portal\/wp-json\/wp\/v2\/posts\/6452\/revisions"}],"wp:attachment":[{"href":"https:\/\/hoo.central12.com\/portal\/wp-json\/wp\/v2\/media?parent=6452"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hoo.central12.com\/portal\/wp-json\/wp\/v2\/categories?post=6452"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hoo.central12.com\/portal\/wp-json\/wp\/v2\/tags?post=6452"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}