Tootfinder

Opt-in global Mastodon full text search. Join the index!

@frankel@mastodon.top
2026-03-20 17:03:10

#Leanstral: #OpenSource foundation for trustworthy #vibecoding

@tomkalei@machteburch.social
2026-04-20 11:00:24

Here is a quine in #lean
def main : IO Unit := do
let s := "\n IO.print (\"def main : IO Unit := do\\n let s := \" s.quote s)\n"
IO.print ("def main : IO Unit := do\n let s := " s.quote s)
S is code to print the preamble P, then S quoted and then S.
If you want to test it, make sure there is a newline at the end of the file because S ends in "\n".
#Python:
s = '\nprint("s = " repr(s) s)'
print("s = " repr(s) s)
2/2

@tomkalei@machteburch.social
2026-04-19 20:49:01

Saying something without saying anything in #lean:
def non_decreasing (f : ℝ − ℝ) := ∀ x₁ x₂, x₁ ≤ x₂ − f x₁ ≤ f x₂
example (f g : ℝ − ℝ) (hf : non_decreasing f) (hg : non_decreasing g) : non_decreasing (g ∘ f) := fun _ _ h => hg _ _ (hf _ _ h)
Is this a good proof? It's certainly easy to see after seeing it !!

@tomkalei@machteburch.social
2026-04-13 11:04:32

I just learned an interesting cultural tidbit yesterday: In the #lean community they use the octopus emoji 🐙 to celebrate.
This is because if you use the right font, it looks like the Octopus has two arms raised like his team has just won a cup or something.
It's also featured in this recent Quanta-Article:
quantamagazine.org/in-math-rig
(which constructs some careful criticism of mathlib btw.)
cc: @…

@tomkalei@machteburch.social
2026-03-29 17:13:57

Aus dem Tagebuch eines #lean-Learners: Drüben beim @… hatten wir diese Frage: podcasts.social/@Eigenraum/116
Klar kann man das mit Python einfach durchrechnen, aber ich will ja lean lernen. Also wollte ich das mal formal beweisen.
Wahrscheinlich ein schlechtes Beispiel, weil der Beweis ja tatsächlich komplett rechnerisch ist, aber schauen wir mal: 🧵
@… @…