HEX
Server: LiteSpeed
System: Linux s1049.use1.mysecurecloudhost.com 4.18.0-477.27.2.lve.el8.x86_64 #1 SMP Wed Oct 11 12:32:56 UTC 2023 x86_64
User: xedaptot (3356)
PHP: 8.3.31
Disabled: NONE
Upload Files
File: //opt/saltstack/salt/lib/python3.10/site-packages/pygments/lexers/__pycache__/lean.cpython-310.pyc
o

;j�!�@sxdZddlZddlmZmZmZddlmZmZm	Z	m
Z
mZmZm
Z
mZddgZGdd�de�ZeZGdd�de�ZdS)	z�
    pygments.lexers.lean
    ~~~~~~~~~~~~~~~~~~~~

    Lexers for the Lean theorem prover.

    :copyright: Copyright 2006-present 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@s�eZdZdZdZdZddgZdgZddgZd	Z	d
Z
e
de
dZd
efde
jdfdedfdejfedddd�efedddd�ejfedddd�ejfed�efeefdee
jfdejfdejfdejfde
jdfde
jfd ejfd!ejjfged"ddd�ej fed#ddd�ej!fd$ej!d%fed&dd'�efe"d(�gd)ej!d*fe"d(�gd+ej#fdej#d,fd-ej#d*fd.ej#fgd+e
jfd-e
jd*fd.e
jfgd/e
jfd0e
j$fde
jd*fgd1�Z%d2d3�Z&d4S)5r
z(
    For the Lean 3 theorem prover.
    ZLeanz,https://leanprover-community.github.io/lean3ZleanZlean3�*.leanztext/x-leanztext/x-lean3z2.0u�(?![λΠΣ])[_a-zA-Zα-ωΑ-Ωϊ-ϻἀ-῾℀-⅏𝒜-𝖟](?:(?![λΠΣ])[_a-zA-Zα-ωΑ-Ωϊ-ϻἀ-῾℀-⅏𝒜-𝖟0-9'ⁿ-₉ₐ-ₜᵢ-ᵪ])*�(\.�)*�\s+�/--�	docstring�/-�commentz--.*?$)�forall�funZPi�from�have�show�assumeZsuffices�let�if�else�then�in�with�calc�match�do�\b��prefix�suffix�ZsorryZadmit)�Sort�Prop�Type)�(�)�:�{�}�[�]�⟨�⟩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)�import�renaming�hiding�	namespace�local�private�	protected�sectionrZomitrHrG�export�open�	attribute)(�lemma�theorem�defZ
definition�example�axiomZaxiomsZconstantZ	constants�universeZ	universes�	inductiveZcoinductive�	structure�extends�class�instanceZabbreviationznoncomputable theory�
noncomputable�mutual�metarKZ	parameter�
parameters�variableZ	variablesZreserve�
precedence�postfixr(�notation�infix�infixl�infixr�begin�by�end�
set_optionZrun_cmd�@\[rK)�#eval�#check�#reduce�#exit�#print�#help)r)�
expression�\]�#pop�[^/-]+�#push�-/�[/-]�[^\\"]+z9(?:(\\[\\\"'nt])|(\\x[0-9a-fA-F]{2})|(\\u[0-9a-fA-F]{4}))�rm�rootrKrrr>cC�t�d|tj�r
dSdS)Nz
^import [a-z]皙�����?��re�search�	MULTILINE��text�r�H/opt/saltstack/salt/lib/python3.10/site-packages/pygments/lexers/lean.py�analyse_text��zLean3Lexer.analyse_textN)'�__name__�
__module__�__qualname__�__doc__�name�url�aliases�	filenames�	mimetypes�
version_added�
_name_segment�_namerr	�Docr�Singlerrr�Errorr-rr�Symbolr
�Integer�DoubleZChar�Variable�Builtin�Pseudo�	Namespace�Declarationr�	Multiline�Escape�tokensr�rrrr�r
s��
���

�	�	�
��
���
,�

�
�
��[c@s�eZdZdZdZdZdgZdgZdgZdZ	dZ
e
d	e
d
ZdZdZ
d
ZdZdZdefdejdfdedfdejfeeddd�ejfedddd�ejfee�ejjfee�efe
efdeejfde fde j!fde j"fdej#dfdej$fd ejjfgeeddd�ej%fee
ddd�efd!ej&d"fe'd#�gd$ej&d%fe'd#�gd&ej(fdej(d'fd(ej(d%fd)ej(fgd&ejfd(ejd%fd)ejfgd*ej#fd+ej)fdej#d%fgd,�Z*d-d.�Z+d/S)0rz(
    For the Lean 4 theorem prover.
    ZLean4z#https://github.com/leanprover/lean4Zlean4rztext/x-lean4z2.18u�(?![λΠΣ])[_a-zA-Zα-ωΑ-Ωϊ-ϻἀ-῾℀-⅏𝒜-𝖟](?:(?![λΠΣ])[_a-zA-Zα-ωΑ-Ωϊ-ϻἀ-῾℀-⅏𝒜-𝖟0-9'ⁿ-₉ₐ-ₜᵢ-ᵪ!?])*rr)6rAZ	unif_hintrB�inlinerCrLr[rMrPrRrSrQ�aliasrlr\r]r(r_r`rar^rgrhrirjrdrFZusingrDrVrHrGrIrerTrJrOrkZopaquerNZmacroZelabZsyntaxZmacro_rulesri�whereZabbrevrWrUrKz#synthrXZscopedrE)rrZobtainrrrrrrrr rcr!r"r#r$Znomatchr%Zat)r-r,r+)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≡r5r6u↦)r.r/r0r1r2r3r4r7r8r9r:z]'z]?z]!rrrrrz--.*$r&r'r*r;z
(?<=\.)\d+z(\d+\.\d*)([eE][+-]?[0-9]+)?r<r=r>r?r@rfrKrmrnrorprqrrrsrtz
\\[n"\\\n]rucCrw)Nz
^import [A-Z]rxryr}rrr�r��r�zLean4Lexer.analyse_textN),r�r�r�r�r�r�r�r�r�r�r�r�Z	keywords1Z	keywords2Z	keywords3Z	operators�punctuationrr	r�rr�rrr-rr�rr�r�rr�r
ZFloatr�r�r�r�r�rr�r�r�r�rrrr�r�sp�	



�
�
�

�
�
��0)r�rzZpygments.lexerrrrZpygments.tokenrrrrr	r
rr�__all__r
Z	LeanLexerrrrrr��<module>s
(q