function examplesTable({examples, editor, invalidation, offset = 0}) {
if (!(invalidation instanceof Promise))
throw new Error(`examplesTable: invalidation be a promise (currently: ${invalidation})`);
return html`
<table style="min-width: 100%">
<tr>
<th>Example</th>
<th>Lean Proof</th>
</tr>
${examples.map((el, i) => html`
<tr>
<td>${responsive_katex(invalidation, tex`${el}`)}</td>
<td>${editor(i + offset, invalidation)}</td>
</tr>`
)}
</table>`
}