
    5hz!                         S r SSKrSSKJrJrJr  SSKJrJrJ	r	J
r
JrJrJrJr  SS/r " S S\5      r\r " S S\5      rg)	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)
RegexLexerwordsinclude)CommentOperatorKeywordNameStringNumberGeneric
Whitespace
Lean3Lexer
Lean4Lexerc                      \ rS rSrSrSrSrSS/rS/rSS	/r	S
r
Sr\S-   \-   S-   rS\4S\R                  S4S\S4S\R"                  4\" SSSS9\4\" SSSS9\R*                  4\" SSSS9\R,                  4\" S5      \4\\4S\-   \R2                  4S\R6                  4S\R6                  4S\R6                  4S\R8                  S4S \R:                  4S!\R<                  4S"\R>                  R@                  4/\" S#SSS9\RB                  4\" S$SSS9\RD                  4S%\RD                  S&4\" S'SS(9\4\#" S)5      /S*\RD                  S+4\#" S)5      /S,\RH                  4S\RH                  S-4S.\RH                  S+4S/\RH                  4/S,\R                  4S.\R                  S+4S/\R                  4/S0\R8                  4S1\RJ                  4S\R8                  S+4/S2.r&S3 r'S4r(g5)6r      z 
For the Lean 3 theorem prover.
Leanz,https://leanprover-community.github.io/lean3leanlean3*.leanztext/x-leanztext/x-lean3z2.0u   (?![λΠΣ])[_a-zA-Zα-ωΑ-Ωϊ-ϻἀ-῾℀-⅏𝒜-𝖟](?:(?![λΠΣ])[_a-zA-Zα-ωΑ-Ωϊ-ϻἀ-῾℀-⅏𝒜-𝖟0-9'ⁿ-₉ₐ-ₜᵢ-ᵪ])*(\.)*\s+/--	docstring/-commentz--.*?$)forallfunPifromhaveshowassumesufficesletifelsetheninwithcalcmatchdo\bprefixsuffixsorryadmit)SortPropType)():{}[]   ⟨   ⟩u   ‹u   ›   ⦃   ⦄:=,``?z0x[A-Za-z0-9]+z0b[01]+\d+"stringz='(?:(\\[\\\"'nt])|(\\x[0-9a-fA-F]{2})|(\\u[0-9a-fA-F]{4})|.)'[~?][a-z][\w\']*:\S)importrenaminghiding	namespacelocalprivate	protectedsectionr   omitrR   rQ   exportopen	attribute)(lemmatheoremdef
definitionexampleaxiomaxiomsconstant	constantsuniverse	universes	inductivecoinductive	structureextendsclassinstanceabbreviationznoncomputable theorynoncomputablemutualmetarV   	parameter
parametersvariable	variablesreserve
precedencepostfixr0   notationinfixinfixlinfixrbeginbyend
set_optionrun_cmd@\[rV   )#eval#check#reduce#exit#print#help)r1   
expression\]#pop[^/-]+#push-/[/-][^\\"]+z9(?:(\\[\\\"'nt])|(\\x[0-9a-fA-F]{2})|(\\u[0-9a-fA-F]{4}))r   rootrV   r   r   rH   c                 \    [         R                  " SU [         R                  5      (       a  gg )Nz^import [a-z]皙?research	MULTILINEtexts    _/var/www/html/cementerio_25MayoBackend/env/lib/python3.13/site-packages/pygments/lexers/lean.pyanalyse_textLean3Lexer.analyse_text   "    99%tR\\:: ;     N))__name__
__module____qualname____firstlineno____doc__nameurlaliases	filenames	mimetypesversion_added_name_segment_namer   r
   Docr   Singler   r   r   Errorr7   r   r	   Symbolr   IntegerDoubleCharVariableBuiltinPseudo	NamespaceDeclarationr   	MultilineEscapetokensr   __static_attributes__r   r   r   r   r      s    D
8CwG
I/IM	d  F"]2U:E Z VZZ-GY''   	/ 18	9
 %eEBGMMR+E%H',,W   DMe^V]]+/(V^^$6==(+Mv{{[!4==1DLL''(/
4  	 E	+ -4,=,=	?  0 E1+0 -4,?,?1A2 W((+6   &' L!S*
X G''0L!

 ))*G%%w/G%%v.g''(	
 

#FJJ'fjj!
 'I6==Y&--(
iYFvr   c                      \ rS rSrSrSrSrS/rS/rS/r	Sr
S	r\S
-   \-   S-   rSrSrSrSrSrS\4S\R(                  S4S\S4S\R,                  4\" \SSS9\R2                  4\" SSSS9\R6                  4\" \5      \R:                  R<                  4\" \5      \4\\4S\-   \R@                  4S\!4S\!RD                  4S\!RF                  4S\RH                  S4S \RJ                  4S!\R:                  R<                  4/\" \SSS9\RL                  4\" \SSS9\4S"\RN                  S#4\(" S$5      /S%\RN                  S&4\(" S$5      /S'\RR                  4S\RR                  S(4S)\RR                  S&4S*\RR                  4/S'\R(                  4S)\R(                  S&4S*\R(                  4/S+\RH                  4S,\RT                  4S\RH                  S&4/S-.r+S. r,S/r-g0)1r      z 
For the Lean 4 theorem prover.
Lean4z#https://github.com/leanprover/lean4lean4r   ztext/x-lean4z2.18u   (?![λΠΣ])[_a-zA-Zα-ωΑ-Ωϊ-ϻἀ-῾℀-⅏𝒜-𝖟](?:(?![λΠΣ])[_a-zA-Zα-ωΑ-Ωϊ-ϻἀ-῾℀-⅏𝒜-𝖟0-9'ⁿ-₉ₐ-ₜᵢ-ᵪ!?])*r   r   )6rK   	unif_hintrL   inlinerM   rW   rn   rX   r\   rb   rd   r`   aliasr   rq   rr   r0   rt   ru   rv   rs   r}   r~   r   r   ry   rP   usingrN   rg   rR   rQ   rT   rz   re   rU   r[   r   opaquerY   macroelabsyntaxmacro_rulesr   whereabbrevri   rf   rV   z#synthrj   scopedrO   )r   r   obtainr    r!   r"   r#   r%   r&   r'   r(   rx   r)   r*   r+   r,   nomatchr-   at)r7   r6   r5   )8z!=#&z&&*+-/@!z-.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   ↦)r8   r9   r:   r;   r<   r=   r>   rA   rB   rC   rD   r   r   r   r   r   z--.*$r.   r/   r2   rE   z
(?<=\.)\d+z(\d+\.\d*)([eE][+-]?[0-9]+)?rF   rG   rH   rI   rJ   r|   rV   r   r   r   r   r   r   r   r   z
\\[n"\\\n]r   c                 \    [         R                  " SU [         R                  5      (       a  gg )Nz^import [A-Z]r   r   r   s    r   r   Lean4Lexer.analyse_text   r   r   r   N).r   r   r   r   r   r   r   r   r   r   r   r   r   	keywords1	keywords2	keywords3	operatorspunctuationr   r
   r   r   r   r   r   r7   r   r   r	   r   r   r   r   r   Floatr   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r      si    D
/CiG
I IM	f  F"]2U:EIII
IK
 Z VZZ-GY'w~~&9U597<<H%eEBGMMR9t||22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   )r   r   pygments.lexerr   r   r   pygments.tokenr   r   r   r	   r
   r   r   r   __all__r   	LeanLexerr   r   r   r   <module>r      sT    
 5 5      
&n nb 	j jr   