Spraying houses with SIL-y strings on Mischief Night on Nostr: ok... this is kinda blowing my mind right now: in Lean, defining a list of items and ...
ok... this is kinda blowing my mind right now: in Lean, defining a list of items and then attempting to use an invalid index to access an item results in a _compile-time_ error, not a runtime error.
{
"id":"ce82d4fe54c0dddca3f038bdda816f046dbe5c5d406052007d2f4c6d12cab563",
"pubkey":"6bddbd3066313d181b0a1e25de82bae1498f8576a56eaafbfdff9f195896cfc9",
"created_at":1755495402,
"kind":1,
"tags": [
[
"imeta",
"url https://media.tech.lgbt/media_attachments/files/115/048/145/193/076/203/original/cc2bd8d841e96eb7.png",
"m image/png"
],
[
"proxy",
"https://tech.lgbt/@quephird/115048146696052407",
"web"
],
[
"proxy",
"https://tech.lgbt/users/quephird/statuses/115048146696052407",
"activitypub"
],
[
"L",
"pink.momostr"
],
[
"l",
"pink.momostr.activitypub:https://tech.lgbt/users/quephird/statuses/115048146696052407",
"pink.momostr"
],
[
"-"
]
],
"content":"ok... this is kinda blowing my mind right now: in Lean, defining a list of items and then attempting to use an invalid index to access an item results in a _compile-time_ error, not a runtime error.\n\nhttps://lean-lang.org/functional_programming_in_lean/Interlude___-Propositions___-Proofs___-and-Indexing/#props-proofs-indexing\nhttps://media.tech.lgbt/media_attachments/files/115/048/145/193/076/203/original/cc2bd8d841e96eb7.png\n",
"sig":"49cf8250bb769337c475621e9f1cffe0e36e5509b40b8251a2c99f3e23264c1a6daa493b77a3bf61aa289d40890c37d5b82da5e01837f4a5c3a653ba569d2b9d"
}