Skip to content
PodSubs
ShowsPeopleGuestsJobsNewsEvents
More
BlogPodCred
Menu
ShowsPeopleGuestsJobsNewsEventsBlogPodCredNetworksSign in
Join nowSign in
  • Shows
  • People
  • Jobs
  • News
  • More
    • Guests
    • Events
    • Blog
    • PodCred
    • Networks
    Join nowSign in

Coordinated with Fredrik

Coordinated with Fredrik artwork

Subject To

Sep 2, 202642 minAudio
ShareXLinkedInFacebookWhatsAppEmail

Forty-seven minutes on the two words that follow every objective function ever written, and on what the machines have and have not learned to write. Two voices this time: the narrator is Lily, the synthetic voice that carried Single Player and The Third Fraction; my own cloned voice comes in five short passages about the loop in my automation rack, a submarine, a battery, and a number I wrote wrong. The question I get most often, from people who run our optimizer in their own houses, is the same question every week. Why is it doing this, now? The battery is charging when it feels like it should be selling. Or it sits still at eleven at night at a price that looks like a gift. The feeling in your body, that you would charge it now, is not the same thing as the sum. Most weeks the sum is right and the feeling is wrong. I have not stopped getting the question, and I have not stopped having the feeling. This episode is about why those two things come apart, and it starts with the grammar every optimization problem in the world shares. First a line that says what you want less of: the cost, the fuel, the waiting. Then two words. Then a list of things that must hold no matter what: the fuse must not blow, the car must be full by seven, supply must equal demand. The first line is the wish. The list is the world. A solver’s whole job is to find the best version of the wish that breaks nothing on the list. And the solver takes you literally. That is its whole power and its whole danger, and they are the same property. The price is a proof Every day at noon, Central European time, the bids of twenty-seven countries close, hundreds of thousands of orders from sixteen exchanges, and one algorithm has twelve minutes to clear tomorrow’s price for every quarter hour of every bidding zone. Nobody in that room sets a price. The machine looks for the arrangement of buyers and sellers that leaves the continent best off, and once the all-or-nothing orders are settled the price falls out of the answer as a by-product. By a quarter to one it is on every trading screen. That by-product has a history. In 1938 a plywood trust in Leningrad asked a twenty-six-year-old mathematician, not an economist, how to schedule eight lathes across five kinds of veneer. Leonid Kantorovich found that the question had a shape, and that the method for solving it ran on a set of numbers, one per scarce thing, each saying what one more hour of that lathe would be worth to the whole order. He read them and saw what they were. They were prices, though no person had set them. He knew the word was dangerous where he lived, so he called them resolving multipliers. The booklet came out in 1939. The economics he built on it did not: the planning ministry told him in 1942 to do his job and let them do theirs, a colleague warned him that the man who talks about optimum is “the fascist Pareto”, and the book he wrote during the war waited seventeen years in a drawer, then appeared with a preface calling its conclusions inconsistent and incorrect. By then he had renamed the prices “objectively determined valuations”. Three names for the same numbers, each chosen for political safety. Across the war Tjalling Koopmans found the same numbers routing Allied merchant ships. They shared the 1975 Nobel prize. George Dantzig, who built the working algorithm for the US Air Force in the summer of 1947, was not on the citation; Koopmans gave a third of his prize money to the institute where Dantzig had led the work, in Dantzig’s name. What a solver actually does is easier to picture than to define. Set a cut stone on a table and tilt the table: the highest point is always a corner, never the middle of a face, because a straight wish keeps improving until a limit stops it, and where two limits meet is a corner. Dantzig’s method walks the corners uphill and stops when none is higher. And when it stops, it holds a proof as well as a corner. Searching finds a good answer. Optimizing also proves there is no better one. Nothing better exists, inside the set you declared. Whole numbers break the stone. A power station is on or off, so the solver splits the world in two, bounds each half, and throws away any half that cannot beat the best complete plan it already holds, without ever looking inside it. The problem that decides which stations run tomorrow is solved this way every day in the big American markets, and it is not solved to the end. It stops at a tolerance. Even the proof has a limit written into it. Then the other half of the proof: every limit carries a shadow price, what one more unit of the limited thing would be worth. For a grid the limit is a single line, supply equals demand, here, now, and its shadow price is the electricity price. In the American markets that is literal, per node, once the on-or-off decisions are fixed. In Europe it is one price per zone per quarter hour, read off the proof once the block orders are settled. Nobody chose the price on the screen. It fell out of the constraint. Which is the true ending of the Leningrad story. The planners did come round to the method, decades late, and it did not save the plan, because the solver had been handed an objective, tonnes and gross output and a number from above, and it priced that objective faithfully. What you are allowed to forget Richard Bellman’s idea, at RAND around 1950, fits in one sentence: whatever you did first, the rest of an optimal plan must itself be an optimal plan from wherever you now stand. So you can solve a chain of decisions backwards. But to do that you have to say what “wherever you now stand” means. You have to name the state, and a state is a decision about what you are allowed to forget. At my house, at four in the afternoon, the plan needs one thing: how full the battery is. How it got there, the cheap hour at three in the morning, the cloud at eleven, the car that came home early, can all be thrown away. The battery level is the whole of the state. And here is the turn: the state forgets how the battery got to forty percent. The cells do not. Every cycle leaves a mark in the chemistry, and the warranty keeps a count of the cycles the plan has already forgotten. The plan covers two days in quarter hours, 192 steps, with 401 possible power settings at each step, a number with hundreds of digits if you tried every path. Bellman’s curse of dimensionality. The state lifts it: keep every level instead of every path, and merge every path that reaches the same level. What comes out is not a plan but a table, what it is worth to be standing at each battery level at each quarter hour. The table has to start somewhere: at the far end of the two days, somebody has to write down what a kilowatt-hour in the battery is worth. That number is the seed the whole calculation grows from. Hold on to it. I have been inside a hull where the whole world arrived as sound. A submarine does not look. It listens, and nothing goes out. Even its own position is a guess, counted forward from the last fix by heading and speed. I worked in the engine room, not at the hydrophones, but I knew what the boat was: a machine for keeping a guess alive without ever giving itself away. The mathematics has a name for a state that is a belief, and one rule every plan has to obey: you may use only what you knew when you chose. At my house the rule is physical. Two days are planned, and fifteen minutes are real. The right decision that looks wrong The planner is told to weigh the worst tenth of outcomes, not the average. It plans on less sun than the forecast promises and pays a little on most days to be ready for the day that hurts. On most days that day does not come, and by morning you can add up what the caution cost. The feeling says it was wrong. What you see afterwards is what you had, plus information that did not exist yet. Psychology has measured how hard this is to hold on to. In 1975 Baruch Fischhoff showed that people told how a story ended rated that ending as hav… This is a public episode. If you would like to discuss this with other subscribers or get access to bonus episodes, visit frahlg.substack.com

Audio and video play straight from the show's own hosting. PodSubs stores and serves no media.

Transcript

From the show. Tap a time to play from there.

[music]

SPEAKER_01Every day at noon, Central European time, a door closes. Behind it are the bids of 27 countries, hundreds of thousands of orders to buy electricity tomorrow and to sell it from 16 exchanges for every quarter of an hour of the coming day. One algorithm takes all of it. It has 12 minutes and it is allowed to stop short of perfect. Nobody in that room sets a price.

SPEAKER_01The machine looks for the arrangement of buyers and sellers that leaves the whole continent best off. And once the awkward orders are settled, the ones that say all or nothing, the price for each zone and each quarter hour falls out of the answer as a byproduct. By a quarter to one, it is on every trading screen from Lisbon to Helsinki. A few hours later, at my house, a loop reads one of those prices. I described it to a machine this spring, and the machine wrote it.

SPEAKER_00It runs on a small computer in my automation rack. The battery sits in the technical room out in the carport and there is no cloud anywhere in the path. Every 15 minutes it writes a plan for the next two days, in quarter hours, when to charge the battery, when to sell from it, when to charge the car, when to run the heat pump. Then it throws the plan away and writes a new one because the sun, the house and the prices have all moved. Only the first 15 minutes of any plan ever reached the hardware.

SPEAKER_00And the question I get most from the people who run it in their own houses, on this loop, or on the one my company ships, is the same question every week. Why is it doing this now? The battery is charging when it feels like it should be selling, or it sits still at 11 at night at the price that looks like a gift. And the feeling in your body that you would charge it now is not the same thing as the sum. Most weeks the answer is that the sum is right and the feeling is wrong.

SPEAKER_00I have not stopped getting the question.

SPEAKER_01The voice you just heard is Fredrik's and it is a clone. The continent at noon and the carport at night run on the same grammar. Minimize something, then two words, subject to. Every optimization problem in the world is written that way. Whether it is a continent or a kitchen. First a line that says what you want less of or more of. The cost, the fuel, the waiting.

SPEAKER_01Then the two words. Then a list of things that must hold no matter what. The fuse must not blow. The car must be full by seven. Supply must equal demand. The first line is the wish. Subject to

SPEAKER_01Leningrad, 1938. The laboratory of a plywood trust has a question for a professor at the university, a mathematician of 26, not an economist. They have eight lathes and five kinds of veneer and an order that says how much of each kind. How should the lathes be scheduled to get the most out of them? Leonid Kantorowicz finds that the question has a shape. Every schedule can be scored.

SPEAKER_01Every schedule has limits it cannot cross. And there is a way to walk from a poor schedule to a better one without trying them all. The way runs on a set of numbers, one for each scarce thing. Each hour of each lathe, each grade of wood. Ask, for Lathe 3, how much more plywood the Trust could deliver if that lathe had one more hour. And the answer is a number. Do the same for every lathe and every grade of wood and you have a list

SPEAKER_01of what each scarce thing is worth to the whole order. He calls the numbers resolving multipliers. Then he reads them and sees what they are. They are prices, though no person set them. The arithmetic produced them on its own from the objective and the limits while it was finding the best schedule. He knows the word is dangerous where he lives. The booklet comes out in 1939 from the university press and the mathematics

SPEAKER_01in it is allowed to exist. The economics he builds on it is not. In 1942, he takes the wider idea to the planning ministry, prices for the whole plan, and is told to do his job and let them do theirs. An economist warns him in a meeting that he keeps saying optimum and that the man who talks about optimum is the fascist Pareto. Colleagues tell him to put the work away.

SPEAKER_01The book he writes during the war waits 17 years in a draw. When it comes out in 1959, it carries a preface by an academician who praises the method and calls its conclusions inconsistent and incorrect. By then, he has renamed the prices. He calls them objectively determined valuations, which nobody can argue with because it has the word objectively in it.

SPEAKER_01Three names for the same numbers, and each one was chosen for political safety. Now the mirror. On the other side of the war, a Dutch economist called Koopmans is working on the routing of allied merchant ships and finds the same numbers falling out of the same kind of problem. What one more ship at one more port is worth? One man set out to plan a factory, and then a country. One to help win a war, and the same object turned up for both.

SPEAKER_01In 1975, they share the Nobel Prize in Economics for the theory of the best use of resources. The man who built the working algorithm, George Danzig, an American mathematician who wrote it for the Air Force in the summer of 1947, is not on the citation. Koopmans gave a third of his prize money to the institute where Danzig had led the work, in Danzig's name. What does a solver actually do?

SPEAKER_01Take a cut stone, a gem with flat faces, and set it on a table. Tilt the table. Whichever way you tilt it, the highest point of the stone is a corner, not the middle of a face. Sometimes a whole edge ties, but a corner is among the winners every time. The stone is the set of all the schedules that break no rule. And the tilt is the wish. So much profit per sheet of plywood in one straight direction.

SPEAKER_01A straight wish keeps improving for as long as you can keep moving. And the only thing that ever stops you is a limit. Where two limits meet is a corner. So the best answer is pressed up against the limits, never floating in the middle. Danzig's method walks the corners. It stands on one, looks at the edges leading away, takes one that goes uphill, and stops when none does. And then the part that gets left out of every explanation.

SPEAKER_01When it stops, it holds a proof as well as a corner. It can show there is no higher corner anywhere on the stone without having visited them. Searching finds a good answer. Optimising also proves there is no better one. And that proof is the whole difference between the two words. Nothing better exists inside the set you declared. Whole numbers break the stone.

SPEAKER_01A power station is on or off. There is no 30% of a power station. The moment a choice is a yes or a no, the stone becomes a cloud of separate points and there are no edges left to walk. So the solver does something else. It splits the world in two. This station on, this station off, Finds the best possible score for each half without settling the rest and throws away any half that cannot beat

SPEAKER_01the best complete answer it has already found. It throws away half the world without looking inside it and it can prove it was allowed to. Say the big station is off. Let everything else be as fractional as it likes and the very best that half of the world can do still costs a thousand. You already hold a complete legal plan that costs 900. Then every plan with the big station off can go in the bin unread because none

SPEAKER_01of them can beat 900. The problem that decides which power stations run tomorrow is solved this way every day in the big American markets. Every station every hour on or off Then how hard each one runs, subject to demand, reserves, how fast each machine can change, how long each must stay on once started, and what each wire can carry. One operator's daily version,

SPEAKER_01by its own engineer's count, carries more than 100,000 of those yes or no decisions and has to be solved inside 20 minutes. And it is not solved to the end. It stops at a tolerance. The solver is told to stop as soon as it can prove that nothing more than, say, one part in a thousand better exists. The proof is still a proof. It just has a small number written into it. The sentence a grid gets each morning is not nothing better exists.

SPEAKER_01It is nothing more than a sliver better exists and we ran out of time to look. Even the proof has a limit written into it. Now the other half of the proof. Every limit in the problem carries a shadow price. What one more unit of the limited thing would be worth to the objective? Kantorovich's multipliers, under their third name. For a grid, the limit that matters most is a single line.

SPEAKER_01Supply equals demand. Here, now. Ask the grid's problem what it would cost to serve one more kilowatt hour at this point, at this moment, given everything already running. The cheapest way to find that extra unit is a number in krona, and that number is the shadow price of the balance line. In the American markets, the price at each point on the network is literally that line's shadow price.

SPEAKER_01Computed once the on or off decisions are fixed. In the noon room, it is one price per zone per quarter hour. Read off the proof once the all or nothing orders are settled. Nobody chose the price on the screen. It is what the balance constraint would pay for one more kilowatt hour. Markets and planners have argued for a century over who should set prices. And the arithmetic has a quieter answer.

SPEAKER_01They fall out of the constraint. Which brings the story back to Leningrad, and to the ending that is true. The planners did come round to the method, in pieces, decades late. It did not save the plan. The solver was handed an objective, tons of steel and gross output, and the fulfilment of a number handed down from above. And it priced that objective faithfully. The prices a proof gives you are only as good as the objective it was handed.

SPEAKER_01Minimize the cost. Subject to. Supply equals demand. Here. Now. Twelve years after the Plywood Trust in 1950, at the Rand Corporation in California, Richard Bellman looks at a different kind of problem. Not one decision with many parts, a chain of decisions one after another where each one changes the ground the next one stands on.

SPEAKER_01He later said he chose the name dynamic programming to hide from a defense secretary who hated the word research. The dates do not quite fit and the name stuck anyway. His idea fits in one sentence. Whatever you did first, the rest of an optimal plan must itself be an optimal plan from wherever you now stand. Which means you can solve the chain backwards. And it means something stranger, which is the whole of this act.

SPEAKER_01To solve it backwards, you have to say what, wherever you now stand, means. Think of the drive home. To choose the next turn you need to know where you are. And nothing about the road you took to get there. You have to name the state. A state is a decision about what you are allowed to forget. At his house at four in the afternoon, the plan needs one thing. How full the battery is.

SPEAKER_0140%. How it got to 40%. The cheap hour at three in the morning. The cloud at 11. The car that came home early. All of it can be thrown away because none of it changes what the best next move is. The battery level is the whole of the state. And here is the turn. The state forgets how the battery got to 40%. The cells do not.

SPEAKER_01Every cycle leaves a mark in the chemistry. The warranty keeps a count of the cycles the plan has already forgotten. And neither of them cares that the plan has moved on. Choosing a state is choosing what to forget. And the cells do not get a vote. Why go to the trouble? Because of the size of the thing. His plan covers two days in quarter hours. 192 steps.

SPEAKER_01And at each step, the battery can be set to any of 401 levels of power. Try every combination and you are counting a number with hundreds of digits. Bellman had a phrase for this in 1957, the curse of dimensionality. And it is the curse the state lifts. Instead of every path, you keep every state. At each quarter hour, there are only as many battery levels as you choose to allow.

SPEAKER_01And every path that arrives at the same level Is the same path from now on. Merge them. Set that beside the branching solver from the last act and you have the two great tricks of the field, pointed in opposite directions. One splits the world and throws halves away. The other merges every road that reaches the same place. And what comes out of the backwards walk is not a plan.

SPEAKER_01It is a table for every quarter hour for every battery level what it is worth to be standing there. Suppose someone hands you for six in the evening what it is worth to stand at each battery level. Then a quarter to six is easy. Try each setting. Add what it costs in that quarter hour to what the level it leaves you at is worth at six and keep the cheapest. Now you know what every level is worth at a quarter to six.

SPEAKER_01Step back to half past five and do it again. All the way to now. The plan is read off the table. From where you are, take the step whose cost now, plus the value of where it lands, is smallest. But a backwards walk has to start somewhere. And this is where the trouble lives. At the far end of the two days, somebody has to write down what each battery level is worth.

SPEAKER_01Not from the table because the table is not built yet. From an assumption. What is a kilowatt hour sitting in the battery worth at midnight, two days from now? Whatever you write there, every value at every earlier hour is computed from it. It is the seed the whole calculation grows from Hold on to that seed. It comes back.

SPEAKER_00I have been inside a hull where the whole world arrived as sound. A submarine does not look. It listens, and nothing goes out. You lie still, as quiet as the machinery lets you, and the picture of the world outside is a guess, drawn from what the hydrophones hear and redrawn every minute. Even your own position is a guess. There is no window. You count from the last time you knew where you were. This heading, this speed, this long, so we are here.

SPEAKER_00Dead reckoning. The boat carries a belief about the sea and updates it with every sound it hears and every turn of the screw. I was not the one listening. I worked in the engine room. What I knew was that the boat was a machine for keeping a guess alive without ever giving itself away.

SPEAKER_01The mathematics has a name for a state that is itself a belief. A probability over where the world is, moved forward by your own actions and corrected by what you hear. Instead of one dot on the chart, a smudge. Here with high confidence, there with less. Every sound shrinks the smudge and every silent minute spreads it. The boat carries one thing forward through the dark, its best guess of where it is.

SPEAKER_01And that guess is its state. And there is one rule every plan has to obey, whether the state is a battery level or a bearing in the dark. You may use only what you knew when you chose, not what you learned an hour later. Not Tomorrow's Price, which is published at a quarter to one and is not a thing you can know at midnight. Before that, the planner in his rack knows perhaps 12 hours of real prices and fills the rest

SPEAKER_01of its two days with a guess. A replay that reads Tomorrow's Prices instead is a confession and this show has spent an hour on it before. At his house, the rule is physical. Two days are planned and 15 minutes are real. Everything past the first quarter hour exists to put a value on the one decision that reaches the wire. And by the time the second quarter hour arrives, the plan that contained it has been thrown away.

SPEAKER_01Minimize the cost. Subject to. You may use only what you knew when you chose. Why is it doing this now? The question from the cold open. The battery is charging when the feeling says sell or sitting still at 11 at night at a price that looks like a gift. Part of the answer is a setting. The planner in his rack is told to weigh the worst tenth of outcomes, not the average.

SPEAKER_01Instead of planning for the ordinary day, it lines up the days that could happen, takes the worst one in 10, And make sure the plan survives that one at a bearable cost. Which tenth, and how much weight to give it, are two numbers in his configuration, and both of them are choices. It plans on less sun than the forecast promises, and it pays a little on most days to be ready for the day that hurts. On most days that day does not come, and by morning you can add up what the caution cost.

SPEAKER_01The feeling says it was wrong. Here is a cleaner version of the same thing, with one number in it. You pay ten to inspect a machine. The machine is fine. The ten looks wasted, precisely because it worked. It bought you the knowledge that nothing was wrong. And on the page, the knowledge that nothing was wrong looks like nothing at all. What you see afterwards is what you had, plus information that did not exist yet.

SPEAKER_01The critic who says the reserve should have been sold is claiming to have had the next day's weather in hand the night before. Nobody had it. It did not exist. Psychology has measured how hard this is to hold on to. In 1975, Baruch Fischhoff gave people a short account of a 19th century war between the British and the Gurkhas and asked how likely each ending had been.

SPEAKER_01People told nothing rated a British victory at about a third. People told the British had won rated the same victory from the same account at well over half. He ran the comparison 24 ways with different endings, and the ending people had been told rose every one of the 24 times. Asked to answer as if they had not known, they could not undo it. In 1988, Jonathan Barron and John Hershey described the same surgical decision to two groups

SPEAKER_01with one difference. In one telling, the patient lived, In the other, the patient died. Same decision, same odds, same doctor, and the decision was graded better when the patient lived. Asked afterwards whether the outcome should count, the same people said no. They had used it anyway. Poker players have a word for grading a decision by its result. They call it resulting,

SPEAKER_01because a good bet loses often And a bad bet wins often enough to teach you the wrong thing. Grade an organisation by its outcomes and you get two kinds of people. The ones who stop holding a reserve because a reserve looks wasted on most mornings and the ones who sell it every time because selling looks clever right up to the night it does not. The inspector who keeps finding nothing gets told to stop inspecting.

SPEAKER_01And the inspection that would have found something is the one that was cancelled. The cure is dull and almost nobody applies it. Before the outcome, write down what you knew, what you believed and what you chose. Afterwards, grade the page and leave the weather out of it. Which leaves the real question of this act and it has nothing to do with the weather. Where does a value live inside the problem?

SPEAKER_01There are two places and they are not the same. Take a speed limit. Write, minimize the travel time plus a fine for every kilometre over the limit. And the limit is for sale. A big enough hurry buys it and the solver will pay the fine whenever the hurry is worth more. Write, minimize the travel time subject to never passing the limit. And no hurry can buy it. Same road, same car, same limit.

SPEAKER_01Put it in the objective and it is for sale. Minimize cost plus some weight on the thing you care about and a large enough saving will buy it. The solver will trade a little of it for a lot of money, as far as the weight allows, because that is what a weight is. Put it in the constraints and it is not for sale. Minimise cost, subject to the thing holding, and no saving anywhere can touch it. Where you put a value is where you decide whether it is for sale.

SPEAKER_01His planner does this in two rounds, and both of the planners he has run, the general one and the one written for the house, have done it from the first day. It is worth hearing how. First it minimises how far the house falls short, the comfort it has promised, the reserve it keeps, the safety limits it will not cross. Then it takes that answer and freezes it as a constraint and only inside it does it start minimising money.

SPEAKER_01The house is served first and is not for sale. The electricity bill is. And a value placed carelessly costs real money. Even when no one is looking. For a while, his planner protected itself against clouds by subtracting a fixed number of watts from the sun forecast. The same number in every quarter hour across the two days. Early and late in the day, the expected sun is smaller than the margin itself.

SPEAKER_01So the margin erased mornings and evenings entirely. And it hedged tomorrow, which might be clear with the clouds measured today. Measured against a margin that scales with the sun, the fixed one was costing between 25 and 65 kroner on every plan. That cost had not been decided. It followed from where the value had been put. And there is one value that has not been placed anywhere at all.

SPEAKER_01And it is the battery itself.

SPEAKER_00The cells in the technical room out in my carport are rated for more than 8,000 cycles. That is two full cycles a day, every day, for 10 years. Should the plan count what it costs them to be used? I do not know. What is a battery worth in 10 years? Will the one I have now be worth anything at all by then, next to whatever is on the market? I do not put the wear cost on the washing machine, or the heat pump, or the stove, or the sauna.

SPEAKER_00I use them. And if I use the battery gently to save it for later, I am betting that a cycle in 10 years is worth more than a cycle tonight. Maybe it is the other way around. Maybe flexibility is worth more now than it will ever be again, and the right move is to cycle it harder than ever tonight. So where does that go? As a cost, and it is for sale. As a limit, and it is not. Leave it out, and the plan will run the battery as if it were free,

SPEAKER_00because that is what I will have asked for.

SPEAKER_01Asked. He did run the other experiment this summer, the one everybody expects to matter. A month on which solver should sit in the loop? The general one, or the one written for the house? Which turned out simpler and faster, with every plan replayed against a real week of sun and load and prices. Everything argued about, the solver, the shape of the price guess, the seed at the far end of the two days, came to under one kroner across three days of real decisions.

SPEAKER_01Then he gave the planner one more thing, the sun, the house, and the prices as they actually turned out. Perfect knowledge. It was worth a fifth of the bill. And the guess he fills the far end of the two days with, the machine-learned price for the hours not yet published, turned out to be almost free. Once about eight hours of real price were known, the guess never once changed the power sent to the battery

SPEAKER_01in 538 recorded situations. The money was in the objective of And in the information. And none of it was in the solver. Minimize the cost. Subject to. This one is not for sale. For 70 years the division of labor did not move. A person writes the problem. The objective, the limits, the state. The machine solves the instance.

SPEAKER_01Kantorowicz wrote the plywood problem by hand. The grid's engineers write tomorrow's problem by hand. Every constraint, every ramp. He wrote his own house's problem by hand, with a machine at the keyboard. Then, starting around 2023, the machine climbed. The first rung is almost embarrassing. Show a language model, the kind of system behind a chatbot, The last ten things you tried and the score each one got and ask

SPEAKER_01for something better. It often gives you something better. No gradient, which is the mathematician's word for the direction of steepest improvement and the thing most optimizers follow. No theory, just a story about what has worked so far. It also runs out fast. In its own inventor's tests, it stops finding the best route through a set of cities somewhere between 15 and 20 of them. And by 50, it is a mediocre rule of thumb.

SPEAKER_01The second rung is Stranger. Instead of asking for an answer, ask for a program that produces answers. Run the program, score the result, keep the best programs and let them mutate. In late 2023, a system built this way found a larger example of a certain mathematical object than anyone had found before in a corner of pure mathematics. The object has more than 200,000 entries.

SPEAKER_01The program that generates it is a few lines long and a mathematician can read it. Here is the one story to hold. In 1969, the year of the moon landing, a German mathematician called Volker Strassen found a shortcut. Multiplying two grids of numbers the ordinary way takes a fixed number of multiplications, and it was taken for granted that it could not be done with fewer. Strassen showed it could. For one small case, a 4x4 grid, his method needed 49.

SPEAKER_01For 56 years, 49 stood for that case in ordinary arithmetic. In 2025, a system that writes and rewrites its own code, judged by a scorer it cannot argue with, found 48. One step out of 49 after 56 years. The same system's scheduling rule runs inside Google's data centers and gives back, on an average day, a little under 1% of the company's computers, which is money.

SPEAKER_01And the record did not stay with the machine for long. In October 2025, a mathematician in Finland, working by hand with symmetry instead of search, beat the same system's new records on an old problem about packing spheres, in two of the dimensions it had claimed, and came one short in a third. The same scorer judged both of them, and did not care which was which. So the ladder has three rungs now. Search for the answer.

SPEAKER_01Search for the programme that finds the answer. Search for the problem the programme should solve. There are systems today that take a description in plain English and try alternative mathematical formulations of it and test them. Each rung is real. Late in 2025, the same code-evolving system was pointed, with Terence Tao among the authors, at 67 open problems. It found the best known answer again in most of them and improved it in several.

SPEAKER_01And one of its modes turns a list of numbers it has found into a formula. And one thing on the ladder has not moved at all. Every one of these systems is a proposer wired to a scorer. And it can only ever be as good as the score. Think of a student and an answer key. The student can be brilliant or lazy. The grade only ever says how well the answers match the key. And if the key is wrong, a better student gets more wrong answers marked right.

SPEAKER_01A stronger proposer does not fix a weak score. It leans harder on whatever the score forgot to measure. So the systems that work keep the scorer in a room the proposer cannot reach. When a DeepMind system scored at silver medal level on the 2024 Mathematical Olympiad, one point short of gold, the proofs it wrote were checked by a proof assistant called Lean, a programme that accepts a proof only when every step follows from the one before it

SPEAKER_01by a rule it already knows. And a proof that failed the check was simply not a proof. The generator could be as fluent as it liked, The checker does not read fluency. It was also slow. Some of those proofs took three days against the four and a half hours a student gets and the two combinatorics problems it did not solve at all. The scorer matters most where it is weakest and the weakest place is the first line.

SPEAKER_01Ask a language model to turn a business problem into an optimization model, and it will hand you code that runs, returns an answer that breaks none of the rules it was given, and encodes the wrong problem. And no one sees it, because a wrong model does not crash. In one recent study, the gap between the code ran and the model was right reached up to 90 percentage points. The code is minimising something, subject to a list with a line missing.

SPEAKER_01One refinement is worth carrying. The scorer can speak. A score says, worse. A critique says, the constraint is missing, because the objective did not move when you changed the input. Systems now pass that kind of sentence backwards through every step that produced the answer. So each step is told what to change, and it is a richer signal than any number. So the judge is where it was, and it has learned to say why.

SPEAKER_00At the far end of the two days, the plan needs to know what a kilowatt hour left in the battery is worth. I gave it one number, the same for every level of the battery, and I set it high, above the average price for the two days. So the plan would rather end full than end empty. The true seed is a curve. The first kilowatt hour into an empty battery is worth more than the last into a full one because the empty battery can still catch tomorrow's cheap hour and the full one cannot. I knew that. I wrote one number anyway because a curve is hard and a number is easy.

SPEAKER_00And the plans did what the number said. They bought real electricity from the grid, 8.6 kilowatt hours at 146 ur, and booked it inside the plan at 225. I was sure it was costing the house money. Then I measured it. 550 real decisions over three days of a week in August with the seed set to nothing. To half, to double. The first quarter hour, the only one that reaches the wire, changed zero times. It cost nothing.

SPEAKER_00The trade was real inside the plan. And the plan was thrown away before it ever happened. It did what I asked. That was the problem. And the problem cost me nothing this time for a reason I did not design.

SPEAKER_01The reason is the rolling two-day plan, and it saved him. Only the first step is real, so a wrong value two days out did not touch the wire. It will not always. Shorten the plan and the same seed starts to cost. And he measured that too. And the seed is the small version of a question nobody in this hour can answer. What is the battery worth after the plan ends? In ten years?

SPEAKER_01The number at the far end of two days and the wear cost he could not place are the same question, asked at two distances. Both of them sit in the first line of the problem and the machine that is learning to write the first line will write it better every year. Minimize the cost Subject to A score you cannot fool

SPEAKER_00Someone will ask me this week why it is doing this now. Most weeks the sum is right and the feeling is wrong and I will say so and I will show them the plan. I have not stopped getting the question. I have not stopped having the feeling either.

SPEAKER_01Every certificate ever issued reads the same way. The proof in the noon room stops at 12 minutes. The proof in his carport stops at the first quarter hour. Minimize the cost, subject to.

SPEAKER_00The house is served first. The car is full by the time it leaves. Nothing sells from the battery, unless I have said it may. The main fuse. And two lines I have not managed to write. What the battery is worth in ten years. And the feeling at eleven at night that it should be charging now.

Open the transcript file

Hosts and Guests

Nobody is credited on this episode yet.

Credit the people on this episode

Be the first to rate this episode

More episodes

All episodes
  1. Counting Years

    Nov 22, 202642 minAudio

    Coordinated with Fredrik, Episode 127. Forty-two minutes on how a company gets its price: what a multiple counts, why the same krona can be worth seven years in one company and twenty-seven in another, how a rise in...

    Credit the people on this episode

  2. Shoulder Check

    Oct 31, 202650 minAudio

    Fifty minutes on two runs a day apart: the rest of Vancouver, and the road from ten Helium gateways to physics first. An interview with Lily. On Thursday I answered her questions in English; on Friday I went back to...

    Credit the people on this episode

  3. We Live Where We Are

    Oct 27, 202637 minAudio

    Thirty-seven minutes on two runs a day apart: the two years after the money came in, and home. An interview with Lily. I answered her questions in Swedish while running; the English voice you hear is my cloned voice...

    Credit the people on this episode

  4. Momentum

    Oct 24, 202639 minAudio

    Thirty-nine minutes on the two years before a term sheet arrived on my birthday, and what it took to turn it into money. An interview with Lily. I answered her questions in Swedish on a fifteen-kilometre run; the...

    Credit the people on this episode

  5. EP123: The Drive. Somebody Has to Say Yes

    Oct 15, 202634 minAudio

    This episode started in a car. A clear October day, low sun, the drive from Kalmar to Stockholm. I could have flown, and it would have been faster. But the hours in the car are a different kind of time. The car keeps...

    Credit the people on this episode