const fieldName = "theme"; // Your field with linksconst oldPrefix = "Thoughts/01 Themes/";const newPrefix = "Digital Garden/Topics/";const relatedLinks = dv.current()[fieldName];if (Array.isArray(relatedLinks)) { // Map over the links, replace the path, and output only clickable links dv.el("span", relatedLinks .map(link => { if (link && link.path) { let newPath = link.path.startsWith(oldPrefix) ? link.path.replace(oldPrefix, newPrefix) : link.path; return dv.fileLink(newPath); } }) .filter(Boolean).join(", ") // Remove any undefined/null items );} else { dv.el(dv.current().theme);}
Theorem
Every open subset of R is measurable (ie B⊂M - the borel sigma algebra is contained in the collection of all measurable sets)
Proof
Since intervals of the form (a,∞) are measurable for all a∈R (open intervals with upper bound infinity are measurable), so is
(−∞,b)=⋃n=1∞(−∞,b−n1]=⋃n=1∞(b−n1,∞)c
This is because the measurable sets form a sigma algebra and they are therefore closed under complements, countable unions, and finite intersections. Thus any finite open interval is also measurable since
(a,b)=(−∞,b)∩(a,∞)
Finally, every open subset of R is a countable union of open intervals. Thus all open intervals are measurable.
\tag*{$\blacksquare$}