# set theory

Published articles for set theory.

This is one page of public article previews, not the complete archive. Follow Next page to continue. Summaries are not the original full articles.

## Integer Set Library (ISL) - A Primer

DevFeed: [Integer Set Library (ISL) - A Primer](<https://devfeed.tech/articles/integer-set-library-isl-a-primer-40491.md>)

Original publisher: [Read original article](<https://www.jeremykun.com/2025/10/19/isl-a-primer/>)

Published: 2025-10-19T20:14:22Z

Content type: tutorial

Language: en

Sources: [Jeremy Kun](<https://devfeed.tech/sources/jeremy-kun.md>)

Topics: [Library](<https://devfeed.tech/topics/library.md>), [Optimization](<https://devfeed.tech/topics/optimization.md>), [compilers](<https://devfeed.tech/topics/compilers.md>), [Open Source](<https://devfeed.tech/topics/open-source.md>), [mlir](<https://devfeed.tech/topics/mlir.md>)

Tags: [code](<https://devfeed.tech/tags/code.md>), [compilers](<https://devfeed.tech/tags/compilers.md>), [isl](<https://devfeed.tech/tags/isl.md>), [library](<https://devfeed.tech/tags/library.md>), [loops](<https://devfeed.tech/tags/loops.md>), [mathematics](<https://devfeed.tech/tags/mathematics.md>), [mlir](<https://devfeed.tech/tags/mlir.md>), [open-source](<https://devfeed.tech/tags/open-source.md>), [optimization](<https://devfeed.tech/tags/optimization.md>), [polyhedral-optimization](<https://devfeed.tech/tags/polyhedral-optimization.md>), [programming](<https://devfeed.tech/tags/programming.md>), [set-theory](<https://devfeed.tech/tags/set-theory.md>)

### AI overview

This primer introduces the Integer Set Library (ISL), an open-source C library that implements core algorithms for polyhedral optimization. It focuses on representing integer sets and relations, manipulating them, and the relationship between ISL and MLIR's Fast Presburger Library.

### Source excerpt

Polyhedral optimization is a tool used in compilers for optimizing loop nests. While the major compilers that use this implement polyhedral optimizations from scratch,1 there is a generally-applicable open source C library called the Integer Set Library (ISL) that implements the core algorithms used in polyhedral optimization. This article gives an overview of a subset of ISL, mainly focusing on the representation of sets and relations and basic manipulations on them.

## Methods of Proof -- Direct Implication

DevFeed: [Methods of Proof -- Direct Implication](<https://devfeed.tech/articles/methods-of-proof-direct-implication-40303.md>)

Original publisher: [Read original article](<https://www.jeremykun.com/2013/02/16/methods-of-proof-direct-implication/>)

Published: 2013-02-16T12:56:53Z

Content type: tutorial

Language: en

Sources: [Jeremy Kun](<https://devfeed.tech/sources/jeremy-kun.md>)

Topics: [Math and Logic](<https://devfeed.tech/topics/math-and-logic.md>), [Mathematics](<https://devfeed.tech/topics/mathematics.md>), [Learning](<https://devfeed.tech/topics/learning.md>)

Tags: [contrapositive](<https://devfeed.tech/tags/contrapositive.md>), [direct-implication](<https://devfeed.tech/tags/direct-implication.md>), [induction](<https://devfeed.tech/tags/induction.md>), [mathematics](<https://devfeed.tech/tags/mathematics.md>), [methods-of-proof](<https://devfeed.tech/tags/methods-of-proof.md>), [set-theory](<https://devfeed.tech/tags/set-theory.md>), [syntax](<https://devfeed.tech/tags/syntax.md>), [techniques](<https://devfeed.tech/tags/techniques.md>)

### AI overview

This tutorial introduces a series on mathematical proof techniques for programmers and begins with direct implication. It presents four basic methods--direct implication, contradiction, contrapositive, and induction--and uses set theory to introduce notation and practice.

### Source excerpt

I recently posted an exploratory piece on why programmers who are genuinely interested in improving their mathematical skills can quickly lose stamina or be deterred. My argument was essentially that they don't focus enough on mastering the basic methods of proof before attempting to read research papers that assume such knowledge. Also, there are a number of confusing (but in the end helpful) idiosyncrasies in mathematical culture that are often unexplained.

## Probability Theory -- A Primer

DevFeed: [Probability Theory -- A Primer](<https://devfeed.tech/articles/probability-theory-a-primer-40298.md>)

Original publisher: [Read original article](<https://www.jeremykun.com/2013/01/04/probability-theory-a-primer/>)

Published: 2013-01-04T13:45:54Z

Content type: tutorial

Language: en

Sources: [Jeremy Kun](<https://devfeed.tech/sources/jeremy-kun.md>)

Topics: [math](<https://devfeed.tech/topics/math.md>), [Statistics](<https://devfeed.tech/topics/statistics.md>), [Machine Learning & Artificial Intelligence](<https://devfeed.tech/topics/machine-learning-artificial-intelligence.md>)

Tags: [expectation](<https://devfeed.tech/tags/expectation.md>), [mathematics](<https://devfeed.tech/tags/mathematics.md>), [primer](<https://devfeed.tech/tags/primer.md>), [probabilistic](<https://devfeed.tech/tags/probabilistic.md>), [probability-theory](<https://devfeed.tech/tags/probability-theory.md>), [random-variables](<https://devfeed.tech/tags/random-variables.md>), [set-theory](<https://devfeed.tech/tags/set-theory.md>), [statistics](<https://devfeed.tech/tags/statistics.md>), [theory](<https://devfeed.tech/tags/theory.md>), [variables](<https://devfeed.tech/tags/variables.md>), [variance](<https://devfeed.tech/tags/variance.md>)

### AI overview

A primer on finite probability theory that introduces probability spaces, random variables, terminology, and basic results using naive set theory. It emphasizes mathematical formalism rather than real-world applications.

### Source excerpt

It is a wonder that we have yet to officially write about probability theory on this blog. Probability theory underlies a huge portion of artificial intelligence, machine learning, and statistics, and a number of our future posts will rely on the ideas and terminology we lay out in this post. Our first formal theory of machine learning will be deeply ingrained in probability theory, we will derive and analyze probabilistic learning algorithms, and our entire treatment of mathematical finance will be framed in terms of random variables.

## Groups -- A Primer

DevFeed: [Groups -- A Primer](<https://devfeed.tech/articles/groups-a-primer-40295.md>)

Original publisher: [Read original article](<https://www.jeremykun.com/2012/12/08/groups-a-primer/>)

Published: 2012-12-08T23:42:10Z

Content type: article

Language: en

Sources: [Jeremy Kun](<https://devfeed.tech/sources/jeremy-kun.md>)

Topics: [Mathematics](<https://devfeed.tech/topics/mathematics.md>), [structure](<https://devfeed.tech/topics/structure.md>), [Math and Logic](<https://devfeed.tech/topics/math-and-logic.md>), [Cryptography](<https://devfeed.tech/topics/cryptography.md>)

Tags: [applications](<https://devfeed.tech/tags/applications.md>), [group-actions](<https://devfeed.tech/tags/group-actions.md>), [groups](<https://devfeed.tech/tags/groups.md>), [lagrange](<https://devfeed.tech/tags/lagrange.md>), [mathematics](<https://devfeed.tech/tags/mathematics.md>), [public-key](<https://devfeed.tech/tags/public-key.md>), [set-theory](<https://devfeed.tech/tags/set-theory.md>), [structure](<https://devfeed.tech/tags/structure.md>), [symmetry](<https://devfeed.tech/tags/symmetry.md>), [theory](<https://devfeed.tech/tags/theory.md>)

### AI overview

This primer introduces group theory as the study of algebraic structures that can describe operations beyond ordinary numbers. It motivates the subject through examples involving symmetry, squares, and Rubik's Cube, and notes applications including public-key cryptography, error detection, crystal structures, particle physics, and mathematical biology.

### Source excerpt

The study of groups is often one's first foray into advanced mathematics. In the naivete of set theory one develops tools for describing basic objects, and through a first run at analysis one develops a certain dexterity for manipulating symbols and definitions. But it is not until the study of groups that one must step back and inspect the larger picture. The main point of that picture (and indeed the main point of a group) is that algebraic structure can be found in the most unalgebraic of settings.

## False Proof--All Numbers are Describable in at Most Twenty Words

DevFeed: [False Proof--All Numbers are Describable in at Most Twenty Words](<https://devfeed.tech/articles/false-proof-all-numbers-are-describable-in-at-most-twenty-words-40233.md>)

Original publisher: [Read original article](<https://www.jeremykun.com/2011/07/28/false-proof-twenty-word/>)

Published: 2011-07-28T16:03:27Z

Content type: article

Language: en

Sources: [Jeremy Kun](<https://devfeed.tech/sources/jeremy-kun.md>)

Topics: [Mathematics](<https://devfeed.tech/topics/mathematics.md>), [Math and Logic](<https://devfeed.tech/topics/math-and-logic.md>), [Statement](<https://devfeed.tech/topics/statement.md>)

Tags: [computer](<https://devfeed.tech/tags/computer.md>), [false-proof](<https://devfeed.tech/tags/false-proof.md>), [kolmogorov-complexity](<https://devfeed.tech/tags/kolmogorov-complexity.md>), [language](<https://devfeed.tech/tags/language.md>), [mathematics](<https://devfeed.tech/tags/mathematics.md>), [program](<https://devfeed.tech/tags/program.md>), [set-theory](<https://devfeed.tech/tags/set-theory.md>), [turing-machine](<https://devfeed.tech/tags/turing-machine.md>), [well-ordering](<https://devfeed.tech/tags/well-ordering.md>)

### AI overview

The article examines a false proof claiming that every natural number can be described in fewer than twenty words. It explains that the contradiction arises from imprecise notions of description and set construction, connecting the issue to Russell's paradox and the Richard-Berry paradox.

### Source excerpt

Problem: Show that every natural number can be unambiguously described in fewer than twenty words. "Solution": Suppose to the contrary that not every natural number can be so described. Let $ S$ be the set of all natural numbers which are describable in fewer than twenty words. Consider $ R = \mathbb{N}-S$, the set of all words which cannot be described in fewer than twenty words. Since $ R$ is a subset of the natural numbers, which is well-ordered, it has a unique smallest element which we call $ r$.

## False Proof--The Reals are Countable

DevFeed: [False Proof--The Reals are Countable](<https://devfeed.tech/articles/false-proof-the-reals-are-countable-40228.md>)

Original publisher: [Read original article](<https://www.jeremykun.com/2011/07/19/false-proof-the-reals-are-countable/>)

Published: 2011-07-19T17:10:00Z

Content type: article

Language: en

Sources: [Jeremy Kun](<https://devfeed.tech/sources/jeremy-kun.md>)

Topics: [math](<https://devfeed.tech/topics/math.md>)

Tags: [axiom-of-choice](<https://devfeed.tech/tags/axiom-of-choice.md>), [countability](<https://devfeed.tech/tags/countability.md>), [false-proof](<https://devfeed.tech/tags/false-proof.md>), [math](<https://devfeed.tech/tags/math.md>), [mathematics](<https://devfeed.tech/tags/mathematics.md>), [set-theory](<https://devfeed.tech/tags/set-theory.md>), [well-ordering](<https://devfeed.tech/tags/well-ordering.md>)

### AI overview

The article examines a purported proof that the real numbers are countable. It explains that the argument's surjectivity claim is flawed and begins demonstrating the issue using a chosen well-ordering of the integers.

### Source excerpt

It seems that false proofs are quickly becoming some of the most popular posts on Math ∩ Programming. I have been preparing exciting posts on applications of graph coloring, deck stacking, and serial killers. Unfortunately, each requires resources which exist solely on my home desktop, which is currently dismantled in California while I am on vacation in Costa Rica. Until I return from the tropics, I will continue with more of the ever -popular false proofs.

## Set Theory--A Primer

DevFeed: [Set Theory--A Primer](<https://devfeed.tech/articles/set-theory-a-primer-40223.md>)

Original publisher: [Read original article](<https://www.jeremykun.com/2011/07/09/set-theory-a-primer/>)

Published: 2011-07-09T18:14:59Z

Content type: tutorial

Language: en

Sources: [Jeremy Kun](<https://devfeed.tech/sources/jeremy-kun.md>)

Topics: [Mathematics](<https://devfeed.tech/topics/mathematics.md>), [Math and Logic](<https://devfeed.tech/topics/math-and-logic.md>)

Tags: [axiom-of-choice](<https://devfeed.tech/tags/axiom-of-choice.md>), [bijections](<https://devfeed.tech/tags/bijections.md>), [cardinality](<https://devfeed.tech/tags/cardinality.md>), [countability](<https://devfeed.tech/tags/countability.md>), [example](<https://devfeed.tech/tags/example.md>), [functions](<https://devfeed.tech/tags/functions.md>), [mathematics](<https://devfeed.tech/tags/mathematics.md>), [numbers](<https://devfeed.tech/tags/numbers.md>), [power-set](<https://devfeed.tech/tags/power-set.md>), [primer](<https://devfeed.tech/tags/primer.md>), [set](<https://devfeed.tech/tags/set.md>), [set-theory](<https://devfeed.tech/tags/set-theory.md>), [symbols](<https://devfeed.tech/tags/symbols.md>), [theory](<https://devfeed.tech/tags/theory.md>), [variable](<https://devfeed.tech/tags/variable.md>)

### AI overview

This primer introduces set theory by defining sets, elements, membership, cardinality, notation, and several ways to construct sets. It uses numerical examples and introduces natural numbers, integers, and rational numbers while noting that unrestricted operations can lead to paradoxes.

### Source excerpt

It's often that a student's first exposure to rigorous mathematics is through set theory, as originally studied by Georg Cantor. This means we will not treat set theory axiomatically (as in ZF set theory), but rather we will take the definition of a set for granted, and allow any operation to be performed on a set. This will be clear when we present examples, and it will be clear why this is a bad idea when we present paradoxes.