梭子蟹什么季节吃最好| 左束支传导阻滞是什么意思| 头晕恶心想吐挂什么科| 月经期适合吃什么食物| 硝石是什么| 血糖高喝什么茶好| 男人射的快是什么原因| 吃什么助于长高| 无所事事是什么意思| 刺身什么意思| 钙化什么意思| 社保是什么| 舌尖有裂纹是什么原因| 红花代表什么生肖| 番石榴是什么| 三观是什么| ur品牌属于什么档次| 什么人不能喝豆浆| 狗狗为什么会咬人| 平均血小板体积偏低是什么原因| 低gi什么意思| 哈怂是什么意思| 绎什么意思| 3月27日是什么星座| 恶病质是什么意思| 腺癌是什么原因引起的| 流变是什么意思| 塑料袋是什么垃圾| 目不暇接的意思是什么| 什么是干槽症| 为什么英文怎么说| 支气管炎吃什么药| 什么时候取环最合适| 乳腺检查挂什么科| 家里进黄鼠狼是什么预兆| 肺炎支原体抗体阳性是什么意思| 南京五行属什么| 相交是什么意思| 脱发厉害是什么原因引起的| 掌中宝是什么部位| 八婆什么意思| 膝盖发软无力是什么原因| 红配什么颜色最好看| 毛囊炎什么症状| 什么是什么| 吃什么利尿最快| 淀粉样变性是什么病| 美沙芬片是什么药| 肌酸有什么用| 胃肠炎吃什么药好| 青春永驻什么意思| 例假一个月来两次是什么原因| 天天喝豆浆有什么好处和坏处| 梦见鳄鱼是什么预兆| 吃什么瘦肚子最快| 水痘疫苗第二针什么时候打| 关节咔咔响是什么原因| 孕期用什么护肤品| 全麻手术后为什么不能睡觉| 胎儿没有胎心是什么原因| 琼脂是什么东西| 抖机灵是什么意思| 打喷嚏很臭是什么原因| 痔疮手术后可以吃什么| 看病人送什么水果| 硫酸亚铁适合浇什么花| 祥五行属什么| 睡觉放屁是什么原因| pumpkin是什么意思| 红糖和黑糖有什么区别| 红点是什么原因引起的| 肉筋是什么| hpv是什么引起的| jay是什么意思| 刺瘊子是什么原因造成的| 产后漏尿是什么原因| 后背沉重感是什么原因引起的| 6月28日什么星座| 牛肉烧什么菜最好吃| 值神天刑是什么意思| 男人很man是什么意思| 走花路是什么意思| 什么是亚麻籽| 肠炎能吃什么| 甲钴胺有什么作用| 脑死亡是什么意思| 肝囊肿吃什么药能消除| 脊椎和脊柱有什么区别| 为什么青蛙跳的比树高| 梦见自己爷爷死了是什么预兆| 甲功是查什么的| 头皮脂溢性皮炎用什么药| 经常肚子疼拉肚子是什么原因| 天公作美是什么生肖| 唏嘘什么意思| 维生素c十一什么意思| 巨蟹跟什么星座最配| 月亮象征着什么| polo是什么意思| 李世民字什么| 人生最重要的是什么| 肝不好看什么科| 猫死后为什么要挂在树上| 跳蚤长什么样子| 心率高是什么原因| 什么是走读生| 1972年是什么命| 四面楚歌是什么意思| 眉毛痒痒代表什么预兆| 粉尘螨是什么东西| 处女膜是什么颜色| 三点水加盆读什么| 吃一个海参相当于吃了什么| 包公是什么生肖| 腹胀是什么感觉| 为什么会得阴虱| point是什么意思| 血压高降不下来是什么原因| 2月1号是什么星座| 什么药溶血栓最好| 褪黑素不能和什么一起吃| 梦见放鞭炮是什么意思| 汗毛旺盛是什么原因| 湿气重挂什么科| 鼻窦炎用什么药好| circle是什么意思| 冲鼠煞北是什么意思| 洋葱炒什么| 血压低吃什么水果| 猫在风水上代表什么| 因材施教什么意思| sandisk是什么牌子| 宫颈肥大有什么症状| 两个人背靠背是什么牌子| 针灸有什么作用| 什么药可以缩阴紧致| 孩子晚上磨牙是什么原因| 生孩子前要注意什么| 大麦茶是什么做的| 吃洋葱对身体有什么好处| 颈部彩超能检查出什么| 一九四九年属什么生肖| 什么情况下喝补液盐| 法图麦在回族什么意思| 心脏病吃什么好| 中古包是什么意思| 浙江有什么城市| 一什么黑影| 羊肚菌是什么| 油价什么时候调整| 盆腔积液是什么意思| 月蚀是什么意思| 脾胃湿热吃什么药好| 0是什么数| 12.21是什么星座| 尿性什么意思| 胎盘老化对胎儿有什么影响| 子孙满堂是什么生肖| 什么是宫颈息肉| 五十岁叫什么之年| 事半功倍的意思是什么| 知了吃了有什么好处| 胃出血恢复期吃什么好| 何去何从是什么意思| 前置胎盘是什么意思| 圣女果是什么水果| 蒲公英的约定表达什么| 预防保健科是做什么的| 鱼吃什么| 来姨妈不能吃什么水果| 现在最火的歌是什么| 陪葬是什么意思| 鳌虾吃什么| 口加女念什么| 中央处理器由什么组成| 欧珀莱属于什么档次| 许嵩的粉丝叫什么| cheese什么意思| 姑姑的女儿叫什么| 太平天国失败的根本原因是什么| 什么叫扁平疣长什么样| 爆粗口是什么意思| 车震是什么意思| 免疫是什么意思| www是什么意思| 阴阳数字是什么数| 氧饱和度是什么意思| 白内障的主要症状是什么| 晨僵是什么症状| 缺钾是什么原因引起| h1v是什么病| 火拼是什么意思| 滑档是什么意思| 打狂犬疫苗不能吃什么食物| 吃酸的有什么好处| 冰释前嫌什么意思| 桃胶有什么作用| 啤酒加什么好喝| 纳呆是什么意思| 大什么大| 左手臂麻木是什么征兆| 做梦人死了是什么征兆| 奶水不足吃什么下奶多| 硬度不够吃什么药调理| 狗癣用什么药最有效| 常州冬至吃什么| 乳腺结节应该挂什么科| 颈动脉强回声斑块是什么意思| 海龟汤是什么| 孩子腿疼是什么原因| 什么就像什么造句| 16岁是什么年华| 嗓子干痒吃什么药效果好| mmc是什么意思| 茶苯海明片是什么药| 今年是什么| 营业执照什么时候年审| 高血压可以吃什么肉| 室性早搏是什么意思| 针对是什么意思| exo是什么意思啊| 坐月子吃什么水果好| 什么是机械表| 孩子一直咳嗽不好是什么原因| 脾虚是什么原因引起的| 巳时五行属什么| 腊月初八是什么星座| 立春之后是什么节气| 做爱为什么那么舒服| 糖化血红蛋白高是什么意思| 1985年是什么年| 稻花鱼是什么鱼| 为什么做梦| 什么原因导致脑出血| 开火上下结构念什么| 嗷嗷待哺是什么意思| 胃炎有什么症状| pos什么意思| 黄什么什么| 孩子专注力差去什么医院检查| 尿浑浊是什么病的前兆| gbs是什么意思| 粉盒和硒鼓有什么区别| 白绫是什么意思| 湿疹是什么病的前兆| 前卫是什么意思| 吃什么最健康| 沙门氏菌是什么| 妇科检查白细胞酯酶阳性是什么意思| 梦见马是什么意思| 零七年属什么生肖| 海龟汤是什么| 11年属什么| 洁颜蜜是什么| 肺部结节是什么意思啊| touch是什么牌子| 补气血吃什么最好最快| 男蛇配什么属相最好| 幽门螺旋杆菌弱阳性是什么意思| 血清铁蛋白高是什么原因| 台州为什么念第一声| 饭后呕吐是什么原因引起的| 乳腺癌什么症状| 下面痒是什么原因女性| 百度Jump to content

trab是甲状腺什么指标

From Wikipedia, the free encyclopedia
Lean
ParadigmFunctional programming, Imperative programming
FamilyProof assistant
DeveloperLean FRO
First appeared2013; 12 years ago (2013)
Stable release
4.21.0[1] Edit this on Wikidata / 30 June 2025; 28 days ago (30 June 2025)
Typing disciplineStatic, strong, inferred
Implementation languageLean, C++
OSCross-platform
LicenseApache License 2.0
Websitelean-lang.org
Influenced by
ML
Rocq (previously known as Coq)
Haskell
百度 在不断的“加码”中,一些人才也被眼前诱人的“蛋糕”所打动,但是真的把人才引进来后,才发现其中的“不妥”之处。

Lean is a proof assistant and a functional programming language.[2] It is based on the calculus of constructions with inductive types. It is an open-source project hosted on GitHub. Development is currently supported by the non-profit Lean Focused Research Organization (FRO).

History

[edit]

Lean was developed primarily by Leonardo de Moura while employed by Microsoft Research and now Amazon Web Services, and has had significant contributions from other coauthors and collaborators during its history.

It was launched by Leonardo de Moura at Microsoft Research in 2013.[3] The initial versions of the language, later known as Lean 1 and 2, were experimental and contained features such as support for homotopy type theory – based foundations that were later dropped.

Lean 3 (first released Jan 20, 2017) was the first moderately stable version of Lean. It was implemented primarily in C++ with some features written in Lean itself. After version 3.4.2 Lean 3 was officially end-of-lifed while development of Lean 4 began. In this interim period members of the Lean community developed and released unofficial versions up to 3.51.1.

In 2021, Lean 4 was released, which was a reimplementation of the Lean theorem prover capable of producing C code which is then compiled, enabling the development of efficient domain-specific automation.[4] Lean 4 also contains a macro system and improved type class synthesis and memory management procedures over the previous version. Another benefit compared to Lean 3 is the ability to avoid touching C++ code in order to modify the frontend and other key parts of the core system, as they are now all implemented in Lean and available to the end user to be overridden as needed.[2]

Lean 4 is not backwards-compatible with Lean 3.[5]

In 2023, the Lean FRO was formed, with the goals of improving the language's scalability and usability, and implementing proof automation.[6]

In 2025, ACM SIGPLAN Programming Languages Software Award was awarded to Gabriel Ebner, Soonho Kong, Leo de Moura and Sebastian Ullrich for Lean, cited for its "significant impact on mathematics, hardware and software verification, and AI".[7]

Overview

[edit]

Libraries

[edit]

The official lean package includes a standard library batteries, which implements common data structures that may be used for both mathematical research and more conventional software development.[8]

In 2017, a community-maintained project to develop a Lean library mathlib began, with the goal to digitize as much of pure mathematics as possible in one large cohesive library, up to research level mathematics.[9][10] As of May 2025, mathlib had formalized over 210,000 theorems and 100,000 definitions in Lean.[11]

Editors integration

[edit]

Lean integrates with:[12]

Interfacing is done via a client-extension and Language Server Protocol server.

It has native support for Unicode symbols, which can be typed using LaTeX-like sequences, such as "\times" for "×". Lean can also be compiled to JavaScript and accessed in a web browser and has extensive support for meta-programming.

Examples (Lean 4)

[edit]

The natural numbers can be defined as an inductive type. This definition is based on the Peano axioms and states that every natural number is either zero or the successor of some other natural number.

inductive Nat : Type
| zero : Nat
| succ : Nat  Nat

Addition of natural numbers can be defined recursively, using pattern matching.

def Nat.add : Nat  Nat  Nat
| n, Nat.zero   => n                      -- n + 0 = n  
| n, Nat.succ m => Nat.succ (Nat.add n m) -- n + succ(m) = succ(n + m)

This is a simple proof of for two propositions P and Q (where is the conjunction and the implication) in Lean using tactic mode:

theorem and_swap (p q : Prop) : p  q  q  p := by
  intro h            -- assume p ∧ q with proof h, the goal is q ∧ p
  apply And.intro    -- the goal is split into two subgoals, one is q and the other is p
  · exact h.right    -- the first subgoal is exactly the right part of h : p ∧ q
  · exact h.left     -- the second subgoal is exactly the left part of h : p ∧ q

This same proof in term mode:

theorem and_swap (p q : Prop) : p  q  q  p :=
    fun ?hp, hq? => ?hq, hp?

Usage

[edit]

Mathematics

[edit]

Lean has received attention from mathematicians such as Thomas Hales,[13] Kevin Buzzard,[14] Terence Tao,[15] and Heather Macbeth.[16] Hales is using it for his project, Formal Abstracts.[17] Buzzard uses it for the Xena project.[18] One of the Xena Project's goals is to rewrite every theorem and proof in the undergraduate math curriculum of Imperial College London in Lean. Tao released a Lean companion to his Real analysis textbook Analysis I, consisting of a formalization of selected sections of the mathematical text.[19] Macbeth is using Lean to teach students the fundamentals of mathematical proof with instant feedback.[20]

Noteworthy formalizations

[edit]

In 2021, a team of researchers used Lean to verify the correctness of a proof by Peter Scholze in the area of condensed mathematics. The project garnered attention for formalizing a result at the cutting edge of mathematical research.[21] In 2023, Terence Tao used Lean to formalize a proof of the Polynomial Freiman-Ruzsa (PFR) conjecture, a result published by Tao and collaborators in the same year.[22]

Artificial intelligence

[edit]

In 2022, OpenAI and Meta AI independently created AI models to generate proofs of various high-school-level olympiad problems in Lean.[23] Meta AI's model is available for public use with the Lean environment.[24]

In 2023, Vlad Tenev and Tudor Achim co-founded startup Harmonic, which aims to reduce AI hallucinations by generating and checking Lean code.[25]

In 2024, Google DeepMind created AlphaProof[26] which proves mathematical statements in Lean at the level of a silver medalist at the International Mathematical Olympiad. This was the first AI system that achieved a medal-worthy performance on a math olympiad's problems.[27]

In April 2025, DeepSeek introduced DeepSeek-Prover-V2, an AI model designed for theorem proving in Lean 4, built on top of DeepSeek-V3.[28]

See also

[edit]

References

[edit]
  1. ^ "Release 4.21.0". 30 June 2025. Retrieved 22 July 2025.
  2. ^ a b Moura, Leonardo de; Ullrich, Sebastian (2021). "The Lean 4 Theorem Prover and Programming Language". In Platzer, André; Sutcliffe, Geoff (eds.). Automated Deduction – CADE 28. Lecture Notes in Computer Science. Vol. 12699. Cham: Springer International Publishing. pp. 625–635. doi:10.1007/978-3-030-79876-5_37. ISBN 978-3-030-79876-5.
  3. ^ "About". Lean Language. Retrieved 2025-08-04.
  4. ^ Moura, Leonardo de; Ullrich, Sebastian (2021). Platzer, Andr'e; Sutcliffe, Geoff (eds.). Automated Deduction -- CADE 28. Springer International Publishing. pp. 625–635. doi:10.1007/978-3-030-79876-5_37. ISBN 978-3-030-79876-5. S2CID 235800962. Retrieved 24 March 2023.
  5. ^ "Significant changes from Lean 3". Lean Manual. Retrieved 24 March 2023.
  6. ^ "Mission". Lean FRO. 2025-08-04. Retrieved 2025-08-04.
  7. ^ "Programming Languages Software Award". www.sigplan.org. Archived from the original on 6 Jul 2025. Retrieved 2025-08-04.
  8. ^ "batteries". GitHub. Retrieved 2025-08-04.
  9. ^ "Building the Mathematical Library of the Future". Quanta Magazine. October 2020. Archived from the original on 2 Oct 2020.
  10. ^ "Lean community". leanprover-community.github.io. Retrieved 2025-08-04.
  11. ^ "Mathlib statistics". leanprover-community.github.io. Retrieved 2025-08-04.
  12. ^ "Installing Lean 4 on Linux". leanprover-community.github.io. Retrieved 2025-08-04.
  13. ^ Hales, Thomas (September 18, 2018). "A Review of the Lean Theorem Prover". Jigger Wit. Archived from the original on 21 Nov 2020.
  14. ^ Buzzard, Kevin. "The Future of Mathematics?" (PDF). Retrieved 6 October 2020.
  15. ^ Tao, Terence (31 May 2025). "A Lean companion to "Analysis I"". Terry Tao -- What's New. WordPress. Archived from the original on 31 May 2025.
  16. ^ Macbeth, Heather. "The Mechanics of Proof". hrmacbeth.github.io. Archived from the original on 5 Jun 2024.
  17. ^ "Formal Abstracts". Github.
  18. ^ "What is the Xena project?". Xena. 8 May 2019.
  19. ^ Tao, Terence. "analysis". github.com/teorth.
  20. ^ Roberts, Siobhan (July 2, 2023). "A.I. Is Coming for Mathematics, Too". New York Times. Archived from the original on 1 May 2024.
  21. ^ Hartnett, Kevin (July 28, 2021). "Proof Assistant Makes Jump to Big-League Math". Quanta Magazine. Archived from the original on 2 Jan 2022.
  22. ^ Sloman, Leila (2025-08-04). "'A-Team' of Math Proves a Critical Link Between Addition and Sets". Quanta Magazine. Retrieved 2025-08-04.
  23. ^ "Solving (some) formal math olympiad problems". OpenAI. February 2, 2022. Retrieved March 13, 2024.
  24. ^ "Teaching AI advanced mathematical reasoning". Meta AI. November 3, 2022. Retrieved March 13, 2024.
  25. ^ Metz, Cade (23 September 2024). "Is Math the Path to Chatbots That Don't Make Stuff Up?". New York Times. Archived from the original on 24 Sep 2024.
  26. ^ "AI achieves silver-medal standard solving International Mathematical Olympiad problems". Google DeepMind. 2025-08-04. Retrieved 2025-08-04.
  27. ^ Roberts, Siobhan (July 25, 2024). "Move Over, Mathematicians, Here Comes AlphaProof". New York Times. Archived from the original on July 29, 2024.
  28. ^ "DeepSeek upgrades its math-focused AI model Prover". Yahoo Finance. April 30, 2025. Retrieved April 30, 2025.
[edit]
什么人容易得胆结石 办理港澳通行证需要带什么证件 什么是gay 打招呼是什么意思 青城之恋是什么生肖
脚背肿是什么原因 火红的什么 女生私处长什么样 斑斓是什么意思 喝柠檬水对身体有什么好处
孩子为什么不听话 联字五行属什么 毛囊炎的症状是什么原因引起的 垂直同步有什么用 什么药去湿气最好最快
头上戴冠是什么生肖 天气热吃什么解暑 00年属什么 理数是什么意思 女生下面叫什么
肝功能挂什么科hcv7jop5ns0r.cn 咳嗽恶心干呕是什么原因引起的hcv7jop6ns0r.cn 胰腺炎不能吃什么hcv8jop4ns8r.cn 甲状腺去医院挂什么科hcv9jop0ns3r.cn 肾病有什么症状hcv9jop2ns9r.cn
什么东西吃蟑螂hcv9jop4ns5r.cn 嗝屁是什么意思hcv8jop0ns5r.cn 脚指甲盖凹凸不平是什么原因hcv8jop7ns4r.cn 拉倒吧是什么意思hcv8jop4ns9r.cn 什么叫tct检查hcv9jop6ns4r.cn
阴部毛变白是什么原因hcv8jop2ns2r.cn 盆腔积液是什么意思啊hcv8jop9ns4r.cn 梦见鳄鱼是什么意思inbungee.com 嗓子疼有痰吃什么药chuanglingweilai.com 四面楚歌是什么生肖hcv8jop4ns2r.cn
梦见捡手机是什么意思hcv9jop4ns9r.cn 桑榆未晚是什么意思hcv8jop1ns5r.cn 阿司匹林肠溶片什么时间吃最好hcv8jop2ns4r.cn 被蜜蜂蛰了涂什么药膏hcv8jop8ns1r.cn 甲肝戊肝是什么病96micro.com
百度