rumblr Work in progressWIP

● The AI Primer · Lesson 30 · Part 4: embeddings and search

Clustering and matching

Clustering and everyday uses of embeddings: grouping, mapping, routing, caching

This lesson covers How embeddings group a pile of unlabelled text, find duplicates and route requests

Members · open during launch 29 min11 figures and diagrams7 interactive

What this is

What is clustering?

Clustering, in machine learning, means sorting a pile of items into groups by how alike they are, without anyone first saying what the groups are. Embeddings make it work for text: an AI model gives each text a list of numbers, placed so that similar meanings land close together. Thirty support tickets then fall into five kinds, and two off-topic ones (a coffee machine, a dog) belong to none. The same closeness, one distance and one threshold, also spots a ticket filed twice, routes a request to the right team, flags an oddity, and answers a repeated question from a cache.

Why it matters: You need it when a pile of unlabelled tickets, feedback or logs has to be sorted into kinds nobody has named yet. You also need it wherever each new item raises the question "have I seen something like this before?"

At a glance

Key takeaways

  1. k-means alternates two steps, "join the nearest centre" and "move each centre to the mean of its points"; you choose k, by the elbow or the silhouette.
  2. DBSCAN and HDBSCAN find clusters as dense crowds, decide how many there are themselves, and mark loners as noise, which suits messy text.
  3. A PCA map keeps the directions of widest spread and drops the rest; UMAP and t-SNE keep neighbours together but distort distances and sizes.
  4. Near-duplicates, routing, anomaly detection and semantic caching each embed a new item, compare it with stored ones and apply a threshold.
  5. A semantic cache needs a strict threshold, a context key and an expiry.

How it works, from scratch

The examples throughout are 32 short support tickets. Thirty are about IT, HR and finance, in five kinds with six tickets each: login, VPN, printer, expenses and leave. The other two are off-topic, one about a coffee machine and one about a dog. A small toy embedder (primer.common.embedder) turns each ticket into a vector, and tickets that mean similar things get vectors with a high cosine similarity (Similarity). Sort the tickets by kind, compare every pair, and the groups are plain to see.

Figure 1 · Chart

login vpn expense leave printer off-topic login vpn expense leave printer off-topic Cosine similarity between every pair of tickets −0.2 0.0 0.2 0.4 0.6 0.8 1.0 cosine similarity

Tickets of the same kind form five bright squares along the diagonal, and the two off-topic tickets are dark almost everywhere

Reading it: rows and columns are the 32 tickets in the same order, grouped by kind, and a brighter cell means a higher cosine similarity. Each bright square along the diagonal is one kind, whose six tickets resemble each other and not the rest. The last two rows and columns, the off-topic tickets, are dark almost everywhere.

A clustering method is not given that order. It gets the tickets shuffled, with no kinds attached, and has to find the squares from the similarities alone.

In code: ticket_embeddings returns the tickets' vectors, and ticket_kinds the true kinds, which no clustering method sees. View source

Here is the same grid in the order a clustering method gets it. Press Sorted by kind to bring the squares back, and tap a cell to read its two tickets.

Chapter 1

k-means: k meeting points

The simplest method decides the number of groups, k, in advance. Think of a town that wants k post boxes placed so that everyone's walk to their nearest box is as short as possible. Put the boxes anywhere to start. Everyone walks to their nearest box, then each box moves to the middle of the people who chose it, and the two steps repeat until nobody changes box. That is k-means, with points for the people and centres for the boxes.

Take four points, (0, 0), (0, 1), (10, 0) and (10, 1), and k = 2. However the boxes start, the two left points pick one box and the two right points the other. Each box moves to the middle of its pair, (0, 0.5) and (10, 0.5). Every point is now 0.5 from its box, so the total squared walk is 4 × 0.5² = 1.0, and the next round changes nothing.

Figure 2 · Diagram

Reading it: follow the loop from assign to move and back, until no centre moves. It always ends, because neither step can lengthen the total squared walk: joining the nearest centre cannot make anyone's walk longer, and a group's mean is the spot with the shortest total squared walk to its points. Where it ends depends on the start. k-means++ picks each new starting centre far from the ones already chosen, so that two centres do not begin in the same crowd.

The total squared walk is called inertia, and k-means makes it small:

The formula and its symbols

Symbols

Symbol Meaning here Shape / range
J the total squared distance, called inertia; k-means makes it small ≥ 0
N number of points 4 in the example; 30 tickets
i which point 1 to N
xᵢ the i-th point (an embedding) d numbers
c(i) the cluster point i is assigned to 1 to k
μ_c (mu) the centroid of cluster c: the mean of its points d numbers
‖·‖² squared Euclidean distance ≥ 0
Σ add up over all points

In words: add up, over every point, the squared distance from the point to the centre of its cluster.

New to Σ, ∂ or ‖x‖? The symbols reference decodes each one as a few lines of Python.

On the example: four points each 0.5 from their centre: J = 4 × 0.25 = 1.0.

In Python:

x = [(0, 0), (0, 1), (10, 0), (10, 1)]
# the two centroids
mu = [(0, 0.5), (10, 0.5)]
# c(i): the cluster each point joined
c = [0, 0, 1, 1]
# ‖x_i - μ_c(i)‖²
J = sum((x_i[0] - mu[c_i][0]) ** 2 + (x_i[1] - mu[c_i][1]) ** 2
        # Σ over every point
        for x_i, c_i in zip(x, c))
J  # → 1.0

Figure 3 · Chart

−2 −1 0 1 2 3 4 5 x −1 0 1 2 3 4 5 y start (k-means++) inertia 335.6 −2 −1 0 1 2 3 4 5 x after round 1 inertia 127.8 −2 −1 0 1 2 3 4 5 x converged (round 3) inertia 60.2

k-means centres drift into the middle of their crowds round by round while the total squared distance only goes down

Reading it: three snapshots of k-means on 2-D points, read left to right. Colours are the current assignments and black crosses are the centres: the k-means++ starts, then the state after one assign-and-move round, then the final state. The centres drift into the middle of their crowds, and J, printed above each panel, falls from one panel to the next.

In code: kmeans runs the loop from k-means++ starts and keeps the best of several restarts; kmeans_history records the rounds drawn here. View source

k-means is fast, and it reappears in vector search, where IVF indexes use it to split a corpus into cells (Vector indexes). It has two weaknesses. You must choose k, and it assumes the clusters are round and of similar size.

Step through the loop yourself and watch J after every assign and every move. Then place the starting centres badly and see where k-means gets stuck.

Chapter 2

Choosing k: the elbow and the silhouette

To choose k, run k-means for several values of k and score each result. Inertia cannot be the score, because it falls every time k grows: more boxes always mean shorter walks. What can be read from it is the elbow, the k after which it stops falling steeply. A better score asks every point whether it sits much closer to its own cluster than to the nearest other one. That score is the silhouette.

Back to the four points, split into the two pairs. For (0, 0), its partner is a = 1 away. The other pair is 10 and √101 = 10.05 away, on average b = 10.025. Its score is (b − a) / b = 9.025 / 10.025 = 0.900. By symmetry every point scores the same, so the silhouette is 0.900.

The formula and its symbols

Symbols

Symbol Meaning here Range
s(i) silhouette score of point i −1 to 1
a(i) average distance from i to the other points in its own cluster ≥ 0
b(i) average distance from i to the points of the nearest other cluster ≥ 0
max(a, b) the larger of the two, to scale the score into −1 … 1

In words: how much farther the nearest other group is than your own, as a share of the larger distance. The silhouette of a clustering is the average over all points: near 1 is crisp, near 0 is overlapping, negative means points sit in the wrong cluster.

On the example: (10.025 − 1) / 10.025 = 0.900.

In Python:

import math
# a(i): distance to its partner
a = math.dist((0, 0), (0, 1))
# b(i): the other pair, averaged
b = (math.dist((0, 0), (10, 0)) + math.dist((0, 0), (10, 1))) / 2
a, round(b, 3)  # → (1.0, 10.025)
# s(i)
round((b - a) / max(a, b), 3)  # → 0.9

Figure 4 · Chart

2 3 4 5 6 7 8 k 12 14 16 18 20 22 24 inertia (total squared distance) Elbow: inertia always falls 2 3 4 5 6 7 8 k 0.08 0.10 0.12 0.14 0.16 0.18 mean silhouette Silhouette peaks at the true k = 5

Inertia falls at every k, so it cannot pick k, while the silhouette peaks clearly at the true k of 5

Reading it: both panels run k-means on the 30 tickets for every k from 2 to 8. On the left, inertia falls at every k, steeply up to k = 5 and more slowly after it. On the right, the silhouette peaks at k = 5, the true number of ticket kinds. The elbow has to be judged by eye, while the silhouette's peak is a single number to pick.

In code: best_k_by_silhouette runs kmeans for each candidate k and keeps the one with the highest silhouette. View source

Here are four crowds of points, with k-means run for every k from 2 to 8. Slide k and see which of the two scores tells you there are four.

Chapter 3

Density clustering: DBSCAN and HDBSCAN

Even with k chosen well, k-means assumes round clusters, and it puts every point in some cluster, so the coffee-machine ticket joins one of the five kinds. Density clustering takes another view, the one you get of a festival from a drone. A crowd is wherever people stand shoulder to shoulder, and a loner by the fence belongs to no crowd. How many crowds there are is not decided in advance. DBSCAN makes this a rule with two settings: a reach, ε, for how close counts as shoulder to shoulder, and the number of points within reach that make a crowd.

Take points on a line at 0, 0.1, 0.2, 5.0, 5.1, 5.2 and 20, with a reach of ε = 0.15 and a crowd of at least 2. The points 0, 0.1 and 0.2 chain together, each within 0.15 of the next, and so do 5.0, 5.1 and 5.2. Nothing is within 0.15 of 20. The result is two clusters and one noise point, labelled 0 0 0 1 1 1 −1.

The formula and its symbols

Symbols

Symbol Meaning here
x, y points
dist distance: Euclidean, or 1 − cosine for embeddings
ε (epsilon) the reach: how close counts as "shoulder to shoulder"
N_ε(x) the ε-neighbourhood: every point within reach of x (x included)
{… : …} "the set of … such that …"
|·| how many points are in the set
minPts how many points within reach make x a core point

In words: a point's neighbourhood is everything within reach; a point with enough neighbours is a core point; clusters grow outward from core points, and anything no core point can reach is noise.

On the example: N₀.₁₅(0.1) = {0, 0.1, 0.2}, 3 ≥ 2, so 0.1 is core; N₀.₁₅(20) = {20}, 1 < 2, so 20 is noise.

In Python:

points = [0, 0.1, 0.2, 5.0, 5.1, 5.2, 20]
eps, minPts = 0.15, 2
# N_ε(x): every point within reach of x
def N(x):
    return [y for y in points if abs(x - y) <= eps]
# a core point
N(0.1), len(N(0.1)) >= minPts  # → ([0, 0.1, 0.2], True)
# nobody within reach: noise
N(20), len(N(20)) >= minPts  # → ([20], False)

Figure 5 · Diagram

Reading it: DBSCAN takes the points one at a time. A point with too few neighbours is left as noise for now; a later crowd can still claim it as an edge point. A core point starts a cluster, which floods outward through other core points (the loop on the "Add" box) until it reaches the crowd's edge.

In code: dbscan labels the clusters 0, 1, 2 and so on, and gives noise the label −1. View source

Figure 6 · Chart

−0.8 −0.6 −0.4 −0.2 0.0 0.2 0.4 principal component 1 −0.6 −0.4 −0.2 0.0 0.2 0.4 0.6 principal component 2 DBSCAN (cosine, ε = 0.6, minPts = 3) the coffee machine is … can I bring my dog to … noise cluster 0 cluster 1 cluster 2 cluster 3

DBSCAN at reach 0.6 marks exactly the two off-topic tickets as noise but merges the VPN and printer tickets into one cluster

Reading it: the tickets on a flat 2-D map, coloured by the clusters DBSCAN found. Distance here is 1 − cosine, so ε = 0.6 means "cosine at least 0.4", and minPts = 3. The grey crosses are noise: the two off-topic tickets and no others, found without telling DBSCAN how many clusters there are. Now look at the VPN and printer tickets, which share one cluster. A single pair joins them: "vpn client fails to start" and "printing fails with an error" are within reach of each other.

Figure 7 · Chart

0.45 0.50 0.55 0.60 0.65 0.70 0.75 0.80 0.85 reach ε (cosine distance) 0 5 10 15 20 count DBSCAN: too small strands tickets, too large chains kinds clusters found noise points truly off-topic tickets

No reach gets DBSCAN right: small reaches strand real tickets as noise, and by the time noise is only the off-topic pair the kinds have begun chaining together

Reading it: the horizontal axis is the reach ε. The blue line counts clusters and the orange line counts noise points; the dashed line marks the two off-topic tickets. At the smallest reach, 0.45, most tickets have too few neighbours, and DBSCAN finds three clusters and calls 22 of the 32 tickets noise. At 0.5 and 0.55 it finds all five kinds, but calls 15, then 9, tickets noise, most of them genuine. At 0.6 the noise is down to the off-topic pair, but the kinds have started chaining: A is near B and B is near C, so A and C end up in one cluster. VPN and printer merge, leaving four clusters. Wider still, the chains leave three clusters, then two, until at 0.825 one cluster holds every kind and one off-topic ticket as well. No single ε gets every ticket right, and real data has no labels to show where the best one is.

HDBSCAN removes ε. In effect it runs DBSCAN at every reach, builds a tree of how crowds merge as the reach grows, and keeps the crowds that last over the widest range of reaches. That lets it find dense and loose clusters in the same data, which is what messy text such as support tickets needs.

Slide the reach and look for one that separates all five kinds and leaves only the two off-topic tickets as noise.

Chapter 4

Seeing the map: PCA (and why UMAP and t-SNE mislead on distance)

The DBSCAN figure drew the tickets, each a list of 128 numbers, on a flat page. Any such map is a shadow. A 3-D object casts a 2-D shadow on a wall, and turning the object changes the shadow. PCA (principal component analysis) turns the data so that its shadow is as spread out as possible, which keeps as much of the original variation as a flat picture can.

Take three points on a straight line, (1, 1), (2, 2) and (3, 3). All their variation runs along the diagonal, so the first direction explains 100% of it and the second 0%. Along that direction the points sit √2 = 1.414 apart, as they do in the original. PCA scores each direction by its share of the total spread:

The formula and its symbols

Symbols

Symbol Meaning here Range
j which direction (principal component) 1 to d
σⱼ (sigma) the j-th singular value of the centred data, from the SVD (see Math notation, from zero) ≥ 0, largest first
σⱼ² proportional to the variance (average squared spread) along direction j ≥ 0
Σₖ σₖ² the total spread over all directions k
explainedⱼ the share of all the spread that direction j captures 0 to 1

In words: square each direction's singular value and divide by the sum of all the squares.

On the example: centred, the points are (−1, −1), (0, 0), (1, 1). Their singular values are 2 along the diagonal and 0 across it, so the shares are 2² / (2² + 0²) = 1 and 0 / 4 = 0.

In Python:

import math
centred = [(-1, -1), (0, 0), (1, 1)]
# along the diagonal
u = [(1 / math.sqrt(2), 1 / math.sqrt(2)),
     # across it (the SVD finds these; here we know them)
     (1 / math.sqrt(2), -1 / math.sqrt(2))]
# spread along u_j
sigma = [math.sqrt(sum((x * u_j[0] + y * u_j[1]) ** 2 for x, y in centred))
         for u_j in u]
[round(sigma_j, 3) for sigma_j in sigma]  # → [2.0, 0.0]
[round(sigma_j ** 2 / sum(sigma_k ** 2 for sigma_k in sigma), 3) for sigma_j in sigma]  # → [1.0, 0.0]

Figure 8 · Chart

−0.8 −0.6 −0.4 −0.2 0.0 0.2 0.4 principal component 1 −0.6 −0.4 −0.2 0.0 0.2 0.4 0.6 principal component 2 Tickets on a 2-D map (keeps 26% of the variation) login vpn expense leave printer off-topic k-means centres

Squashed to 2-D, each kind of ticket forms its own patch with its k-means centre inside it

Reading it: the 128-number ticket embeddings flattened to 2-D with PCA and coloured by their true kind. Black crosses are the k-means centres, projected the same way, and grey ✕ markers are the off-topic tickets. Each kind forms its own patch, with a centre inside it. The title gives the share of the variation the two axes keep. The rest is invisible, so two tickets that look close on this map can be far apart in the full space.

In code: pca projects the centred data onto its top directions and returns each direction's share. View source

UMAP and t-SNE draw maps by a different rule. They keep each point's neighbours next to it and let every other distance stretch. Like a subway map, the result shows what is near what, but not how far apart things are or how big they are: the gaps between clusters and the sizes of clusters on such a map do not match the real space. Read them for neighbours, and measure in the full space.

Try it in two dimensions: turn the line until the cloud's shadow on it is as wide as it can be.

Chapter 5

Everyday uses

Clustering looks at a whole collection at once. Most systems also have to decide about each new item as it arrives, and the same closeness answers that question: is this like something already seen? Four everyday jobs ask it, spotting near-duplicates, routing requests to the right team, flagging anomalies and caching answers.

Figure 9 · Diagram

Reading it: one embedding feeds four separate checks, each a distance and a threshold. Read across the four branches: what changes is what the new text is compared with (stored documents, route examples, cluster centres, cached questions) and what happens on a hit.

Near-duplicates. The same ticket filed twice, with slightly different wording, gets nearly identical vectors. "password reset link expired" and "The password reset link has expired!" score a cosine of 1.0 with the toy embedder. Flag pairs above a threshold set on pairs you have labelled by hand (Similarity).

In code: near_duplicates returns every pair of texts whose cosine reaches the threshold. View source

Routing. Each route (a team, a tool or an agent) is represented by the centroid of a few example requests. A new request goes to the closest centroid, or to a fallback when no centroid is close enough:

The formula and its symbols

Symbols

Symbol Meaning here Range
q the incoming request's embedding unit vector
r a route: a team, tool or agent it_helpdesk, finance, hr
μᵣ (mu) route r's centroid: the mean of its example requests, rescaled to length 1 unit vector
cos(q, μᵣ) cosine similarity of the request with that route −1 to 1
arg maxᵣ the route that gives the largest value
θ (theta) the confidence threshold 0.3 here

In words: send the request to the route it is most similar to, unless even the best match is weak, in which case hand it to the fallback.

On the example: "my vpn tunnel drops when I work remote" scores highest against the IT helpdesk; "what is the capital of france" is near 0 against every route, below θ = 0.3, so it goes to the fallback.

With the numbers: a toy version with three routes in four dimensions: μ_it = (1, 0, 0, 0), μ_finance = (0, 1, 0, 0), μ_hr = (0, 0, 1, 0). The request q = (0.8, 0.6, 0, 0) has cosines 0.8, 0.6 and 0.0 with them; the best, 0.8, clears θ = 0.3, so it goes to it_helpdesk. The request q = (0.1, 0.2, 0, 1) points mostly where no route lies: its cosines are about 0.1, 0.2 and 0.0, all below θ, so it goes to the fallback.

In Python:

import math
def cos(a, b):
    dot = sum(a_k * b_k for a_k, b_k in zip(a, b))
    return dot / (math.sqrt(sum(a_k ** 2 for a_k in a)) * math.sqrt(sum(b_k ** 2 for b_k in b)))
mu = {"it_helpdesk": (1, 0, 0, 0), "finance": (0, 1, 0, 0), "hr": (0, 0, 1, 0)}
theta = 0.3
def route(q):
    scores = {r: cos(q, mu_r) for r, mu_r in mu.items()}
    # arg max_r cos(q, μ_r)
    best = max(scores, key=scores.get)
    return best if scores[best] >= theta else "fallback"
[round(cos((0.8, 0.6, 0, 0), mu_r), 2) for mu_r in mu.values()], route((0.8, 0.6, 0, 0))  # → ([0.8, 0.6, 0.0], 'it_helpdesk')
[round(cos((0.1, 0.2, 0, 1), mu_r), 2) for mu_r in mu.values()], route((0.1, 0.2, 0, 1))  # → ([0.1, 0.2, 0.0], 'fallback')

Figure 10 · Chart

my vpn tunnel drops when I w… who reimburses my hotel rece… what is the capital of france −0.1 0.0 0.1 0.2 0.3 0.4 0.5 0.6 cosine with route centroid Route to the closest centroid, or fall back threshold θ = 0.3 it_helpdesk finance hr

The VPN complaint clears the threshold only for IT, the receipt question only for finance, and the off-topic question for no route, so it goes to a human

Reading it: each group of bars is one incoming request, each bar its cosine with one route's centroid, and the dashed line the threshold θ. The VPN complaint clears the line only for IT and the receipt question only for finance. The off-topic question clears nothing, so it goes to a human. Without the fallback it would go to whichever team scored highest, however low that score.

In code: Router.route applies θ and the fallback; support_router builds the three routes shown here. View source

Anomaly detection. An item far from every cluster centre is unlike anything seen so far. Score each item by its distance to the nearest centre, and the largest scores are the unusual items. Among the tickets, the coffee machine and the dog score highest.

In code: anomaly_scores returns each point's distance to its nearest cluster centre. View source

Semantic caching. If a new question means the same as one already answered, return the stored answer and skip the call to the language model, which saves its cost and its wait. Three guards stop the cache from returning a wrong answer:

  • A strict, calibrated threshold. "How do I reset my VPN?" is only about 0.46 similar to "How do I reset my password?" here: related, but a different question.
  • A context key. "What is my PTO balance?" means something different for Alice and Bob. Answers are only reused within the same user, tenant and permission scope.
  • Expiry. A time-to-live, so answers age out when the facts change.

Figure 11 · Diagram

Reading it: follow the arrows. The filter comes before the similarity search, so an answer stored in another user's context is never a candidate, and no threshold setting can leak it. Similarity decides only among what is left.

In code: SemanticCache.lookup filters by context and expiry before it compares, and SemanticCache.get returns an answer only above the threshold. View source

Six requests, each scored against the three teams. Move the threshold and watch where each one goes.

Two answers are stored in the cache. Choose a question, who is asking and how long ago the answers were stored, and see which guard decides.

Test yourself

5 questions

Answer each one out loud or on paper before you open it.

Question 1Q: How does k-means work, and what are its limitations?Think it through, then reveal

Alternate assigning each point to its nearest centre and moving each centre to the mean of its points until nothing changes. You must choose k, results depend on the start (k-means++ helps), and it assumes round, similar-sized clusters.

Question 2Q: When would you choose HDBSCAN over k-means for text embeddings?Think it through, then reveal

When you don't know how many groups exist, clusters have different shapes and densities, and some items belong nowhere (support tickets, logs). It finds the number of clusters itself and labels outliers as noise.

Question 3Q: Why can't you trust distances in a UMAP or t-SNE plot?Think it through, then reveal

They preserve local neighbourhoods and deliberately distort everything else, so gaps between clusters and cluster sizes don't reflect the real space.

Question 4Q: How would you route requests to the right agent or tool with embeddings?Think it through, then reveal

Represent each route by the centroid of example requests, send each new request to the most similar centroid, and fall back to a human or general assistant when the best similarity is below a calibrated threshold.

Question 5Q: What can go wrong with a semantic cache?Think it through, then reveal

A loose threshold returns the answer to a different question; missing context keys leak one user's or tenant's answer to another; missing expiry serves stale facts. Filter by context first, then match strictly, and expire entries.

Primary sources

The papers behind this lesson

Arthur and Vassilvitskii, k-means++: The Advantages of Careful Seeding (2007)

Showed that spreading out the starting centres makes k-means provably close to optimal and much faster to converge.

The paper
Ester, Kriegel, Sander and Xu, A Density-Based Algorithm for Discovering Clusters (DBSCAN, 1996)

Defined clusters as dense regions reachable through core points, with everything else as noise.

The paper
Campello, Moulavi and Sander, Density-Based Clustering Based on Hierarchical Density Estimates (HDBSCAN, 2013)

Removed DBSCAN's single reach parameter by building a hierarchy over all reaches and keeping the most persistent clusters.

The paper
McInnes, Healy and Melville, UMAP (2018)

A fast projection that keeps each point's neighbours near it, used to draw maps of embeddings.

The paper

Researcher's shelf

Further reading

  • scikit-learn user guide, clustering: https://scikit-learn.org/stable/modules/clustering.html
  • hdbscan documentation, How HDBSCAN Works: https://hdbscan.readthedocs.io/en/latest/how_hdbscan_works.html
  • UMAP documentation: https://umap-learn.readthedocs.io/
  • Wattenberg, Viégas and Johnson, How to Use t-SNE Effectively (Distill): https://distill.pub/2016/misread-tsne/

About this lesson. This is the illustrated edition of a lesson from the open-source AI Primer ↗. Its text, figures and numbers are generated from the Primer's source at commit f8b43d1, so the two always agree: the explanation, the code that builds it and the tests that prove it.