Skip to content

Introduces the couplet, the basic building block of the Data Algebra, and explains how this single directed fact underlies every other structure in the system.

Transcript

Slide 1: Welcome back. In the first lesson I made a bold promise – that every shape your data takes, the table, the document, the graph, is underneath one and the same mathematical object, and that the whole edifice is built from a single atom I called the couplet. In this lesson I want to make good on that word ‘atom’. We’ll ask what the smallest true unit of data actually is, and we’ll find that answering it honestly forces us to be clear about what data even is in the first place. It’s a short journey, but everything else in the series stands on it.

Slide 2: So a datum always has two parts. There is the value itself – the raw content – and there is its usage: the little label that says how the value is meant to be read. Take the value ‘Ada’; on its own it’s just letters, but paired with the usage ‘a name’ it becomes a fact. The number 500, paired with ‘a reward’, means something quite different from 500 paired with ‘a year’. Same value, different usage, different meaning. That pairing – a value bound to its usage – is precisely what we call a couplet. It is the true, irreducible unit of data.

Slide 3: Let me start with a question that sounds almost too simple to bother with: what is a single unit of data? Point at the smallest possible piece. Is it a number – 500? A word – ‘Ada’? A single row in a table? The awkward truth is that none of these, taken entirely on its own, is quite enough to count as data. A bare 500 tells you nothing; it could be a price, an age, a pixel. To pin down the unit of data, we first have to be honest about what makes something data at all – so let me show you my favourite example.

Slide 4: Here’s a line you’ll almost certainly recognise: ‘In the jungle, the mighty jungle, the lion sleeps tonight.’ To you, that is plainly data – it means something. But notice how much you brought to it without noticing. You knew it was English; you knew it was a song lyric; you knew ‘lion’ meant the animal, not a constellation or a brave person. A computer brings none of that. To a machine it is a string of characters, and nothing about the characters themselves tells it whether this is text, a lyric, a fact, or noise. Meaning, it turns out, is not in the value alone. It has to be supplied.

Slide 5: Let’s write it down properly. A couplet is an ordered pair: a value on the left, and the usage that frames it on the right. We draw it as a arrow b, and we read it as one directed fact – this points to that. ‘name’ points to ‘Ada’. ‘Employee seven’ points to ‘sales’. The order matters – a arrow b is not the same statement as b arrow a – which is exactly why we call it an ordered pair. It looks almost too humble to matter. But hold onto that humility, because as we’ll see, everything larger is made of nothing but these.

Slide 6: Let me place the couplet back into the picture you saw last time. This is the tower – four levels, and you now know the one at the very bottom intimately. A relation is simply a set of couplets. A clan is a set of relations. A horde is a set of clans. Each level is nothing more than a set of the things one level below, and the whole structure – every table, every document, every database you will ever meet – rests entirely on that small directed pair at the foot. Build the atom correctly, and everything above it inherits its rigour. That is why we spent a whole lesson here.

Slide 7: Because the two ends of a couplet play different roles, it helps to name them, and Gary Sherman chose two lovely words for it: yin and yang. The yin is the left element – ‘a’, the value the couplet carries. The yang is the right element – ‘b’, the usage that tells us how to read it. That’s all the vocabulary you need. And here’s a small bonus: if you take a couplet and simply swap its two ends – turn a arrow b into b arrow a – you’ve performed your very first algebraic operation. It’s called transpose, and we’ll meet it properly, at every level of the tower, later in the series.

Slide 9: So, three things to carry forward. First, the couplet: a value bound to its usage, written a arrow b – the smallest honest unit of data. Second, yin and yang: every couplet has a left, the value, and a right, the usage – and swapping them is the operation we call transpose. And third, the couplet is the foundation: relations, clans and hordes are all just sets, built up, level by level, from couplets. Hold those three and you’re ready for the next step. In Lesson 3 we climb one rung and gather couplets together into the first structure with real shape – the relation.

Slide 10: That’s the couplet. Small, quiet, and – I hope you’re beginning to feel – surprisingly load-bearing. Thank you for your time; I’ll see you in Lesson 3, where relations come into view.