home.social

#lean4 — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #lean4, aggregated by home.social.

fetched live
  1. Porting a Nintendo Emulator from #haskell to #lean4

    Today we're porting some of the opcodes/instructions from my Haskell 6502 emulator to Lean 4.

    youtube.com/live/IUIOexOvl3M

  2. Porting a Nintendo Emulator from #haskell to #lean4

    Today we're porting some of the opcodes/instructions from my Haskell 6502 emulator to Lean 4.

    youtube.com/live/IUIOexOvl3M

  3. 🙈 New preprint, Part V: *What the Higgs Potential Cannot See*.

    If you build gauge–Higgs unification models: there is a discrete choice you may be scanning over for nothing. On \(T^2/\mathbb{Z}_2\) each bulk multiplet carries boundary signs \(\eta_0,\eta_1\). For a whole class of bulk matter, the product \(\eta=\eta_0\eta_1\) has no observable consequence in the Higgs sector at one loop. Not suppressed. Identically zero.

    Why. The one-loop Wilson-line potential is one operator traced twice. Even windings give a graded dimension, odd windings an index:
    \[\Sigma_\lambda=s_\lambda(1,1,t,t^{-1}),\qquad D_\lambda=s_\lambda(1,-1,t,t^{-1}),\]
    and AHMN's \(\{A+B(-1)^{k_2}\}\) is exactly \((\Sigma\pm D)/2\). \(\Sigma\) has non-negative coefficients and can never cancel; \(D\) can. η multiplies \(D\) and nothing else — so η is invisible exactly where \(D_\lambda\equiv 0\).

    Which matter is blind is a parity condition you read off the Young diagram: \(\lambda_1\not\equiv\lambda_2\not\equiv\lambda_3\not\equiv\lambda_4\), or \(\lambda_i+\lambda_{5-i}=c\) odd. Counted in closed form — \(\lceil (k+1)^2/2\rceil\) at \(\lambda_1=2k+1\), none for \(\lambda_1\) even — and machine-checked in Lean 4, sorry-free. A second, disjoint cause: only \(\lfloor (N+1)^2/2\rfloor\) of the \((N+1)^2\) boundary-condition classes of \(SU(N)\) have a coset sector at all, for every \(N\).

    Anchored, not fitted: twelve printed coefficients of arXiv:2312.08608 come out exactly, and two further published potentials follow from the same mode counts.

    📄 doi.org/10.5281/zenodo.21727094
    💻 github.com/karlesmarin/higgs-b

    #Physics #ParticlePhysics #HEP #BSM #Higgs #ExtraDimensions #Lean4

  4. 🙈 New preprint, Part V: *What the Higgs Potential Cannot See*.

    If you build gauge–Higgs unification models: there is a discrete choice you may be scanning over for nothing. On \(T^2/\mathbb{Z}_2\) each bulk multiplet carries boundary signs \(\eta_0,\eta_1\). For a whole class of bulk matter, the product \(\eta=\eta_0\eta_1\) has no observable consequence in the Higgs sector at one loop. Not suppressed. Identically zero.

    Why. The one-loop Wilson-line potential is one operator traced twice. Even windings give a graded dimension, odd windings an index:
    \[\Sigma_\lambda=s_\lambda(1,1,t,t^{-1}),\qquad D_\lambda=s_\lambda(1,-1,t,t^{-1}),\]
    and AHMN's \(\{A+B(-1)^{k_2}\}\) is exactly \((\Sigma\pm D)/2\). \(\Sigma\) has non-negative coefficients and can never cancel; \(D\) can. η multiplies \(D\) and nothing else — so η is invisible exactly where \(D_\lambda\equiv 0\).

    Which matter is blind is a parity condition you read off the Young diagram: \(\lambda_1\not\equiv\lambda_2\not\equiv\lambda_3\not\equiv\lambda_4\), or \(\lambda_i+\lambda_{5-i}=c\) odd. Counted in closed form — \(\lceil (k+1)^2/2\rceil\) at \(\lambda_1=2k+1\), none for \(\lambda_1\) even — and machine-checked in Lean 4, sorry-free. A second, disjoint cause: only \(\lfloor (N+1)^2/2\rfloor\) of the \((N+1)^2\) boundary-condition classes of \(SU(N)\) have a coset sector at all, for every \(N\).

    Anchored, not fitted: twelve printed coefficients of arXiv:2312.08608 come out exactly, and two further published potentials follow from the same mode counts.

    📄 doi.org/10.5281/zenodo.21727094
    💻 github.com/karlesmarin/higgs-b

    #Physics #ParticlePhysics #HEP #BSM #Higgs #ExtraDimensions #Lean4

  5. A #lean4 paper cut that I hate: it absolutely kills me that they mixed the fields `val` and `property` on Subtype, so every time i try to use it i go down the dead ends of trying BOTH `value` and `prop` and being wrong.

  6. A #lean4 paper cut that I hate: it absolutely kills me that they mixed the fields `val` and `property` on Subtype, so every time i try to use it i go down the dead ends of trying BOTH `value` and `prop` and being wrong.

  7. Formalized in Lean4:

    The map F : K³ → K³ has constant Jacobian −2 yet identifies three points. This is no accident of algebra: F is, definitionally, the proof is rfl, the map "binary cubic with a marked simple root ↦ forget the marking", for the family cT³ − 2T²U + bTU² − 2aU³.

    So every fiber is the set of simple roots of one cubic. The Keller condition says the root you stand on is simple, a local fact. It cannot control how many simple roots the cubic has: 3 off the discriminant hypersurface, 1 on it, 0 on its singular curve (the triple roots), which is exactly the locus the image misses. All machine-checked now, including disc = −4W and "missed curve = singular locus of the discriminant".

    My favorite part is arithmetic: over any field of char ≠ 2, a fiber can never have exactly two rational points, two roots force a third. Vieta, made constructive.

    The Jacobian Conjecture failed because pointwise simplicity of roots doesn't count roots.

    github.com/alerad/alpoge-lean

    #Lean4 #Mathlib #JacobianConjecture #FormalVerification

  8. A computer found one solution to a hard model-building problem. Then we proved you will *always* find one — and machine-checked the proof in Lean 4. 🧮

    The setting: which fermions complete a quark block in a 6D \(SU(4)\) gauge–Higgs model on an orbifold, so that every local consistency condition (anomalies + "tadpoles") cancels? These are exact integer / representation-theory conditions over \(SU(4)\) weights.

    One witness is easy to distrust — a fluke? The structural answer is no. Writing the anomaly map \(A\) and the tadpole map \(\Theta\) as linear functionals of the added matter, two exact facts settle it:
    • \(\operatorname{rank}[A;\Theta]=8+2=10\): the tadpole is *independent* of the anomalies — no conserved invariant traps it;
    • anomaly-neutral additions realise *every* tadpole direction (Farkas certificates), so their cone is all of \(\mathbb{R}^2\).

    Hence *every* anomaly-free completion is tadpole-compatible: an Existence theorem, not luck. The certificate is checked by the Lean 4 kernel, depending only on propext. The same rank+cone test ships as a reusable tool for any orbifold model. Honest scope: one infrared step stays open.

    📄 zenodo.org/records/21432626
    💻 github.com/karlesmarin/ghu-su4

    #Lean4 #FormalMath #ProofAssistant #RepresentationTheory #Maths #Physics

  9. A computer found one solution to a hard model-building problem. Then we proved you will *always* find one — and machine-checked the proof in Lean 4. 🧮

    The setting: which fermions complete a quark block in a 6D \(SU(4)\) gauge–Higgs model on an orbifold, so that every local consistency condition (anomalies + "tadpoles") cancels? These are exact integer / representation-theory conditions over \(SU(4)\) weights.

    One witness is easy to distrust — a fluke? The structural answer is no. Writing the anomaly map \(A\) and the tadpole map \(\Theta\) as linear functionals of the added matter, two exact facts settle it:
    • \(\operatorname{rank}[A;\Theta]=8+2=10\): the tadpole is *independent* of the anomalies — no conserved invariant traps it;
    • anomaly-neutral additions realise *every* tadpole direction (Farkas certificates), so their cone is all of \(\mathbb{R}^2\).

    Hence *every* anomaly-free completion is tadpole-compatible: an Existence theorem, not luck. The certificate is checked by the Lean 4 kernel, depending only on propext. The same rank+cone test ships as a reusable tool for any orbifold model. Honest scope: one infrared step stays open.

    📄 zenodo.org/records/21432626
    💻 github.com/karlesmarin/ghu-su4

    #Lean4 #FormalMath #ProofAssistant #RepresentationTheory #Maths #Physics

  10. 👨‍🚀🚀 Ah, yes, because nothing says "I'm serious about math" like naming your #AI system 'Star Fleet' and using Lean 4 to conquer #math problems like it's the final frontier. 🖖 Just a casual desktop app with a mere *2,000 vCPUs* per starship, as if everyone's got a MacBook Pro strapped to an IBM mainframe. 😂 Who knew solving Erdős problems was as easy as running a script from a Star Trek fan's garage?
    starfleetmath.com/ #StarFleet #Lean4 #ErdősProblems #TechHumor #HackerNews #ngated

  11. 👨‍🚀🚀 Ah, yes, because nothing says "I'm serious about math" like naming your #AI system 'Star Fleet' and using Lean 4 to conquer #math problems like it's the final frontier. 🖖 Just a casual desktop app with a mere *2,000 vCPUs* per starship, as if everyone's got a MacBook Pro strapped to an IBM mainframe. 😂 Who knew solving Erdős problems was as easy as running a script from a Star Trek fan's garage?
    starfleetmath.com/ #StarFleet #Lean4 #ErdősProblems #TechHumor #HackerNews #ngated

  12. The Proof in the Code: How a Truth Machine Is Transforming Math and AI
    by Kevin Hartnett
    #LeanLang #Lean4 #LeanProver
    amzn.to/4xnAIj8

  13. The Proof in the Code: How a Truth Machine Is Transforming Math and AI
    by Kevin Hartnett
    #LeanLang #Lean4 #LeanProver
    amzn.to/4xnAIj8

  14. От augmentation к symbiosis: новая парадигма программирования

    Использование средств генеративного искусственного интеллекта (ИИ) в разработке программного обеспечения радикально ускоряет создание кода...

    #искусственныйинтеллект #программирование #код #разработка #SemanticCore #KnowledgeGraphs #нейросимволическиеагенты #DOLPHIN #SYNVER #Imandra #Lean4 #symbiosis #NeuroSymbolicAI #LOGOSκ #NIGC #FAIRCARE #AUniversum #SemanticDB #Python #Λоператоры #Logos #код

    Источник: dstglobal.ru/club/1179-ot-augm

  15. От augmentation к symbiosis: новая парадигма программирования

    Использование средств генеративного искусственного интеллекта (ИИ) в разработке программного обеспечения радикально ускоряет создание кода...

    #искусственныйинтеллект #программирование #код #разработка #SemanticCore #KnowledgeGraphs #нейросимволическиеагенты #DOLPHIN #SYNVER #Imandra #Lean4 #symbiosis #NeuroSymbolicAI #LOGOSκ #NIGC #FAIRCARE #AUniversum #SemanticDB #Python #Λоператоры #Logos #код

    Источник: dstglobal.ru/club/1179-ot-augm

  16. Say, I have an inductively defined type in #lean4 like

    inductive foo
    | quux
    | bar : foo -> foo -> foo

    and I do a proof or simply something like

    #check foo.bar .quux .quux

    Why do I get an output like

    foo.quux.bar foo.quux

    instead of something like

    foo.bar foo.quux foo.quux

    which to me would be more readable? I'm pretty sure that I can get what I want and that this is "stupid" question. But how do I get it?

  17. Say, I have an inductively defined type in #lean4 like

    inductive foo
    | quux
    | bar : foo -> foo -> foo

    and I do a proof or simply something like

    #check foo.bar .quux .quux

    Why do I get an output like

    foo.quux.bar foo.quux

    instead of something like

    foo.bar foo.quux foo.quux

    which to me would be more readable? I'm pretty sure that I can get what I want and that this is "stupid" question. But how do I get it?

  18. So, just double-checking how #Lean4 and #Mathlib work:

    * Lean takes 3GiB of RAM and a minute to open Mathlib
    * Lean requires about 10min to build itself in CI, only verifying required theorems
    * Verifying all of Mathlib is measured in hours
    * Lean's kernel is untrustworthy due to junk theorems

    And yet I'm a clown for using #Metamath? At some point we ought to reconsider the type-theory fetish.

  19. 🚀 Oh, look! Another attempt to make Lean 4 relevant by shoehorning it into socket state machines. 😂 Apparently, the best runtime check is one that doesn't bother existing at all—because why solve real problems when you can just redefine them as types? 🙄
    ngrislain.github.io/blog/2026- #Lean4 #Lean4StateMachines #RuntimeChecks #SoftwareDevelopment #TypeSystems #HackerNews #ngated

  20. 🚀 Oh, look! Another attempt to make Lean 4 relevant by shoehorning it into socket state machines. 😂 Apparently, the best runtime check is one that doesn't bother existing at all—because why solve real problems when you can just redefine them as types? 🙄
    ngrislain.github.io/blog/2026- #Lean4 #Lean4StateMachines #RuntimeChecks #SoftwareDevelopment #TypeSystems #HackerNews #ngated

  21. Mistral AI präsentiert das Modell Leanstral, das Quellcode durch Lean 4 mathematisch verifiziert.

    Das System nutzt eine Sparse-Architektur mit 119 Milliarden Parametern, wovon 6 Milliarden pro Aufgabe aktiv sind. Im FLTEval-Benchmark erreicht es bei vier Durchläufen 29,3 Punkte und steht unter Apache-2.0-Lizenz bereit.

    #Leanstral #MistralAI #Lean4 #OpenSource #News
    all-ai.de/news/news26top/mistr

  22. Lean 4 is apparently the new secret sauce of #AI dominance, because who knew that theorem proving could be so *riveting*? 🤔✨ But don't worry, before you can learn how to take over the world with math, you'll need to pass the Vercel Security Checkpoint IQ test, where only the chosen ones with #JavaScript enabled may proceed. 🛂🔒
    venturebeat.com/ai/lean4-how-t #Lean4 #TheoremProving #VercelSecurity #HackerNews #ngated

  23. Lean 4 is apparently the new secret sauce of #AI dominance, because who knew that theorem proving could be so *riveting*? 🤔✨ But don't worry, before you can learn how to take over the world with math, you'll need to pass the Vercel Security Checkpoint IQ test, where only the chosen ones with #JavaScript enabled may proceed. 🛂🔒
    venturebeat.com/ai/lean4-how-t #Lean4 #TheoremProving #VercelSecurity #HackerNews #ngated

  24. This is also not too different to how #Lean4 implements mutability and loops in its do-notation.

    (Though I think Lean does not use a key-value-store, but rather just nests multiple State Monad Transformers inside of each other.)

  25. This is also not too different to how #Lean4 implements mutability and loops in its do-notation.

    (Though I think Lean does not use a key-value-store, but rather just nests multiple State Monad Transformers inside of each other.)

  26. 🎉 Behold! A groundbreaking compilation of "junk theorems" in #Lean4, because why not waste your time with math that doesn't matter? 😂 Dive into this #GitHub treasure trove and make your brain cells work overtime for zero reward! 🧠💥
    github.com/James-Hanson/junk-t #junktheorems #mathhumor #brainwork #wasteoftime #HackerNews #ngated

  27. In the thrilling new world of #Lean4, we've finally proven bounds for the Randomized MaxCut #Approximation algorithm that nobody asked for. 📈🔍 Now you can confidently cut those graphs like a pro while impressing... well, nobody. Because who doesn't love an NP-Complete problem just chilling with some approximation algorithms? 🙄🎉
    abhamra.com/blog/randomized-ma #RandomizedMaxCut #NPComplete #Algorithms #GraphTheory #HackerNews #ngated

  28. 🎉 Welcome to the mind-bending world of Lean 4, where scattered resources and typos unite to create the most "informal" #introduction to a formal language ever conceived. 🤪 Just remember, your keyboard shortcuts will be more useful than the article itself, as it takes you on a thrilling #journey from QED to ZZZ. 😴🚀
    sdiehl.github.io/zero-to-qed/0 #Lean4 #Informal #Learning #Programming #HackerNews #ngated