i7iz!dZddlZddlmZmZmZddlmZmZm Z m Z m Z m Z m Z mZddgZGddeZeZGddeZy) z pygments.lexers.lean ~~~~~~~~~~~~~~~~~~~~ Lexers for the Lean theorem prover. :copyright: Copyright 2006-2025 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. N) RegexLexerwordsinclude)CommentOperatorKeywordNameStringNumberGeneric Whitespace Lean3Lexer Lean4LexerceZdZdZdZdZddgZdgZddgZd Z d Z e d ze zd zZ d e fde jdfdedfdej fedddefedddej(fedddej*fedefe efde ze j0fdej4fdej4fdej4fde j6dfde j8fd ej:fd!ej<j>fged"ddej@fed#ddejBfd$ejBd%fed&d'efe"d(gd)ejBd*fe"d(gd+ejFfdejFd,fd-ejFd*fd.ejFfgd+e jfd-e jd*fd.e jfgd/e j6fd0e jHfde j6d*fgd1Z%d2Z&y3)4rz( For the Lean 3 theorem prover. Leanz,https://leanprover-community.github.io/lean3leanlean3*.leanz text/x-leanz text/x-lean3z2.0u(?![λΠΣ])[_a-zA-Zα-ωΑ-Ωϊ-ϻἀ-῾℀-⅏𝒜-𝖟](?:(?![λΠΣ])[_a-zA-Zα-ωΑ-Ωϊ-ϻἀ-῾℀-⅏𝒜-𝖟0-9'ⁿ-₉ₐ-ₜᵢ-ᵪ])*(\.)*\s+/-- docstring/-commentz--.*?$)forallfunPifromhaveshowassumesufficesletifelsetheninwithcalcmatchdo\bprefixsuffixsorryadmit)SortPropType)():{}[]⟨⟩u‹u›⦃⦄:=,``?z0x[A-Za-z0-9]+z0b[01]+\d+"stringz='(?:(\\[\\\"'nt])|(\\x[0-9a-fA-F]{2})|(\\u[0-9a-fA-F]{4})|.)'[~?][a-z][\w\']*:\S)importrenaminghiding namespacelocalprivate protectedsectionromitrQrPexportopen attribute)(lemmatheoremdef definitionexampleaxiomaxiomsconstant constantsuniverse universes inductive coinductive structureextendsclassinstance abbreviationznoncomputable theory noncomputablemutualmetarU parameter parametersvariable variablesreserve precedencepostfixr/notationinfixinfixlinfixrbeginbyend set_optionrun_cmd@\[rU)#eval#check#reduce#exit#print#help)r0 expression\]#pop[^/-]+#push-/[/-][^\\"]+z9(?:(\\[\\\"'nt])|(\\x[0-9a-fA-F]{2})|(\\u[0-9a-fA-F]{4}))rrootrUrrrGcPtjd|tjryy)Nz ^import [a-z]皙?research MULTILINEtexts ]/mnt/ssd/data/python-lab/ChefSystem/venv/lib/python3.12/site-packages/pygments/lexers/lean.py analyse_textzLean3Lexer.analyse_text 99%tR\\ : ;N)'__name__ __module__ __qualname____doc__nameurlaliases filenames mimetypes version_added _name_segment_namer r DocrSinglerrr Errorr6rr Symbolr IntegerDoubleCharVariableBuiltinPseudo Namespace Declarationr MultilineEscapetokensrrrrrs D 8CwG I/IM d F "] 2U :EZ VZZ - GY '  '   /18  9 %eE BGMM R +E% H',, W  DM e^V]] +  /  ( V^^ $ 6==( + Mv{{ [ !4== 1 DLL'' (/ 4 E +-4,=,= ?0E1+0-4,?,?1 A2W((+ 6 & ' L !S* XG'' 0 L ! )) * G%%w / G%%v . g'' (   # FJJ ' fjj !  ' I6== Y &-- ( iYFvrceZdZdZdZdZdgZdgZdgZdZ dZ e d ze zd zZ d Z d Z d ZdZdZdefdej&dfdedfdej*feeddej0fedddej4feeej8j:feeefe efde zej>fde fde jBfde jDfdejFdfdejHfd ej8j:fgee ddejJfee ddefd!ejLd"fe'd#gd$ejLd%fe'd#gd&ejPfdejPd'fd(ejPd%fd)ejPfgd&ej&fd(ej&d%fd)ej&fgd*ejFfd+ejRfdejFd%fgd,Z*d-Z+y.)/rz( For the Lean 4 theorem prover. Lean4z#https://github.com/leanprover/lean4lean4rz text/x-lean4z2.18u(?![λΠΣ])[_a-zA-Zα-ωΑ-Ωϊ-ϻἀ-῾℀-⅏𝒜-𝖟](?:(?![λΠΣ])[_a-zA-Zα-ωΑ-Ωϊ-ϻἀ-῾℀-⅏𝒜-𝖟0-9'ⁿ-₉ₐ-ₜᵢ-ᵪ!?])*rr)6rJ unif_hintrKinlinerLrVrmrWr[rarcr_aliasrrprqr/rsrtrurrr|r}r~rrxrOusingrMrfrQrPrSryrdrTrZropaquerXmacroelabsyntax macro_rulesr~whereabbrevrhrerUz#synthriscopedrN)rrobtainrr r!r"r$r%r&r'rwr(r)r*r+nomatchr,at)r6r5r4)8z!=#&z&&*+-/@!z-.z->.z..z...z::z:>;z;;_|z||~z=>z<=z>=z/\z\/u∀uΠuλu↔u∧u∨u≠u≤u≥¬u⁻¹u⬝u▸u→u∃u≈×u⌞u⌟u≡r>r?u↦) r7r8r9r:r;r<r=r@rArBrCrrrrrz--.*$r-r.r1rDz (?<=\.)\d+z(\d+\.\d*)([eE][+-]?[0-9]+)?rErFrGrHrIr{rUrrrrrrrrz \\[n"\\\n]rcPtjd|tjryy)Nz ^import [A-Z]rrrs rrzLean4Lexer.analyse_textrrN),rrrrrrrrrrrr keywords1 keywords2 keywords3 operators punctuationr r rrrrrr6r rr rrrrr Floatrrrrrrrrrrrrrrrsi D /CiG I IM f F "] 2U :E II I IK Z VZZ - GY ' w~~ & 9U5 97<< H %eE BGMM R 9 t||22 3 ;  * D ! e^V]] + F # ,fll ; V^^ $ 6==( + !4== 1 DLL'' (! &9U5 97;L;L M 9U5 97 C W((+ 6 L !  G'' 0 L ! )) * G%%w / G%%v . g'' (   # FJJ ' fjj !  ' FMM * &-- ( S.F`r)rrpygments.lexerrrrpygments.tokenrrrr r r r r __all__r LeanLexerrrrrrsT 55     &nnb  jjr