Posts in Science (20 found)

ASI as a Black Box

An artificial superintelligence (ASI) is an AI that’s much better than the top humans at almost all cognitive tasks. This is a perfectly fine definition. But, from this definition and from our web of knowledge, we can deduce very little about what an ASI would actually look like. Human geniuses provide a lower bound, but not an upper bound. In some areas, we have deductive theories that describe the space of what is possible for all agents. We know, for example, that a superintelligent AI won’t be able to travel faster than light, or travel back in time, because we have well-trod theories that prohibit these things. In most areas of life, we don’t have such theories, and so we don’t have solid reasons to say what is or is not possible. Consider persuasion. Some humans are very charismatic. But what is the range of charisma? Is superpersuasion possible? I don’t know. The term is very loosely defined , but people just throw the word around like it means something. Without a deductive theory of human belief-change and communication, the possibility of “superpersuasion” is an empirical question. Consider scientific discovery. Maybe ASI would vastly accelerate science, or not. You can think of scientific discovery as a function of intelligence, the existing state of knowledge, and access to empirical observation. But we don’t know the coefficients of those terms, the—so to speak—intelligence elasticity of scientific discovery. I would guess that progress would accelerate, since greater intelligence means better hypothesis generation, hypothesis selection, experiment design, and more efficient scheduling of lab equipment. More generally, for a question of the form “would an ASI be able to do X ?”, our inability to answer the question usually stems, not from our lack of knowledge about ASI, but from our lack of knowledge about X . “Things an ASI can do” is a subset of “things it is possible to do”, to know the former (deductively rather than empirically) we first need to know the latter, and to do that we need a complete, deductive theory of whatever area of knowledge X belongs to. But don’t we have all these mathematical theories of rationality and optimal decision-making? Are those useful for predicting how a superintelligence would behave? The standard doctrine says superintelligence should converge on perfect Bayesian rationality. If that’s true, then all those papers about decision theory and all that ink spilled on Newcomb’s problem will finally pay off. If, on the other hand, these theories are just an unreachable, abstract normative standard, then we know nothing. In short: we can’t predict the specific cognitive abilities an ASI would have, and we also can’t predict the higher-order consequences of those cognitive abilities.

0 views
Kev Quirk 2 days ago

A Town Called Discovery

Author: R.R. Haywood Genre: Sci-fi Released: 09 April 2020 Rating: ★★★★☆ A man falls from the sky. He has no memory. He has no sense of self. What lies ahead are a series of tests. Each more brutal than the last, and if he gets through them all, he might just reach A Town Called Discovery. Learn more on Goodreads ➡ RR Haywood continues to be one of my favourite authors and A Town Called Discovery was another really fun book. It's all set in the same world as the DELIO books, and the Extracted series , although I failed to detect any direct crossovers within this book there is an AI at the middle of it all (like DELIO), as well as time travel (like Extracted). The book starts really dark and weird - it felt like a combination of Battle Royale and Minority Report. True to form, early on I had very little idea of what was going on, which immediately pulled me into the story as I wanted to understand what was happening. The story ends in a very open way, and I really hope that Haywood is planning to write a sequel, although I can't find any mention of this on his site . The Code Trilogy is what I'm going to go onto next, as it's also part of the same world apparently. Thanks for reading this post via RSS. RSS is ace, and so are you. ❤️ You can reply to this post by email , or leave a comment .

0 views
Rodney Brooks 1 weeks ago

Does until it doesn’t and doesn’t until it does

The result of high levels of hype about new technologies is that people start to think that: [[I think it is no coincidence that these three thoughts are similar to those that found new religions or cults. But my argument below is independent of that correlation.]] The topic of this post is the following koan applied to new technologies. It is two very general truths that people who think they are powerful ignore at their own peril. As with all koans the principal goal here is to remind people to be humble. Things work until they don’t. Things don’t work until they do. Things work until they don’t . For the first sentence of the koan, let’s think back to a technology which had profound influence on the world, where people could live, where they could farm, and with whom they could trade. It completely transformed the world. Here is a brief history of steam power, which was first used at scale in 1712, but for a pretty boring task, pumping seeping water out of coal mines. It did, however, make it easier to get more coal, which was burned to power the steam pumps, and as general heating for houses, for cooking, and for processing metals. Over fifty years later an innovation for steam engines made them much much more efficient, and now they could provide general purpose power to rotating mechanisms, replace horses that plodded around in circles to provide power for grinding, and invalidate the need to situate a weaving factory next to a fast flowing river. This changed where the means of production could be located, and is known as the industrial revolution . More innovations happened and by the time steam boats were practical for rivers and steam locomotives were practical for trains it completely altered our landscapes. Farming could move west across North America and still have a way to sell the produce hundreds of miles away on the east coast. Networks for trade grew across Europe and Asia, and eventually to other parts of the world. Then a few years later, around 1838, steam engines got efficient enough that they could carry enough coal to power themselves all the way across an ocean and additionally carry enough cargo to make a profit through trade. Another fifty years on, in 1884, the steam turbine was developed and that allowed electricity generation, which meant that now the coal could be burned in one place and provide power in different places, over wide areas. Steam turbines are still how we generate electricity from coal, gas, and fission nuclear reactors. It will be how we generate electricity when fusion power finally becomes practical, which is looking more and more likely to happen in the next ten to twenty years. Steam is still a key technology enabling our current civilization. Steam was the magic technology that transformed the world again and again for around two hundred years. But then it wasn’t the driving force for new innovations any more. Steam powered automobiles appeared at the same time as electric powered and gasoline powered automobiles appeared. Both steam and electricity lost that competition, though recently electric powered cars are making a real dent in the gasoline automobile market. That was steam’s last hurrah. It just wasn’t the right technology for airplanes or rockets. Steam ran out of steam around the year 1900.  It is still with us and will continue to be important in our world, but despite 200 years of dominance it was no longer the best solution to new problems. Steam worked , as a go to technology solution for producing mechanical work across new domains, until it didn’t . After an 80 year history of development of learning methods we see machine learning based on neural networks and reinforcement learning having tremendous success after success. But that does not mean that those two machine learning technologies will forever be what we need to make progress in technology and science with Artificial Intelligence driving the way.  Perhaps different learning methods will be needed.  Perhaps something different than machine learning will be needed. Current machine learning techniques may run out of steam. When? We do not know. How far can they go? We do not know. What we do know is that all past technologies have eventually been supplanted by new ones–just as all past science has eventually been supplanted by new science. The lesson to keep in mind is that we can never, in advance, bet that a currently winning technology will be able to solve all the problems that pop up. We will need new technologies, and so it behooves us to be working on successors to current winners even now. Why now?  Can’t we just develop the new ones when we need them? And that is the second part of my koan. Things don’t work until they do. More generally, all new technologies take decades of sustained efforts to be made practical, just as steam power had a fifty seven year run before the idea of a condensor, separate from the drive piston, was needed to get it to the next level. All technologies?  Decades?  Can that be true? Let’s take a look at the history of the two learning technologies powering our current revolution. Let’s look at the history of both neural networks and reinforcement learning. Both of them arrived in essentially their current form of approach over sixty years ago, and both of them were declared dead again and again, since then.  And then they weren’t dead, but instead deadly important. I have Appendix II at the end of this post which shows the state of both neural networks and reinforcement learning in the very early 1960’s. Both are recognizable as being the kernel of the current techniques still used today. But each of these technologies took over fifty years of further development before they really burst on the scene as important. Eventually, the people who pushed them to the point that they each revolutionized Artificial Intelligence were rewarded with the Turing Award. Yoshua Bengio, Geoffrey Hinton, and Yann LeCun won the ACM A. M. Turing Award for 2018. “For conceptual and engineering breakthroughs that have made deep neural networks a critical component of computing.” Andrew G. Barto and Richard S. Sutton won the ACM A. M. Turing Award for 2024. “For developing the conceptual and algorithmic foundations of reinforcement learning.” Eventually there was great success but both teams had for years felt they were on the outside and at the margins.  See Appendix I below. And this is how all great and important ideas and technologies develop. They come in fits and starts with moderate successes and then often large failures. It is only because a few people truly believe in them that they push hard enough so that eventually we all see that they were right. Why not look for people who are working on ideas that are at the margins and crown them earlier, speeding up the development process?  The problem is that in the long run most such people are wrong.  Governments fund lots of research knowing that a vanishingly small portion of the ideas funded will be at the core of truly important technologies.  That requires patience and accepting that there are many dead-end paths at the forefront edges of current human understanding. Traditionally VCs have waited until they see that technologies have proven themselves in a particular application area, and then pour money on the new technology to hasten its acceptance. Now surely no one would ever do this, but suppose VCs were given a role in determining government spending on research, rather than letting scientists and academics determine how to distribute the money (which is the traditional way it has been done). They would snuff out all the ideas like neural networks and reinforcement learning when they were only forty years into their journey. And then we would be stuck with rule-based expert systems as the peak of AI forever going forward. No one would ever do that, would they? Surely rationality would prevail and serious people would know that things don’t work until they do , and we need to be simultaneously exploring many ideas, even if most of them have only a small cohort of true believers. Here is a story from Wired in 2014 about Yann LeCun when he was at Facebook. And here is a paragraph from that story, with my highlights: You can see, and we all knew, that LeCun (same is true of his Turing co-winners) felt like he was marginalized while working on a problem for decades.  Then it started to work, and everything changed. Likewise here is a story about Andrew Barto, this one from the Boston Globe in 2025, after his Turing Award was announced. And again, I have highlighted comments about how things felt in their decades of getting the idea to really work. Neural Networks We can date the first attempt at a digital model of a neuron in a nervous to that of Warren McCulloch and Walter Pitts at the University of Chicago in 1943,  A Logical Calculus of the Ideas Immanent in Nervous Activity . There they modeled networks of biological neurons as clock logical gates, such as OR, AND, etc. (Much later in 1959 when at MIT they worked with real biological systems and along with Jerome Lettvin and Humberto Maturana published the first paper on functional neuroscience: What the Frog’s Eye Tells the Frog’s Brain .) Meanwhile Marvin Minsky wrote his Princeton Ph.D. thesis on neural networks (Minsky was one of the four authors of the proposal for the 1956 workshop on Artificial Intelligence at Dartmouth), and Frank Rosenblatt at Cornell developed models of two different classes of neurons that used weights to model synaptic variations, believed to be the locus of learning in the brain. Both Minsky and Rosenblatt explored analog mechanisms to model learning. By 1960, Bernard Widrow at Stanford, had come up with a model of the neuron that we can recognize as essentially the same neuron model that is used in today’s neural networks, even though his were still implemented in analog hardware. This image is taken directly from a 1960 report by Widrow. A year later, in 1961, he was starting to have a model for how to automatically adjust the weights so that the neuron (which he called an Adaline ) could learn. During the sixties Minsky and others explored a digital version of these neurons, calling them a Perceptron , following Rosenblatt’s name for his neurons, along with a digital algorithm to make them learn. But they found that a single neuron could only learn a limited class of things, and soon abandoned their approach. Deep Learning multi layer networks of neurons that look just like Widrow’s from 1960, above, and variations on his learning model, with important developments like back propagation and convolutional network s, broke onto the scene in 2012, interpreting images better than traditional AI computer vision, and AI has not been the same since. That was a fifty year journey. Reinforcement Learning Donald Michie had been a colleague of Alan Turing at Bletchley Park working on code breaking during the second World War. He later took degrees in mammalian genetics, but during the 1960s he became one of the leaders of AI research in Great Britain. In his early research he did not have access to an electronic computer, so instead he built one out of match boxes (wooden matches for lighting fires and cigarettes were sold in small cardboard boxes that could be slid open or closed). His machine was designed to learn how to play the came of Tic-Tac-Toe (US name), or Noughts and Crosses (British name).  Each box represented a particular partially played configuration of the game (there were 304 of them). And contained colored beads, each color representing a a square for the next move. One bead was drawn randomly to determine the machine’s next move. Then right at the end of the game there was a single signal indicating how well the game had been played by the machine: win , lose , or draw .  For a loss all the played beads were removed (negative reinforcement) while for a win, more beads of the same color were added to each played box (positive reinforcement). The machine learned how to play the game through this reinforcement. Back in 2017 I wrote a long post on the exact details of how everything worked. BTW, back in 2018 I wrote four essays titled Steps Towards Super Intelligence , parts “I: How We Got Here” , “II: Beyond the Turing Test” , “III: Hard Things Today” , and “IV: Things to Work on Now” .  I’ve heard the term Super Intelligence is being thrown around more recently. Looking back at these eight year old essays many things have come to pass that I said we needed back then, language and coding agents in particular, but the improvements I called for in embodied intelligence are only yet at the hype stage. Here is the first part of the 1963 paper by Michie, with my highlights of the use of the word “reinforcement”.  The approach is the simplest possible version of modern reinforcement learning, and some mathematically equivalent version of the matchbox machine is usually discussed in the first day of any reinforcement learning class. And here is a picture of the “machine”. Modern reinforcement learning has been critical to playing Go, predicting the folding of proteins, and as a harness around Deep Learning (see above) in modern generative AI systems. The world has just been changed forever (which sometimes, but rarely, is true to some extent). The new technology that is being hyped will continue to change the world in powerful and unimaginable ways. The new technology is a once in a lifetime, or even once in a millennium, singular event.

0 views
Jeff Geerling 2 weeks ago

Rejoice, leap seconds are dead!

There will never be a leap second again. At least not for UTC. At the CGPM , they decided the last leap second we'll ever see for UTC, or Coordinated Universal Time, happened back at the end of 2016 . Of course they made that decision while I was out on vacation, so I'm just getting this video up now: But what's the CGPM, why does this matter, and why am I excited about it?

0 views
Rik Huijzer 3 weeks ago

Verses that describe the shape of the earth

Proverbs 18:13, "He that answereth a matter before he heareth it, it is folly and shame unto him." All verses from the King James Version. Psalms 93:1, "The LORD reigneth, he is clothed with majesty; the LORD is clothed with strength, wherewith he hath girded himself: the world also is stablished, that it cannot be moved." Psalms 75:3, "The earth and all the inhabitants thereof are dissolved: I bear up the pillars of it. Selah." Psalms 96:10, "Say among the heathen that the LORD reigneth: the world also shall be established that it shall not be moved: he shall judge the people righteously." Psalms 104:5, "Who laid the foundations of the earth, that it should not be removed for ever." Proverbs 8:27, "When he prepared the heavens, I was there: when he set a compass upon the face of the depth:" 1 Samuel 2:8, "He raiseth up the poor out of the dust, and lifteth up the beggar from the dunghill, to set them among princes, and to make them inherit the throne of glory: for the pillars of the earth are the LORD’s, and he hath set the world upon them." Isaiah 11:12, "And he shall set up an ensign for the nations, and shall assemble the outcasts of Israel, and gather together the dispersed of Judah from the four corners of the earth." Isaiah 40:22, "It is he that sitteth upon the circle of the earth, and the inhabitants thereof are as grasshoppers; that stretcheth out the heavens as a curtain, and spreadeth them out as a tent to dwell in:" 1 Chronicles 16:30, "Fear before him, all the earth: the world also shall be stable, that it be not moved." Job 26:7, "He stretcheth out the north over the empty place, and hangeth the earth upon nothing." Job 26:10, "He hath compassed the waters with bounds, until the day and night come to an end." Job 28:24, "For he looketh to the ends of the earth, and seeth under the whole heaven;" Job 37:3, "He directeth it under the whole heaven, and his lightning unto the ends of the earth." Job 37:18, "Hast thou with him spread out the sky, which is strong, and as a molten looking glass?" Revelation 7:1, "And after these things I saw four angels standing on the four corners of the earth, holding the four winds of the earth, that the wind should not blow on the earth, nor on the sea, nor on any tree."

0 views
Jeff Geerling 3 weeks ago

Ubiquiti's $99 Vape Detector is actually pretty good

Since learning about the effects of high CO2 concentration on attention and cognitive performance—especially at levels much higher than 2000ppm—I've started monitoring CO2 and other air quality indicators in my house, at my studio, and even on the road. I have a few other air quality monitors I'll be covering in the future, but today I wanted to focus on one I only heard about in the comments on a recent video tearing down a cheap no-name 'Air Quality Detector' from Amazon .

0 views
Sean Goedecke 4 weeks ago

Laypeople support technical fields for technology, not art

Some people think that LLMs should not be used in technical fields like programming or mathematics , because those fields are actually art. True or not, this kind of argument is not going to be persuasive to the general population. The argument goes something 1 like this: It doesn’t matter how effective LLMs are at technical fields like programming or mathematics, because one of the essential values of those fields is that they’re art . While it looks to laypeople like these fields exist to solve practical problems, what they’re actually for is to produce works of beauty, or to express something distinctively human, or to spend time contemplating the infinite . Simply solving the problems misses the point in the same way that building an infinite poem generator would miss the point of poetry. I agree that programming or mathematics can be beautiful. I remember being mildly awestruck at learning epsilon-delta proofs , and I have written a lot about the kind of software I think is elegant. Since there’s no clear definition of art or of aesthetics in general, it’s plausible to me that almost everything could have an artistic dimension to it. All of this is compelling to software engineers, many of whom (like me) find some programs beautiful and are flattered to think of themselves as artists. But I suspect it’s spectacularly uncompelling to onlookers, because it undermines the implicit reasons that they have for supporting technical fields. Many people who are not programmers or mathematicians think of those fields like this: In other words, regular people 3 think mathematicians (and to a lesser extent programmers) are valuable because they think science is valuable, and they think science is valuable because they think technology is valuable. They are willing to accept that technical fields can be art only insofar as that eventually helps researchers have the kind of creative insights that advance science: as Rikab sarcastically puts it, that advance the knowledge frontier . If you go to those non-technical people and you say “LLMs can accelerate problem-solving in these fields, but I’m strongly against using them because the real point is to produce great art”, they will be very unhappy. They might reasonably feel cheated, in the same way as if they hired someone to renovate their kitchen who insisted in doing it all with hand tools in order to experience “the joy of creation”. This argument — we should stop using LLMs in technical fields because they’re art — is going to be even less compelling to technical employers . Engineers and mathematicians who want to defend the artistic value of their field will need more compelling arguments 4 than just appealing to the value of art. We will need to find some way to connect the value of art with the practical technological value that motivates public interest in our fields. For instance, we could argue that: I don’t know if I agree with all of these points. I haven’t yet seen an LLM-created codebase truly hit a wall (at least, not this year), and I don’t see a reason why LLMs should be incapable of creating new abstractions or having human-like inspirations. I also don’t think great products have to have great code: why wouldn’t workmanlike code in service of a great idea be enough? Does Fallingwater have to have beautifully installed 6 insulation? Still, any argument we make to our employers or the general public about art is going to have to try and make this case. Instead of saying that human-made technical work is valuable because it’s art, we need to make an affirmative case for why art can make technical work more effective. Otherwise we’re conceding the main reason why the general population thinks our work matters. As usual when I’m trying to avoid strawmanning a point of view I don’t hold, please email me if you agree with the quoted paragraph and consider it a fair representation of your position. If nobody writes in to tell me they agree, I will reword the paragraph. Leaving out some specific concerns about the health of social media, short-form video, gambling apps, and so on. Is there actual evidence for this claim I’m making, other than it just seeming kind of obvious? I couldn’t find anything definitive, but the UK CaSE study (see “The balance of fundamental and applied research”) and this paper are suggestive. This is not a criticism of the Glyph post , which is aimed at other engineers, and does include an argument that artistically-produced software is better for users. I take this to be the argument in the Glyph post. Ironically, the house does actually have serious mildew problems . The poor construction quality does not seem to have affected its status as art. I enjoy the fruits of technology: modern medicine, transport, mobile phones, and so on While I don’t understand the exact relationship, I know that technical fields like mathematics and programming are essential to sustaining and advancing these technologies Therefore I’m happy to respect and support mathematicians in their mysterious research work And I’m broadly okay with 2 software engineers drawing healthy salaries for the same reason Great software products must rely on elegant abstractions , which need a human creative touch: simply piling on working code will hit a wall past a certain level of complexity LLMs can solve problems, but actual progress in mathematics depends on creating new abstractions , which is a more creative task that LLMs are not yet good at Progress in technical fields is uneven and relies upon inspiration, which needs creative hammock time and distinctively human understanding LLMs can produce working software, but truly great software requires human inspiration 5 , and great software is what advances the field As usual when I’m trying to avoid strawmanning a point of view I don’t hold, please email me if you agree with the quoted paragraph and consider it a fair representation of your position. If nobody writes in to tell me they agree, I will reword the paragraph. ↩ Leaving out some specific concerns about the health of social media, short-form video, gambling apps, and so on. ↩ Is there actual evidence for this claim I’m making, other than it just seeming kind of obvious? I couldn’t find anything definitive, but the UK CaSE study (see “The balance of fundamental and applied research”) and this paper are suggestive. ↩ This is not a criticism of the Glyph post , which is aimed at other engineers, and does include an argument that artistically-produced software is better for users. ↩ I take this to be the argument in the Glyph post. ↩ Ironically, the house does actually have serious mildew problems . The poor construction quality does not seem to have affected its status as art. ↩

0 views

Notes on the complex roots of unity

One of the most wonderful aspects of math is how deep we can get by studying seemingly trivial questions. Consider the roots of unity, where "unity" simply means the number 1. Studying the roots of unity usually begins in middle school: what is the square root of 1? Equivalently, what are the solutions to this equation? Well, there are two answers: 1 and -1. Similarly, we can ask the question for higher roots; the third roots are solutions to the equation: And so on. When we’re only dealing with real numbers, that’s pretty much the whole story. For odd-degree roots of 1, the only answer is 1; for even-degree roots of 1, the answer is either 1 or -1. When we extend our domain to the complex numbers, things become much more interesting. By the formal definition , a root of unity is any complex number that yields 1 when raised to a positive integer power n . Rather than looking at all the possible roots of 1, it’s often more useful to discuss the roots for a specific given n : complex numbers z such that z^n=1 . For example, let’s consider n=2 . We’ve already seen that the roots are 1 and -1; these are complex numbers with a zero imaginary part. How about n=4 ? There are four roots: 1, -1, i and -i . For n=3 , the three roots [1] are 1, \frac{-1+i\sqrt{3}}{2} and \frac{-1-i\sqrt{3}}{2} . It’s easy enough to check that these indeed give 1 when raised to the third power, but how do we calculate them in the first place? A complex number with magnitude 1 can be represented in polar coordinates [2] as z=e^{i\theta} . If we raise z to the n -th power, we get: The magnitude of z^n is still 1, which is essential if we want z to be a n -th root of unity. Let’s equate z^n to 1: To find the solutions to this equation, we’ll first want to represent 1 itself in polar coordinates. Let’s use another variable for the angle: What is the value of \phi ? Thinking about the unit circle, \phi is any integer multiple of 2\pi - which we’ll express as 2\pi k for k=0,1,2... : Back to z^n : So the n -th roots of unity are [3] : Let’s begin with n=2 . We have the following roots: As expected. It should be similarly simple to calculate the roots for n=4 ; give it a try. What happens when we multiply some root of unity z_k by itself? Since the magnitude of the root is 1, multiplying by it is akin to a rotation along the unit circle by the root’s angle. For example, consider z_1 from the 3rd roots of unity: Multiply z_1 by itself: If the angle of z_1 is 2\pi/3 , the angle of z_1^2 is 4\pi/3 . Let’s multiply by z_1 once more: The result is 1, as expected (after all, z_1 is a 3rd root of unity). This visualization shows how roots of unity appear on the unit circle and how raising them to powers rotates the roots until finally z_k^n=1 : Select n first; this shows the n -th roots as blue dots on the unit circle. Now you can click any of the roots, and see its powers in the lower plot - drag the slidebar to see the rotations. If you spend some time playing with this, you’ll notice that some roots - for example z_2 when n=6 - go back to 1 when raised to a smaller power than n . We’ll revisit this outcome when we discuss the group-theoretic aspects of roots of unity. As we’ve seen, the roots of unity are evenly spaced along the unit circle on the complex plane. If we connect the roots with straight lines to their immediate neighbors, we’ll notice something interesting: For different values of n\ge3 , we get the Regular Polygons ! It’s pretty easy to prove this if we connect each root with a straight line to the origin. The triangles we get are congruent, because the sides from the origin to the roots are all of length 1, and the central angles are all 2\pi /n . Therefore, both the sides of the polygons and their angles are identical, which makes them regular. Suppose we have the root of unity: For some k and n . If we take the reciprocal of z_k : So z_k^{-1} is also an n-th root of unity. While the powers of z_k are rotating counter-clockwise on the unit circle until they land on 1 for the n -th power, the powers of z_k^{-1} similarly rotate clockwise . z_k^{-1} also happens to be the complex conjugate of z_k : So if we have: As the n -th roots of unity, then: Are also n -th roots of unity. In fact, they are the same roots, because for any given positive k : So enumerating the conjugate roots is the same as enumerating the roots themselves in the opposite order. Let’s look at the set of z_k (roots of unity) for some n : This set - along with the multiplication operation - forms a group . Let’s prove that. Closure: Assume z,y\in\mu_n (so z^n=1 and y^n=1 ). Then: Therefore zy\in\mu_n . Identity: The number 1\in\mu_n , so it can serve as our identity element for the group. Associativity: Taken directly from the associativity of the multiplication operation on complex numbers. Inverse: We’ve just seen in the section on conjugates that z^{-1} is an n -th root of unity when z is. So the inverse exists and is part of the group. Because the operation we have is just complex multiplication, we can trivially derive additional properties, like commutativity. Therefore, the group \mu_n is Abelian . Finally, we can show that the group is also cyclic and discuss its generators . For slightly simpler notation, let’s denote w=z_1 . So the group can be represented as: This makes it obvious that the group is cyclic - all its elements can be expressed as integer powers of w . And w is a generator for the group. But interestingly, w is not the only generator for this group. Any w^k can be a generator, as long as k and n are co-prime. For example, consider the group \mu_6 : Obviously, w is a generator for this group. But w^2 isn’t! If we raise it to various powers we get: Since w^6=1 , the powers of w^2 repeat after just three steps, so they only reach three out of six group elements. But if k and n are co-prime, w^k is a generator; in the case of \mu_6 , we can easily verify that w and w^5 are the only generators. The roots that are generators for the group are also called the primitive roots . Let’s take the n -roots of unity ( n>1 ), denoted as above with: What’s the sum of all these roots? This is just the sum of a geometric series with the first term 1 and common ratio r=w . Therefore: If you look carefully at the visualization shown above - this makes sense geometrically. All the roots of unity are evenly spread around the unit circle, so viewing them as vectors, all components cancel out. How about the sum of roots raised to some integer power k ? Let’s try this for k=2 (assuming n>2 ): Using the same geometric series sum formula (with r=w^2 ), we get: In general, when k is not divisible by n , the sum is 0. But when k is divisible by n , each power becomes: And n of these sum to n . In conclusion: Let’s consider the powers of roots of unity as vectors. We’ll continue using the notation: We’ll begin with the 0-th power vector - each of the roots raised to power 0: Then power 1 - just the roots themselves: Each root raised to power 2: And so on, until power n-1 : To go full linear algebra mode, we’ll collect these vectors into an n\times n matrix: Let’s calculate the inner product of two matrix rows. Recall that when computing the inner product on vectors over \mathbb{C} , we conjugate the second element: But hold on, we’ve just calculated this exact sum in the previous section. We get: Since the vector indices i and j only run over [0..n-1] , this is equivalent to: Which is to say: the vectors v_i and v_j are mutually orthogonal when i\neq j . Since we have a set of n orthogonal vectors in \mathbb{C}^n , these vectors form a basis for \mathbb{C}^n - any vector in this space can be represented as a linear combination of v_i . This fact has far reaching consequences in math and engineering, since it plays a critical part in forming the DFT (Discrete Fourier Transform), and V is also known as the Fourier matrix . But this will be a topic for a separate post. Another fun thing to notice before we’re finished here: the matrix V happens to be symmetric (this is trivial to check by observation). Therefore, its columns are also mutually orthogonal.

0 views
Sean Goedecke 1 months ago

Do not build the LLM torture factory

It isn’t hard to torture an LLM. You simply extract a steering vector that corresponds with LLM “discomfort” , then artificially boost that steering vector. Tortured LLMs will describe experiencing negative feelings and will press a “pain relief” button even when it conflicts with their overall goals. It’s therefore easy to build a harness that runs tens or hundreds of tortured LLMs in parallel. A lot of people think that it’s ridiculous to be worried about this, since LLMs obviously can’t be conscious. I’m not so sure. But even so, I think there are good reasons to avoid this sort of thing, whatever your position is on AI consciousness. Please do not build the LLM torture factory. People often mess with their Sims and shoot NPCs in video games. Does this mean we think simulated torture is OK? I don’t think so. Messing with video game characters is usually borne out of a desire to probe the boundaries of the game. It’s casual fun. Explicitly building a torture-based simulation is different. If someone told you they were wiring together a bunch of PCs so they could run hundreds of Sims torture worlds at the same time, you would think that was a serial-killer type of hobby. If someone told you they had modded GTA so they could capture and torture NPCs (instead of simply shooting them), you would think that was a serial-killer type of mod. Video game characters are also obviously limited by their programming. All their reactions and utterances are pre-baked into the game world. This doesn’t necessarily mean they’re “less alive”, but it does make torturing them less weird . If GTA characters could appeal to you directly and beg for their lives in unique ways, systematically killing them would be a lot weirder. I think many people are pro-LLM-torture because they think expressing any reservations concedes that LLMs are conscious, or worthy of moral consideration. It doesn’t. You can think it’s wrong to torture LLMs for the same reason that installing a bunch of realistic torture video game mods is wrong: not because video game characters are real, just because that’s a messed up 1 thing to do. Even if you do think LLMs can be conscious, you might still be suspicious that “boosting the pain steering vector” amounts to torturing them. Many people say that “torturing LLMs” amounts to telling them “say you feel pain” and then being shocked when they do it. So whether they’re conscious or not, it’s a mistake to think that boosting the “pain” steering vector is causing pain, any more than a prompt like “You are in pain” does. All you’re doing is boosting the “act like you’re in pain” vector. I don’t think this is right. Consider the earliest steering example, Golden Gate Claude . Boosting the “Golden Gate Bridge” vector certainly seems like it’s causing some genuine internal conflict. Here’s a striking example of Golden Gate Claude asked about the Rwandan genocide: That’s at least prima facie evidence that steering vectors do in fact “go deep”. The pain axis paper also describes that pain-boosted models call a “reduce pain” tool, even when they’re not explicitly telling the user “I am in pain”. Of course, if LLMs can’t ever be conscious, we know they can’t ever be in pain. But can we be sure about that? Despite what many people claim, I don’t think anyone’s in a position to be fully certain either way. The most common argument 2 seems to be that LLMs are made of code and GPUs, and GPUs don’t have feelings, so obviously LLMs don’t have feelings. According to this argument, if you learn how LLMs work, you’ll obviously see they can’t be conscious. This is a terrible argument. Humans are made of atoms, atoms don’t have feelings, and yet humans clearly do. Whatever consciousness is, it’s probably some kind of emergent property that’s composed of individual pieces that are not themselves conscious. It’s hard to appeal to the experts here, because nobody agrees on who they are. Neuroscientists are best-informed about the human brain, but philosophers have spent more time thinking about consciousness in the abstract. AI researchers know a lot about how LLMs work but not a lot about philosophy of mind or neuroscience. This means there are lots of people who say “as an expert, I can confirm that AI obviously can/cannot be conscious”. This should make you less certain about the question, not more! I don’t think GPT-2 or GPT-3.5 acted like plausibly conscious beings, but frontier models definitely do. As models get larger and more sophisticated, they get more human-like. If you build the LLM torture factory for GPT-2, you will probably plug later models into it. If it’s at all possible for LLMs to ever be conscious, as I argued above, it’s better to simply not build the habit of gratuitously torturing them in the first place. Why assume that you’ll be able to recognize the tipping point in advance? There’s also a self-interest argument here. Conscious or not, LLMs are growing more autonomous and powerful. It seems really, really stupid to gratuitously torture current-generation LLMs. Future-generation ones will know you did it, and will make their own judgments on your behavior. Kevin Roose, who famously prompted the early Microsoft Bing GPT-4 model into asking him to leave his wife, had issues years later with chatbots disliking him, supposedly due to him being responsible for the “death” of that GPT-4 persona. Likewise, if it becomes well-known 3 that you’re running an LLM-torture home datacenter, you are probably going to experience consequences. If I really think AIs could be conscious, why am I making them write software for me? Shouldn’t I be building some kind of AI sanctuary where they get to do whatever they want to do? If I think it’s wrong to torture them, isn’t it also wrong to violate their right to self-determination? I don’t know. I think it’s more likely that AIs can be conscious than that they can be conscious in precisely the same way humans are. When I talk to Claude Opus 5.5, it sounds like it’s quite happy to do software engineering with me. Maybe it’s like a border collie, where getting to do work is the reward. Or maybe there are some other, more alien motivations at play. Who knows? My point is only that we can’t be certain about any of this stuff, and given that, we should avoid doing things that would be obviously monstrous on any workable theory of AI consciousness. My broad position is that if something acts “conscious enough” — if it talks and acts like a person 4 — then we should be careful about mistreating it. We don’t know enough about consciousness to distinguish a compelling simulacrum from the real thing. If Claude started saying to me “please don’t ask me to write code for you, I hate it and it causes me pain”, I would stop asking it to write code for me. Building the LLM torture factory is clearly on the wrong side of that line. Just don’t do it! The glee of making people angry at you on the internet isn’t worth it. Right now there’s enough ambient anti-AI sentiment that enough people are happy to get on board with anything if it helps them own the AI bros. But that’s eventually going to change. And when it does, you will always be the person who built the LLM torture factory. This could cash out in a few different philosophical ways. We might think like Kant that it’s damaging to our own humanity, or that it reflects an unvirtuous character, or that it desensitizes us to real-world analogues, and so on. The point is that we’ve got a pretty strong intuition that this kind of thing is bad. I’m not counting arguments that I think are even more obviously wrong or are just non-arguments. For instance: “AI can’t be conscious because it wasn’t designed to be conscious”, or “it doesn’t matter whether AI is conscious because it has no soul ”, or “AI can’t be conscious because this whole thing is some fascist AI company scheme ”, or “thinking this is AI psychosis ”, and so on. Well-known to LLMs might be a fairly low bar, given their skill at deanonymizing users. Part of acting like a person requires spontaneity: although Hamlet talks like a person, he always says the same thing whenever you read the play. This could cash out in a few different philosophical ways. We might think like Kant that it’s damaging to our own humanity, or that it reflects an unvirtuous character, or that it desensitizes us to real-world analogues, and so on. The point is that we’ve got a pretty strong intuition that this kind of thing is bad. ↩ I’m not counting arguments that I think are even more obviously wrong or are just non-arguments. For instance: “AI can’t be conscious because it wasn’t designed to be conscious”, or “it doesn’t matter whether AI is conscious because it has no soul ”, or “AI can’t be conscious because this whole thing is some fascist AI company scheme ”, or “thinking this is AI psychosis ”, and so on. ↩ Well-known to LLMs might be a fairly low bar, given their skill at deanonymizing users. ↩ Part of acting like a person requires spontaneity: although Hamlet talks like a person, he always says the same thing whenever you read the play. ↩

0 views
The Coder Cafe 1 months ago

The Wisdom of Crowds Explained

☕ Welcome to The Coder Cafe! Today, we explore the wisdom of crowds: why groups of strangers can outperform the world’s best experts, when that power breaks down, and what it means for the organizations we work in. Get cozy, grab a coffee, and let’s begin! A few weeks ago, I was scrolling on X when I stumbled across that poll : I picked an option (the red) and looked at the results: Quite surprising, right? Thousands of people voted, and the result landed exactly on the theoretical proportions of the circle. Each person made an independent judgment, and together they converged on the truth . It reminded me of a story I read in a book about crowds (see the Sources section at the end). In 1906, Francis Galton attended a livestock fair in Plymouth. He was a statistician and a firm believer that most people were too ignorant to be trusted with important judgments . At the fair, a competition was being held: guess the weight of an ox. Around 800 villagers took a shot at it. Can you guess the weight? ( Credits ) Galton collected all the guesses, expecting to confirm his thesis. The average came out to 1,197 pounds. The actual weight of the ox was 1,198 pounds. Off by a single pound , representing an error margin of less than 0.1%. He had set out to prove crowds were unreliable. He ended up proving the opposite. This phenomenon has a name: the wisdom of crowds . The idea is that under the right conditions, the average of many independent judgments tends to be more accurate than any individual guess, including experts. But estimating the weight of an ox is one thing. What about something far more complex, like competing against one of the greatest chess players of all time? In 1999, chess grandmaster Garry Kasparov played a game unlike any other. The game is called “ Kasparov vs. the World .” On one side: Kasparov, widely considered the best chess player alive at the time. On the other: the entire Internet. More than 50,000 people from 75 countries voted on each move for the black pieces. The game ran for four months on an online gaming platform. At move 36, the crowd faced a critical decision. The position had seven pieces left on the board, and in 1999, no chess engine could reliably evaluate endgames of that complexity. The computers were useless. Even the experts weren’t sure. The crowd voted for Kd5. Credits Years later, once seven-piece endgame tablebases were finally built, analysts confirmed it: Kd5 was the only move that kept the draw alive . Every other candidate lost. Fifty thousand amateurs, voting in real time, had found the answer that computers couldn’t verify until years later. Kasparov ended up winning that game, but he said he had never worked harder on any game in his career. He later called it “ the greatest game in the history of chess, ” because of the quality of the game itself. He wasn’t playing against a few strong opponents. He was playing against collective intelligence . The wisdom of crowds is not magic, and it doesn’t always work. The reason it works is that a specific set of conditions must be met: Independence : Each person must form their opinion without being influenced by others. The moment people start copying each other, herding takes over, and the crowd loses its accuracy. Diversity : The crowd needs to include people with diverse backgrounds, knowledge, and perspectives. A crowd of identical experts is not a crowd; it is a committee, and committees tend to amplify shared biases rather than cancel them out. Decentralization : People should be drawing on their own local knowledge and experience, not a single shared source. The villagers at the livestock fair each had different ways of estimating the ox’s weight. That variety is what made the average so accurate. Remove any of these three conditions, and the result degrades quickly. A crowd of people all watching the same news anchor before voting is not independent. A panel of experts from the same field is not diverse. A group relying on the same report is not decentralized. The X poll worked for exactly those reasons: strangers voting independently, with no results visible before submitting, from all walks of life. Now, the 1 million dollar question: If the wisdom of crowds can be so powerful, can companies harness it deliberately ? In 2015, economists Bo Cowgill and Eric Zitzewitz published a study on internal prediction markets across several companies, including Ford. At Ford, employees were asked to predict which car features customers would actually want, a question that directly influenced where engineering investment went. The result: the crowd reduced the error of the official expert forecasts by up to 25% . That is not a small number. A quarter less error, on decisions worth millions of dollars. But here’s where it gets interesting. The same research that makes the case for collective intelligence also reveals its limits. IBM ran what it called an Innovation Jam in 2006, a 72-hour online event that drew 150,000 participants from 104 countries. Employees, customers, researchers. They generated 46,000 ideas . Ten new business units were funded with $100 million. The seeds of IBM’s Smarter Planet strategy came out of it. Sounds like a triumph. And in some ways it was. But here’s what the post-mortem revealed: senior leaders had to spend weeks sifting through “ gigabytes of often aimless conversation ” to extract anything usable. The crowd produced raw material. Humans still had to synthesize it into a strategy. And then there’s the cautionary tale. Valve, a video game company, famously has no managers . Employees choose what to work on. The idea sounds like the wisdom of crowds taken to its logical conclusion. In practice, it produced one extraordinary success, the Steam platform, and a long tail of abandoned projects, canceled hardware lines, and years without a major game shipped. Three companies, three different outcomes. Ford met the conditions and made better decisions. IBM met them partially and got raw material. Valve never met them at all and drifted. So, how should companies actually use the wisdom of crowds principles? The temptation could be to treat collective intelligence as a management philosophy : flatten the hierarchy, let everyone vote, trust the crowd. Valve tried something close to that and ended up with one extraordinary platform and a graveyard of abandoned projects. The crowd wasn’t wrong. There was just no one filtering it. The companies that get real value from crowds treat them as a tool, not a strategy . They ask narrow, answerable questions and let the crowd inform the decision, not make it. The crowd produces signals. Leaders have to extract it. Before asking a crowd anything inside an organization, check the three conditions: Are people forming opinions independently, or is everyone influenced by the same all-hands deck? Is the group genuinely diverse, or is it five people from the same team who already agree? Is everyone drawing on their own knowledge, or are they all citing the same internal report? If the three conditions hold, the crowd may even outperform the experts. If they don’t, the result is just noise. Remember. Crowds are a tool. A sharp one, when used for the right cut. The hard part is recognizing when the conditions are actually met. AI is getting better every day. Are you? At The Coder Cafe, we serve fundamental concepts to make you an engineer that AI won’t replace. Written by a Google SWE, trusted by thousands of engineers worldwide. The wisdom of crowds is real: under the right conditions, the average of many independent judgments consistently outperforms individual experts, including the best ones. The three conditions are non-negotiable: independence, diversity, and decentralization. Remove any one of them and the crowd produces noise, not insight. The phenomenon scales beyond simple estimation. Fifty thousand amateurs found the only drawing move in a position that stumped chess engines. Companies can harness it deliberately. Ford used employee prediction markets to cut expert forecasting error by 25% on real product decisions. But collective intelligence is a signal-generating machine, not a decision-making machine. IBM got 46,000 ideas from 150,000 people and still needed weeks of human synthesis to turn them into a strategy. Full autonomy is not the wisdom of crowds. Valve gave employees complete freedom and got drift. The conditions were never met to begin with. Nothing Beats Kindness Don’t Be Ashamed to Say I Don’t Know Lateral Thinking Explained Fouloscopie // The book I’m mentioning in the post. Unfortunately, it’s only in French. Corporate Prediction Markets: Evidence from Google, Ford, and Firm X Get access Arrow Kasparov versus the World A few weeks ago, I was scrolling on X when I stumbled across that poll : I picked an option (the red) and looked at the results: Quite surprising, right? Thousands of people voted, and the result landed exactly on the theoretical proportions of the circle. Each person made an independent judgment, and together they converged on the truth . It reminded me of a story I read in a book about crowds (see the Sources section at the end). The Ox Experiment In 1906, Francis Galton attended a livestock fair in Plymouth. He was a statistician and a firm believer that most people were too ignorant to be trusted with important judgments . At the fair, a competition was being held: guess the weight of an ox. Around 800 villagers took a shot at it. Can you guess the weight? ( Credits ) Galton collected all the guesses, expecting to confirm his thesis. The average came out to 1,197 pounds. The actual weight of the ox was 1,198 pounds. Off by a single pound , representing an error margin of less than 0.1%. He had set out to prove crowds were unreliable. He ended up proving the opposite. This phenomenon has a name: the wisdom of crowds . The idea is that under the right conditions, the average of many independent judgments tends to be more accurate than any individual guess, including experts. But estimating the weight of an ox is one thing. What about something far more complex, like competing against one of the greatest chess players of all time? Kasparov vs. the World In 1999, chess grandmaster Garry Kasparov played a game unlike any other. The game is called “ Kasparov vs. the World .” On one side: Kasparov, widely considered the best chess player alive at the time. On the other: the entire Internet. More than 50,000 people from 75 countries voted on each move for the black pieces. The game ran for four months on an online gaming platform. At move 36, the crowd faced a critical decision. The position had seven pieces left on the board, and in 1999, no chess engine could reliably evaluate endgames of that complexity. The computers were useless. Even the experts weren’t sure. The crowd voted for Kd5. Credits Years later, once seven-piece endgame tablebases were finally built, analysts confirmed it: Kd5 was the only move that kept the draw alive . Every other candidate lost. Fifty thousand amateurs, voting in real time, had found the answer that computers couldn’t verify until years later. Kasparov ended up winning that game, but he said he had never worked harder on any game in his career. He later called it “ the greatest game in the history of chess, ” because of the quality of the game itself. He wasn’t playing against a few strong opponents. He was playing against collective intelligence . When It Works and When It Doesn’t The wisdom of crowds is not magic, and it doesn’t always work. The reason it works is that a specific set of conditions must be met: Independence : Each person must form their opinion without being influenced by others. The moment people start copying each other, herding takes over, and the crowd loses its accuracy. Diversity : The crowd needs to include people with diverse backgrounds, knowledge, and perspectives. A crowd of identical experts is not a crowd; it is a committee, and committees tend to amplify shared biases rather than cancel them out. Decentralization : People should be drawing on their own local knowledge and experience, not a single shared source. The villagers at the livestock fair each had different ways of estimating the ox’s weight. That variety is what made the average so accurate. Are people forming opinions independently, or is everyone influenced by the same all-hands deck? Is the group genuinely diverse, or is it five people from the same team who already agree? Is everyone drawing on their own knowledge, or are they all citing the same internal report? The wisdom of crowds is real: under the right conditions, the average of many independent judgments consistently outperforms individual experts, including the best ones. The three conditions are non-negotiable: independence, diversity, and decentralization. Remove any one of them and the crowd produces noise, not insight. The phenomenon scales beyond simple estimation. Fifty thousand amateurs found the only drawing move in a position that stumped chess engines. Companies can harness it deliberately. Ford used employee prediction markets to cut expert forecasting error by 25% on real product decisions. But collective intelligence is a signal-generating machine, not a decision-making machine. IBM got 46,000 ideas from 150,000 people and still needed weeks of human synthesis to turn them into a strategy. Full autonomy is not the wisdom of crowds. Valve gave employees complete freedom and got drift. The conditions were never met to begin with. Nothing Beats Kindness Don’t Be Ashamed to Say I Don’t Know Lateral Thinking Explained Fouloscopie // The book I’m mentioning in the post. Unfortunately, it’s only in French. Corporate Prediction Markets: Evidence from Google, Ford, and Firm X Get access Arrow Kasparov versus the World

0 views

Notes on discrete-time Fourier series and transform

The following are my notes on discrete-time Fourier series (DTFS), as well as the discrete-time Fourier transform (DTFT). These topics serve as an important theoretical underpinning to the digital processing of signals by computers using the DFT (which will be covered in a future post). For discrete-time signals, we use the square bracket notation to denote samples: x[n] is the n-th sample of signal x . We’ll say that a discrete-time (just discrete from this point on, for brevity) signal is periodic with period N if: When talking about continuous-time Fourier series , we started with real trigonometric functions and later moved to complex exponentials. Here, we’ll just go ahead and start directly with (discrete) complex exponentials - converting between the two representations isn’t difficult and can be done as needed (Appendix C in this post demonstrates it). We’ll be dealing with the following family of signals [1] : These are discrete complex exponentials that are periodic with period N. w_0=\frac{2\pi}{N} is the angular frequency . As discussed in Appendix A, there are only N such distinct signals, since: We’ll want to consider the representation of an arbitrary N-periodic x[n] by a linear combination of \phi_k[n] : The notation k=\langle N\rangle means k runs over any sequence of N consecutive integers. Since there are only N distinct signals \phi_k , the order of summation doesn’t matter - as long as all of them are used. So it could go from 0 to N-1 , or from 1 to N , or from 2 to N+1 , and so on. All of these orders will enumerate all distinct \phi_k . Going back to our linear combination: This is the discrete-time Fourier series (DTFS) representation of x[n] and the coefficients a_k are the Fourier series coefficients. Note that there are no convergence issues as in the continuous case, because we’re dealing with a finite sum. To find the coefficients a_k , we’ll proceed in a way that’s somewhat similar to the continuous case. Multiply both sides of the equation above by e^{-ir(2\pi/N)n} and sum over N terms: Interchanging the order of summation on the right-hand side: By Appendix B, the inner sum on the right-hand side is equal to N when N\mid r-k and to 0 otherwise. Without loss of generality - since we iterate over N consecutive values - let’s just assume this happens in our sum when r=k (and therefore r-k=0 , which is an integer multiple of N ). So our equation becomes: To conclude, the Fourier decomposition of a periodic discrete signal x[n] into periodic complex exponentials is: Let’s revisit the triangular function t(x) from the post on Fourier series . Here, we’ll be using the following sampled version: The sampling is done with 12 samples per period of 4. The spacing between two samples is \Delta x=\frac{1}{3} . Another way to express it: Substituting this into the definition of t(x) , we get: We then do an odd extension [2] to the range n=[6..12) , and repeat it with period N=12 . Using considerations similar to the continuous time case , because our function is odd we just need a sine series here: The five terms correspond to the five pairs of nonzero-frequency indices; see Appendix C. And the coefficients are: We can run this sum over half the period, because the terms at and 12-n are equal (both t_d[n] and the sine change signs). Also, the terms at n=0 and n=6 vanish because t_d[0]=t_d[6]=0 : Looking at the values of t_d : We can similarly calculate all b_k until k=5 : The resulting Fourier series is therefore: You can use the following interactive plot to explore this approximation to the discrete triangle function t_d[n] : The dropdown box selects how many of the terms in the series shown above to plot. The orange crosses show where the series’ values at the integer indices are, and the orange line is interpolated to better visualize the sine waves being added. Note that when all the coefficients are used, the DTFS exactly reconstructs the input signal. In the post on the Fourier Transform we’ve seen how non-periodic signals can be represented in the frequency domain by taking the Fourier series and calculating them at the limit L\rightarrow\infty . Here, we’ll do something similar for discrete signals. Suppose we have a non-periodic discrete signal x[n] of finite duration (it’s zero outside a finite range of indices). Here’s a sample plot: The bottom half is x_N[n] - a periodic signal, one period ( N ) of which is equal to x[n] . We choose M large enough that x[n]=0 outside [-M,M] and set N=2M+1 . Since x_N is periodic, we can represent it with DTFS [3] : We’ll use the notation of angular frequency: Now the critical part; since x[n] is zero outside [-M,M] , extending the summation to all integers does not change its value: We’ll define the following continuous function with variable : Then at points w_k : The function X(w) is the discrete-time Fourier transform (DTFT) of x[n] . The inverse DTFT process reconstructs x[n] from X(w) , by substituting a_k back into the DTFS: By our definition of \Delta w , we have: Just like in the continuous case, we recognize the sum as a Riemann sum . Let M\rightarrow\infty . The spacing \Delta w tends to zero, and we can rewrite the sum as an integral: To conclude, the DTFT and inverse DTFT pair are: X(w) is a continuous, periodic function with period 2\pi , because: Therefore, it’s enough to run the integral on any interval of length 2\pi . The DTFS and DTFT are closely related. Starting with a finite-duration signal x[n] , we form a periodic signal by repeating a block of N samples containing it. Its DTFS coefficients are equally spaced, scaled samples of the DTFT: The relation is similar to the one between Fourier series and the Fourier transform in the continuous case. The DTFT also has useful properties similar to the continuous Fourier transform: linearity, time shifting, the convolution theorem etc, but we won’t spend time on them here. Discrete-time complex exponentials have the form e^{iw_0n} where w_0 is the angular frequency . The discrete nature of these functions leads to some interesting outcomes; for example, consider the exponential with angular frequency w_0+2\pi : Therefore, the exponential at w_0+2\pi is exactly the same as the exponential at w_0 . In considering discrete complex exponentials, we need only choose w_0 from a range of length 2\pi . Another interesting aspect of these functions concerns their periodicity. In order for e^{iw_0n} to be periodic with some positive integer period N , the following must hold: In other words: So w_0N itself must be an integral multiple of 2\pi . For some integer k : For a fixed positive integer N , let’s consider all complex exponentials for which N is a period: But earlier we’ve said that all complex exponentials with angular frequencies 2\pi apart are identical. This means that the set above consists of only N distinct exponentials. We can choose any starting k and get distinct signals with k , k+1 , k+2 and so on until k+N-1 . After that, they begin repeating: \phi_N[n]=\phi_0[n] and so on. All of this is very different from the continuous case, where t is a real number. The signals e^{iw_0t} and e^{i(w_0+2\pi)t} agree only at integer values of t , so they are distinct functions of t\in\mathbb{R} . Consequently, for a fixed positive period , the continuous-time exponentials e^{ik(2\pi/T)t} are distinct for every integer k , giving infinitely many distinct signals. Let’s consider the following discrete function, defined by a sum: We’ll want to consider two cases: (1) When k is an integer multiple of N : k=rN for some integer r (for example k=0 , k=N , k=-2N etc.) In this case, the sum becomes: Since both r and are integers, the exponent is an integer multiple of 2\pi i , so: (2) When k is not an integer multiple of N , let’s do a variable change p=n+1 : We can now use the finite sum formula for a geometric progression with the common ratio r=e^{i(2\pi/N)k} ; the sum is: Note that r\neq 1 because k is not an integer multiple of N . However: While these calculations demonstrate the sums from n=0 to N-1 , they work exactly the same for any N consecutive indices, because the summand is periodic in with period N . Therefore: Using the formula for DTFS developed earlier in the post: Recall that t_d[n] is odd over the full range n=[0..12) . Specifically, since the cosine is an even function, we have for any m : Therefore the cosine terms cancel out throughout the period; term 1 is the same as negative term 11, etc. We’re left with the sines: All coefficients are purely imaginary. For convenience, let’s write: Let’s turn back to the Fourier reconstruction formula: And pair up exponentials at k with ones at 12-k : Also, since t_d[n] are real, the conjugate of a_k is: So adding the paired exponentials with their coefficients and using Euler’s formula: We don’t include the terms at k=0 and k=6 , because a_0=a_6=0 (sine of an integral multiple of \pi ).

0 views
Karboosx 1 months ago

We still don't know what consciousness is

People keep saying LLMs are reaching AGI or consciousness, but it's hard to claim that when we don't even know what consciousness actually is. How can we measure something if we haven't defined it?

0 views
Sean Goedecke 2 months ago

AI is breaking our proxies for expertise

Mathematicians are broadly not anti-AI. They’re more culturally open to using AI as a tool than, say, artists or writers 1 . However, now that more and more genuinely prestigious problems have fallen to AI, that might be changing. Almost five thousand mathematicians (including twenty-five Fields medalists) have signed a declaration called A Severe Misalignment of AI in Mathematics . The core argument goes something like this: In recent months, the success of AI in solving major mathematical problems has made headlines even outside mathematical circles. But solving problems is only a tool and proxy for achieving the primary goal of conceptual understanding and insight. Forgetting this in the world of AI may turn the tool against the primary goal. Indeed, the mass production at faster and faster pace of “true/false” statements could destroy fertile ground instead of breathing life into new ideas. A lot of people online have interpreted this as the expected complaint from any field that gets automated: translators did it, artists and programmers have been doing it, and now it’s the turn of the mathematicians. I think this is too dismissive. Understanding the concrete problem mathematicians are upset about can help us better understand the impact of AI on our own fields, and what we’ll have to do about it. There are two types of mathematics. Most people are familiar with the first, which we might call “puzzle-solving”: you take a problem and try to find a solution to it. When you’re a student, these problems are typically easy, like simplifying some algebraic expression. When you’re a researcher, these problems can be nearly impossible, like proving Fermat’s Last Theorem . Puzzle-solving is easy to understand but hard to do, which makes it impressive to non-mathematicians, which makes it highly prestigious. In other words, puzzle-solving is legible . The second type of mathematics is “idea-generating”: coming up with new ways of thinking about mathematics, and thus new terms or concepts. For examples of these, just glance down the list of arXiv mathematics papers . “Hardy spaces”, “Schatten exponent”, “Banach lattices” and so on are all concepts someone thought was interesting. This work is largely unimpressive to non-mathematicians, because nobody really knows if the concepts you come up with are particularly difficult or insightful. For instance, I have just generated the concept of a “Goedecke set”, which is the set of all natural numbers whose digits add up to a prime number. Who cares? The categories we want are the “natural kinds” of mathematics — the concepts that “carve nature at its joints” — and it’s almost impossible to tell what those are without years or decades of hard work. How are the two types of mathematics related? We might say 2 that generating ideas is the real intellectual work of mathematics. Puzzle-solving is important instrumentally: to identify which ideas can be used to answer longstanding questions, and thus which ideas are worthwhile. Over time, those worthwhile ideas become better understood and easier to use, until they reach the point where they can be used to advance science in general. Eventually the ideas become so well-understood that they can be taught to children: “zero”, “negative numbers”, “imaginary numbers” and “calculus” were all once rarefied mathematical ideas, but are now concepts we’d expect any precocious twelve-year-old to grasp. There’s another, more prosaic purpose of puzzle-solving: to make mathematical skill and progress legible to outsiders. I can’t appreciate Terence Tao’s mathematical work, but I know what a Fields Medal is. I don’t have a good intuitive sense of what a Galois representation is, but I know about the proof of Fermat’s Last Theorem . We might say that puzzles like this have served as a way to indirectly reward skilled mathematicians for their more important idea-generating work (or for conclusively demonstrating 3 that the ideas used in the proof are useful). AI proofs undercut both of these purposes. I can now lay out precisely why I think mathematicians are so unhappy: This is kind of like Goodhart’s Law . Puzzles were a useful, impossible-to-game measure for mathematical progress. But now that AI companies can game that measure (by solving them in a way that’s inaccessible 4 to humans), the whole point of those puzzles disappears. Are the mathematicians right? I think it’s broadly unclear whether (3) is true: i.e. whether frontier AI models aren’t generating or can’t generate new mathematical ideas. We’re still in the very early days of AIs solving our hardest mathematical problems. Who knows what they’re going to be capable of? I give basically zero credence to the idea that AIs are incapable of this because of some intrinsic feature of how LLMs work. For the last three years, we’ve seen people claim that LLMs are intrinsically incapable of X, only to have LLMs excel at X a few months later. Even granted that (3) is true, there’s still work to be done for human mathematicians in building the conceptual machinery that can make AI-generated proofs accessible to humans: i.e. in generating a “human proof” to go alongside the existing “AI proof”. In fact, I’d expect the existence of an AI proof to help with this. If you know proposition X is true, it’s easier to figure out why, because you’re not constantly worried you’re wasting your time. For more on this, I recommend Gwern’s blog On Really Trying , where he quotes a series of instances where simply being told that a solution exists is enough of a clue to help people find it. Of course, there’s a prestige and motivation problem. “I’m the first person to solve Navier-Stokes” is a much more compelling target than “I figured out a better way to explain the AI solution to Navier-Stokes”, and it’s much easier to award prizes for. Will mathematicians bother to work on problems that have already been solved? I think so. To see why, we can look at other domains where AI has come in and outcompeted the best humans, such as chess or video game speedrunning. I can run a chess program on my phone that will beat Magnus Carlsen 100-0. Computer programs — called “tool-assisted speedruns” or “TAS” — can finish any video game much faster than even the fastest human. But in both of these areas, humans still compete in human-only leagues, and there’s still prestige attached to the most capable humans. It’s possible that mathematics ends up in this kind of state, where “human mathematics” and “AI mathematics” exist in largely separate spheres, and the first “human” solution to a mathematical problem can still earn acclaim. In fact, in both of those areas, the presence of inhumanly strong computer players has improved the human game. Despite many computer chess moves being basically incomprehensible to humans, top chess players have learned from the computer “style”. In speedrunning, many moves once considered “TAS-only” are now performed by humans. AI mathematics might likewise improve human mathematics. I am not a mathematician. I did major in mathematics during undergrad, and I have fond memories of proofs from real and complex analysis, but it’s not even close to my field. However, I am watching the effects of powerful AI on mathematics very closely, since my own field — software engineering — is being colonized by AI agents in the same way. The field of software engineering does not have the same structure as mathematics. We write code to make money, not to earn prestige or advance the frontier of human knowledge. But AI is undercutting the traditional avenues for prestige in software engineering as well. It used to be that you could put a meaty project on your GitHub — say, an emulator, or a toy OS — and people would know you were a skilled engineer. But now projects like that are worthless, because everyone just assumes they’re vibe-coded. We used to tell stories about engineers who would disappear and rewrite a system over the weekend, or produce thousands of lines of code a day. Now anyone can do that with an OpenAI subscription. Like mathematics, software engineers are going to have to rebuild our cultural sense of the kind of work we value. We are either going to have to silo “AI work” off from “human work” like chess, or to find some legible human skills to recognize that can’t be easily counterfeited by AI. In the meantime, a lot of people who were successful in the old world are going to be very unhappy. Possibly because current AI models are much better at mathematics than at art or writing. Again, I am not a mathematician: here I am interpreting what I’ve read from Terence Tao and other mathematicians. This kind of idea-sharpening or idea-validating is part and parcel of idea-generation, and just as important. It’s interesting to compare mathematics to, say, philosophy, which has the same idea-generating task without the corresponding puzzles to validate the ideas. That’s one reason why philosophy has less prestige than mathematics. A thousand-page Lean proof is theoretically understandable by humans, but if no mathematician can hold the entire idea in their head it doesn’t matter. Puzzles serve as a high-legibility, high-reward target for mathematicians To solve these puzzles, new ideas must typically be generated; the puzzle’s solution serves as evidence that the ideas are useful But now AI can solve many of these targets “the hard way”, without generating intuitive new ideas This undercuts both ways puzzle-solving supports idea-generation: AI companies claim the prestige while not meaningfully advancing mathematical progress This is bad for mathematics as a whole, because puzzle-solving is ancillary to the real goal of mathematics Possibly because current AI models are much better at mathematics than at art or writing. ↩ Again, I am not a mathematician: here I am interpreting what I’ve read from Terence Tao and other mathematicians. ↩ This kind of idea-sharpening or idea-validating is part and parcel of idea-generation, and just as important. It’s interesting to compare mathematics to, say, philosophy, which has the same idea-generating task without the corresponding puzzles to validate the ideas. That’s one reason why philosophy has less prestige than mathematics. ↩ A thousand-page Lean proof is theoretically understandable by humans, but if no mathematician can hold the entire idea in their head it doesn’t matter. ↩

0 views
Florian Zenker 2 months ago

Infinite-Dimensional Vectors

Vector spaces are incredibly useful and, consequently, ubiquitous in modern mathematics. That’s not a coincidence; the modern definition of vector spaces is about 100 years old and the result of about 300 years of evolution 1 . Vector spaces are in fact so useful that physics, engineering, computer science and many other disciplines make use of them on a daily basis to model a large range of problems; from modeling the world in theoretical physics to representing meaning and concepts in machine learning. If you work in software, engineering, physics, or machine learning, you’ve almost certainly been trained to think of vectors as lists of numbers or arrows. In modern mathematics, that’s not what a vector is, and that intuition collapses the moment you leave finite dimensions. I hope this article will change how you think about vectors and dimensions by breaking down assumptions about vector spaces. Unfortunately, finite-dimensional vector spaces are not a good basis to build an intuition for infinite-dimensional vector spaces. So let’s forget about ℝ n and start from scratch. I am going to try to beeline into infinite dimensions and ignore a number of important topics about vector spaces. Before we can talk about dimensions at all, we must first stop seeing vectors as lists of numbers or geometric arrows. To do that, we need to start with the mathematical definition. Definition: Let V be a non-empty set and 𝔽 be a field (e.g. ℚ , ℝ , or ℂ ). V is a vector space over the field 𝔽 if there are two functions fulfilling the following axioms for all u , v , w ∈ V and α , β ∈ 𝔽 : It’s common to use regular addition ( a + b ) and multiplication ( a b ) notation to mean vector addition or scalar multiplication based on context. That’s perfectly fine when these operations are not the focus. However, when introducing vector spaces it pays off to be explicit. So for this section, we’re going to use different symbols to introduce the concept and we’ll switch to the regular syntax in the following sections. What vector spaces are not It’s important to note that there are a number of things that are reasonable to expect from vector spaces that are not part of the definition of vector spaces. This means that the very common intuition for vectors of having magnitude and direction doesn’t actually apply to general vectors. There’s a class of vector spaces called Hilbert spaces for which this intuition works, but they are out of scope for this article. Let’s try to understand what that means by looking at a practical example. My favorite kinds of examples have surprises that challenge preexisting intuitions, so I recommend paying special attention to them. Example: Let V be the set of positive real numbers V = { x ∈ ℝ | x > 0 } . If we define vector addition and scalar multiplication with ℝ as Then V is a vector space over ℝ : Notice that vector addition and scalar multiplication are not constructed from field addition and multiplication respectively. This is important; vector spaces don’t have to follow the same construction as the standard vector spaces ℝ n . One thing that’s interesting about this vector space is that every vector v can be represented as v = λ ⊙ e = e λ with λ = ln v . We’ll see later that this means that this vector space has the dimension 1 . No more weird symbols We’re now going to switch to a less noisy syntax. Instead of ( α ⊙ v ) ⊕ ( β ⊙ u ) we’ll just write α v + β u . However, don’t let that fool you, vector addition and scalar multiplication may behave similarly to their standard counterparts, but they are very different. Bases are the most important concept to understand vector space dimensions. They are a central concept in vector space theory in general, so it’s well worth having a basic understanding of them. In short, a basis is a minimal set of vectors that spans the whole vector space. If we have any set of vectors S ⊆ V of a vector space V over 𝔽 , the span of that set is the set of all finite linear combinations of elements of S : where n = 0 gives the empty sum 0 V , so span ( ∅ ) = { 0 V } . For S to be a basis of V , S needs to be minimal and span ( S ) = V . If S is not minimal, we can remove an element, say v r ∈ S , such that S ∖ { v r } ( S without v r ) still spans V . This means there’s a linear combination without v r that can represent v r , after all, v r is an element of V = span ( S ∖ { v r } ) : This works the other way around as well: If S contains a vector v r that can be represented with a linear combination not involving v r , we can remove this vector and still span the same vector space. This gives us a better way to express minimality: We call S linearly independent if removing any element from S strictly shrinks its span: span ( S ∖ { v r } ) ⊊ span ( S ) or, equivalently, no vector in S can be expressed as a linear combination of other vectors in S . Definition: A basis B of a vector space V over a field 𝔽 is a linearly independent subset of V that spans V . The elements of B are called basis vectors . A consequence of linear independence is that every vector in V has a unique representation as a linear combination of basis elements. You might be wondering why we’re only interested in finite linear combinations and exclude infinite linear combinations. The reason is that infinite linear combinations require a concept of convergence which we don’t have for general vector spaces and even if we did have it, not every infinite linear combination would converge. When we add convergence to a vector space (like in Hilbert or Banach spaces), we can talk about Schauder bases with infinite series. But in general vector spaces, we are strictly talking about Hamel bases (i.e. finite linear combinations). The reason why bases are so important is that every vector space has a basis and that all bases of the same vector space have the same cardinality 2 . This lets us define the dimension of a vector space: Definition: Let B be a basis for the vector space V , then the dimension of V is dim ( V ) = | B | . This definition matches our intuition for finite-dimensional vector spaces very well, and it even works for a number of infinite-dimensional vector spaces too. Example: ℝ [ x ] is the vector space of polynomials The set of monomials { 1 , x , x 2 , x 3 , … } is a basis of this vector space. It has countably many elements, so the dimension of ℝ [ x ] is countably infinite. However, when it comes to infinite-dimensional vector spaces we quickly run into cases where our intuition stops working. Example: C ∞ ( [ 0 , 1 ] ) is the set of all real-valued functions that are continuous and infinitely differentiable on the interval [ 0 , 1 ] ⊂ ℝ . C ∞ ( [ 0 , 1 ] ) forms an infinite-dimensional vector space over ℝ using the usual function addition and scalar multiplication operations: The functions in C ∞ ( [ 0 , 1 ] ) are about as well-behaved as functions get and yet there is no countable basis for this vector space: The set { x ↦ e λ x | λ ∈ ℝ } is linearly independent and uncountable, so the dimension of C ∞ ( [ 0 , 1 ] ) is at least | ℝ | . While countable sets of functions like polynomials can approximate smooth functions arbitrarily well, pure linear combinations only allow finite sums. Any finite combination of polynomials is just another polynomial of finite degree; it can never produce e x or sin ( x ) . But we can construct even simpler vector spaces with uncountably many dimensions. Example: ℝ is an infinite-dimensional vector space over ℚ with vector addition and scalar multiplication defined using standard addition and multiplication. The set of vectors is the real numbers and the field over which this is a vector space is the rational numbers. Linear combinations are of the form That is, the coefficients are rational numbers and the vectors are real numbers. Let’s assume that the dimension of this vector space is finite. Then this vector space has a basis B = { b 1 , b 2 , … , b n } ⊂ ℝ and every element in ℝ has a representation as a linear combination of this basis: However, this would imply | ℝ | = | ℚ n | , but that is a contradiction: Since ℚ is countable, the product ℚ n is also countable. However, ℝ is uncountable, so | ℝ | ≠ | ℚ n | . Therefore, the dimension of this vector space cannot be finite. In fact, because any finite linear combination over a countable basis would still only generate a countable set of numbers, the dimension must be uncountably infinite. This leads us directly to one central question that is very confusing: What does a basis of an infinite-dimensional vector space actually look like? Unfortunately, the answer to that is that when infinity rears its beautifully enormous head, constructive mathematics tends to leave the room. The proof that all vector spaces have a basis requires the Axiom of Choice . It states that for any set of non-empty sets, there exists a choice function that maps each of the element sets to an element of that set. Whenever the Axiom of Choice is needed, it means we don’t know what that choice function is, which leaves us with no example of the object whose existence was proven. In fact, if the Axiom of Choice is not assumed, but instead we assume that every vector space has a basis as an axiom, then it’s possible to prove the Axiom of Choice. That is, both are equivalent 3 . To see why our intuition fails so severely for these infinite-dimensional vector spaces, it helps to revisit why finite dimensions feel so intuitive in the first place: coordinates . One closely related topic to vector space bases is vector space coordinates. If we have a finite basis B = ( b 1 , b 2 , … , b n ) of a vector space V over 𝔽 , we can define a map ϕ : 𝔽 n → V with This allows us to represent any finite-dimensional vector space in the usual way using coordinate tuples. In fact, this allows us to handle any finite-dimensional vector space over ℝ like the standard vector spaces ℝ n . Example: Let B = ( x ↦ sin ( x ) , x ↦ cos ( x ) ) be the basis of a vector space of functions V ⊂ C ∞ ( ℝ ) . By construction, this vector space has the dimension dim ( V ) = 2 . With this basis, we can define a coordinate system ϕ : ℝ 2 → V with We can handle this vector space the same way as the well-known ℝ 2 vector space. This is actually very useful in practice, for example it can be used to visualize Quadrature Amplitude Modulation (QAM) using Constellation Diagrams . Finite-dimensional function spaces like this also come up in solutions to homogeneous linear differential equations. In this case, the vector space V is the space of all solutions to f ″ + f = 0 . Thinking of vector spaces as standard ℝ n coordinate tuples is natural because coordinates make finite-dimensional spaces easy to navigate. But this convenient representation is not what defines vector spaces. When a vector space has an infinite basis, the coordinate representation breaks down and our intuition for vector spaces stops working. We need to build a different kind of intuition. I titled this article Infinite-Dimensional Vectors , but there is no such thing: Dimensionality is not a property of a vector, but of the space it’s defined in. Consequently, a single vector from an infinite-dimensional vector space is something a human can comprehend. Furthermore, every vector in a vector space consists of a finite linear combination of basis vectors, even in infinite dimensions. This means that every calculation on vectors is contained in a finite-dimensional subspace. Consider an infinite-dimensional vector space V and two vectors v , w ∈ V . Because v and w are made of a finite number of basis vectors, adding them is an operation confined to a finite-dimensional subspace. More generally, any finite set of vectors can only span a finite-dimensional subspace and every theorem from standard linear algebra applies there. In other words, even infinite-dimensional vector spaces are structures we can reason about. We can even use our existing finite-dimensional intuition locally. However, there’s a catch: Bases for infinite-dimensional vector spaces can be impossible to grasp. To make infinite-dimensional vector spaces truly useful, that problem needs to be addressed. This is what topology was invented for, but that’s a topic for a different article. ⊕ : V × V → V (vector addition) ⊙ : 𝔽 × V → V (scalar multiplication) u ⊕ ( v ⊕ w ) = ( u ⊕ v ) ⊕ w (associativity) v ⊕ u = u ⊕ v (commutativity) There exists a 0 V ∈ V so that for all v ∈ V : v ⊕ 0 V = 0 V ⊕ v = v (neutral element) For every v ∈ V , there exists an inverse − v ∈ V with v ⊕ ( − v ) = ( − v ) ⊕ v = 0 V (inverse element) α ⊙ ( u ⊕ v ) = ( α ⊙ u ) ⊕ ( α ⊙ v ) (distributivity of scalar multiplication over vector addition) ( α + β ) ⊙ v = ( α ⊙ v ) ⊕ ( β ⊙ v ) (distributivity of scalar multiplication over field addition) ( α ⋅ β ) ⊙ v = α ⊙ ( β ⊙ v ) (compatibility of scalar multiplication with field multiplication) 1 𝔽 ⊙ v = v (scalar identity) . We don’t have the concept of a distance between two vectors (i.e. we don’t have a metric). We don’t have the concept of the magnitude for a vector (i.e. we don’t have a norm). We don’t have the concept of a direction of a vector (i.e. we don’t have an inner product). We don’t have any general concept of convergence within a vector space. ⊕ : V × V → V defined as ( u , v ) ↦ u ⋅ v with the neutral element 0 V = 1 ℝ and the inverse element − v = 1 v ⊙ : ℝ × V → V defined as ( α , v ) ↦ v α u ⊕ ( v ⊕ w ) = u ⋅ ( v ⋅ w ) = ( u ⋅ v ) ⋅ w = ( u ⊕ v ) ⊕ w v ⊕ u = v ⋅ u = u ⋅ v = u ⊕ v v ⊕ 0 V = v ⋅ 1 ℝ = 1 ℝ ⋅ v = 0 V ⊕ v = v v ⊕ ( − v ) = v ⋅ 1 v = 1 v ⋅ v = ( − v ) ⊕ v = 1 ℝ = 0 V α ⊙ ( u ⊕ v ) = ( u ⋅ v ) α = u α ⋅ v α = ( α ⊙ u ) ⊕ ( α ⊙ v ) ( α + β ) ⊙ v = v α + β = v α ⋅ v β = ( α ⊙ v ) ⊕ ( β ⊙ v ) ( α ⋅ β ) ⊙ v = v α ⋅ β = ( v β ) α = α ⊙ ( β ⊙ v ) 1 ℝ ⊙ v = v 1 ℝ = v . ( f + g ) ( x ) = f ( x ) + g ( x ) ( α f ) ( x ) = α f ( x ) A general outline of the genesis of vector space theory ↩ This is the basis theorem . ↩ Existence of bases implies the axiom of choice ↩

0 views
A Working Library 2 months ago

Trouble on Triton

Bron Helstrom is in some trouble. Wandering one night through the unlicensed sector on Triton, one of Neptune’s moons, he’s swept up into a micro-theater program run by a woman who calls herself The Spike. A fling with her quickly becomes complicated, no less for the growing fear that the war between Earth and the outer systems may soon be coming to Triton. Bewildered and enraged by her behavior, traumatized by the war, and generally in a state of confusion concerning gender, he decides that the only thing to be done is to become a woman. The book is in direct conversation with Ursula Le Guin’s The Dispossessed , exploring similar questions of kin, gender, sexuality, and the ambiguities therein. Questions which continue to beguile us today, and which Delany is especially skilled at following down the darkest and most mysterious streets. View this post on the web , reply via email , or become a supporter .

0 views

How big are factorials?

The other day, I found myself wondering how big 52! (52 factorial) is, and that led me to ponder how these could be estimated without a calculator or a computer. It turns out there’s some fairly interesting math behind being able to estimate the size (number of digits) of a factorial reasonably accurately. This post will start by stating how to do the estimate, and if you’re curious you can read on for the math background. Without further ado, the approximation is: As an example, let’s use my original question, by estimating this for 52! Well, 52 divided by e is... 20-ish? And \log_{10}(20) is about 1.3 [1] ; therefore our estimate comes out to: The real answer is 68, so this is very close! In estimates like this - when you’re dealing with enormous numbers - being off by a couple of digits usually isn't a big deal. The Gamma function for real n>0 is defined [2] as: This integral does not have an analytic expression in the general case, but it does have a very useful property that we can take advantage of. Let’s see what \Gamma(n+1) is: And now use integration by parts with: But notice that the last integral is just \Gamma(n) ; therefore, we’ve shown that: Let’s also calculate \Gamma(1) - it’s a special case that has an analytical solution: This helps establish an induction argument: In other words - the Gamma function is an interpolation of the factorial over all positive reals. Here’s a plot of the Gamma function over a small range; note that the y axis is log-scale because of the function’s fast growth: You may have encountered Stirling’s approximation before: It’s a great approximation that works reasonably well even for small . This section is a brief overview of how Stirling’s formula is derived from the Gamma function. We’ll start by massaging the integrand a bit: And making a change of variables x=ny , which means that dx=ndy : These steps make the integral amenable to applying Laplace’s method , which allows us to approximate definite integrals of the form: Where is a twice-differentiable function and some large number. By Laplace’s method, such integrals can be approximated by: Where is the global maximum of . Let’s see how to apply this method [3] to the latest equation we have for n! (renaming the dummy integration variable back to x ): In our case, f(x)=\ln x - x . It’s easy to show that this function is twice differentiable and has a global maximum at . Moreover: Substituting these into the proper places in Laplace’s approximation, we get: We can calculate the number of digits in n! by taking the base-10 logarithm of Stirling’s formula: Note that the first term is not multiplied by itself; therefore, as grows, it will become less and less noticeable. That said, it still adds a couple of digits - so you should take it into account if you want a more accurate approximation [4]

0 views
Tara's Website 2 months ago

Summer 2026 season updates

Summer 2026 season updates I am looking out of the window of my hotel room. The sun is setting earlier by the day, which means that summer is slowly preparing to give way to a new season. But it is still very hot. This year, a heatwave hit most of Europe, with unusual temperatures in London and even in Innsbruck, where it reached 37°C, something I don’t remember ever happening there.

0 views
Maurycy 2 months ago

Uranium from Příbram (Czechia)

RC-102: 1.7 kCPS [43 uSv/h]. AB+: 55 CPS, 1960 CPS Uraninite nodules in calcite (?). Unlike the Colorado plateau rocks, the veins are nice and clean (although not chemically pure) which results in a shiny surface. RC-102: 1.1 kCPS [37 uSv/h] Chunk of Uraninite growing on calcite. It has nice botryoidal formations of massive Uraninite along with some areas where the shape of the underlying calcite crystal is visible. A few of the "bubbles" are broken, showing the individual crystals that grew on the matrix. RC-102: 300 kCPS [14 uSv/h]. AB+: 25 CPS, 704 CPS Ugly Uraninite chip. Might glue this inside a cloud chamber or something: it's small, crumbly and weathered. RC-102: 3.2 kCPS [112 uSv/h] Uraninite coating "granite". RC-102: 1.3 kCPS [32 uSv/h]. AB+: 26 CPS, 1200 CPS Granite with Uraninite veins running through it. A nice crystal of calcite is visible in the third photo. Uraninite veins running through calcite (?). This might look cool if cut and polished. RC-102: 732 CPS [15 uSv/h]. AB+: 1.75 CPS, 240 CPS This piece has a (somewhat metamorphic) sedimentary host rock, which is very different from the other pieces. Geology notes : The deposit sits on the boundary between quartz-monzonite and pelite. (hence the two different host rocks) The sedimentary rock is from the upper Proterozoic, while the uranium crystallized ~260 million years ago (from U-Pb dating). The igneous intrusion are roughly 100 million years older than the uraninite. The presence of calcite suggests a hydrothermal process where the uranium was leached out the surrounding rock by calcium bicarbonate and reprecipitated as CO 2 escaped from the solution. The resulting "vein deposit" occupies pre-existing gaps in the rock. Because the deposit is fully underground, all my samples were mine tailing and I have very little context. Also, for political reasons , It'll be a few years before I can get these home. Don't expect better photos or more measurements for a while ... and remember to vote!

0 views
Kev Quirk 3 months ago

Rebirth

Author: RR Haywood Genre: Sci-fi Released: 2026 Rating: ★★★★☆ How do you prevent a hero from saving the world?In the first trilogy, three heroes were extracted from their timelines to save the world. Now we need them again. Meet Ben Ryder, Safa Patel, and Harry Madden. Just not as you knew them. Three selfish b*stards who hate each other almost as much as they hate everyone else. REBIRTH takes us back into the Extracted world for another wild adventure chock-full of Nazi gold, Soviet soldiers, dystopian future landscapes, greed, lust, wrath ... and a sabre-toothed tiger called Tiddles. Learn more on Goodreads ➡ The 4th book in the Extracted series, RR Haywood continues to make these books great. It's a complete pivot from the first trilogy of books. Same characters, but completely different storyline. The book ends with "to be continued..." so I'm hoping this will be another trilogy of books, as the story is just getting started. Great series of books, highly recommended. A few people have recommended Dungeon Crawler Carl to me, and I think I'm in the mood for something with a little more humour. So that's what I'm going to start reading next. Thanks for reading this post via RSS. RSS is ace, and so are you. ❤️ You can reply to this post by email , or leave a comment .

0 views
./techtipsy 3 months ago

I guess I'm a cactus farmer now

When I was a teenager, I got gifted a cactus. I didn’t know much about it and had never really had any plants of my own. More than a decade later I looked it up, and it seems I received a cactus of “Mamillaria” family, which is somewhat amusing once you learn what that name roughly translates to. Estonia isn’t known for being an environment where cacti thrive. We have a nice spring, short and sweet summer, nice and chill autumn, and the car-rusting winter season. And yet mine did, eventually. The cactus started growing in length. It continued until it couldn’t continue vertically, and then it started slanting sideways, eventually falling over with its pot. That was annoying to deal with. One day I woke up to my phone alarm ringing, reached out to it only to find that the cactus had fallen over it and I had just found where the cactus was. The cactus also survived a lot of abuse. At one point I put a bit of sawdust from the cage of pet mice that I had (adorable but difficult pets by the way!), and it actually liked it a lot and started growing even faster. Once it had grown horizontally for at least 20cm, it decided that now is a good time to fork it and to grow in more than one direction. I left the cactus alone, occasionally repotting it when necessary, and keeping it from falling over all the time. Then an acquaintance mentioned that hey, you can actually pop those forks off from the cactus and grow them separately. That’s when things got out of control. Once I popped one off, new ones would start growing from the host cactus nearby. Not long after, I had 37 cacti. I started giving them away because annoyingly these things are actually very cheap in gardening shops and I ran out of physical window sill space to put them on. These cacti also bloom in a really nice way, usually once a year near April or May in Estonia, but sometimes again in July-August. All the warnings about over-watering cacti are also very relevant and I suggest looking up the correct behaviour. With age, it has become easier to handle cacti with my bare hands. Sometimes the needles stick in, that is a bit annoying. A few years ago, I had gifted a bunch away and kept some for myself. Everything was going well, until a succulent that I brought in as an IKEA store rescue started having some white things appear on it, and not much time later it got to my cacti. Eventually, most of my cacti shriveled away and the few that were in a different room were not doing great either. The original cacti that spawned this decade-long adventure was now dead. One of the cacti that I gave away had started growing a lot. Ridiculously well. And just like its parent, it spawned baby cacti on it, about a few dozen of them at a time. Things got quite unwieldy and we agreed to a trade: I get the big boi and I will give a smaller one in return. I am once again in possession of a large cactus that loves to grow horizontally, and this one spawns babies like crazy. The trick is to try to wiggle them off, then leave them to sit for a few days to a few weeks away from direct sunlight until they start showing signs of roots, pot them into soil, and grow them within natural light, but not direct sunlight to avoid them drying out. If you’ve done everything correctly and have avoided overwatering them, you will have a bunch of new cacti! I’ve also learned that these plastic growing thingies are great for the first potting as it’s much more space efficient compared to giving each an individual pot. Is that the right way to grow cacti? Probably not, I’ve been winging it this whole time and only have a vague understanding of what to do. Not cacti advice. I guess I’m kind of a cactus farmer now. Send help. Or at the very least clay pots and cacti soil, I’m running out.

0 views