HEX
Server: LiteSpeed
System: Linux us-phx-web1284.main-hosting.eu 4.18.0-553.109.1.lve.el8.x86_64 #1 SMP Thu Mar 5 20:23:46 UTC 2026 x86_64
User: u300739242 (300739242)
PHP: 8.2.30
Disabled: system, shell_exec, passthru, mysql_list_dbs, ini_alter, dl, symlink, link, chgrp, leak, popen, apache_child_terminate, virtual, mb_send_mail
Upload Files
File: //opt/alt/python311/lib/python3.11/site-packages/pygments/lexers/__pycache__/lean.cpython-311.pyc
�

�;fz!���dZddlZddlmZmZmZddlmZmZm	Z	m
Z
mZmZm
Z
mZddgZGd�de��ZeZGd�de��ZdS)	z�
    pygments.lexers.lean
    ~~~~~~~~~~~~~~~~~~~~

    Lexers for the Lean theorem prover.

    :copyright: Copyright 2006-2024 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��eZdZdZdZdZddgZdgZddgZd	Z	d
Z
e
dze
zdzZd
efde
jdfdedfdejfeddd���efeddd���ejfeddd���ejfed��efeefdeze
jfdejfdejfdejfde
jdfde
jfd ejfd!ejjfged"dd���ej fed#dd���ej!fd$ej!d%fed&d�'��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%d2�Z&d3S)4rz(
    For the Lean 3 theorem prover.
    �Leanz,https://leanprover-community.github.io/lean3�lean�lean3�*.leanztext/x-leanztext/x-lean3z2.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›�⦃�⦄�:=�,�``?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�sectionr�omitrQrP�export�open�	attribute)(�lemma�theorem�def�
definition�example�axiom�axioms�constant�	constants�universe�	universes�	inductive�coinductive�	structure�extends�class�instance�abbreviationznoncomputable theory�
noncomputable�mutual�metarU�	parameter�
parameters�variable�	variables�reserve�
precedence�postfixr/�notation�infix�infixl�infixr�begin�by�end�
set_option�run_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}))�r��rootrUrrrGc�J�tjd|tj��rdSdS)Nz
^import [a-z]皙�����?��re�search�	MULTILINE��texts �G/opt/alt/python311/lib/python3.11/site-packages/pygments/lexers/lean.py�analyse_textzLean3Lexer.analyse_text�*��
�9�%�t�R�\�:�:�	��3�	�	�N)'�__name__�
__module__�__qualname__�__doc__�name�url�aliases�	filenames�	mimetypes�
version_added�
_name_segment�_namer
r
�Docr�Singlerrr�Errorr6rr	�Symbolr�Integer�Double�Char�Variable�Builtin�Pseudo�	Namespace�Declarationr�	Multiline�Escape�tokensr��r�r�rrs����������D�
8�C��w��G��
�I���/�I��M�	d��
�F�"�]�2�U�:�E��Z� �
�V�Z��-�
�G�Y�'�
���'�
�U�� ��	/�/�/�18�	
9�
�U�%�e�E�
B�
B�
B�G�M�R�
�U�+�E�%�
H�
H�
H�'�,�W�
�U�����
��D�M�
�e�^�V�]�+�
���/�
���(�
�V�^�$�
�6�=�(�+�
M�v�{�[�
!�4�=�1�
�D�L�'�(�/
�4�U�	��E�	+�	+�	+�-4�,=�	
?��U��0�E�1+�+�+�0-4�,?�1
A�2�W�(�+�6�
�U������&�
'�
�G�L�!�!�S*
�X�G�'��0��G�L�!�!�
�
��)�*�
�G�%�w�/�
�G�%�v�.�
�g�'�(�	
���
�#�
�F�J��'�
�f�j�!�
����'�
I�6�=�Y�
�&�-��(�
�iY�Y�F�v����r�c���eZdZdZdZdZdgZdgZdgZdZ	dZ
e
d	ze
zd
zZdZdZ
d
ZdZdZdefdejdfdedfdejfeedd���ejfeddd���ejfee��ejjfee��efe
efdezejfde fde j!fde j"fdej#dfdej$fd ejjfgeedd���ej%fee
dd���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-�Z+d.S)/rz(
    For the Lean 4 theorem prover.
    �Lean4z#https://github.com/leanprover/lean4�lean4rztext/x-lean4z2.18u�(?![λΠΣ])[_a-zA-Zα-ωΑ-Ωϊ-ϻἀ-῾℀-⅏𝒜-𝖟](?:(?![λΠΣ])[_a-zA-Zα-ωΑ-Ωϊ-ϻἀ-῾℀-⅏𝒜-𝖟0-9'ⁿ-₉ₐ-ₜᵢ-ᵪ!?])*rr)6rJ�	unif_hintrK�inlinerLrVrmrWr[rarcr_�aliasr�rprqr/rsrtrurrr|r}r~rrxrO�usingrMrfrQrPrSryrdrTrZr��opaquerX�macro�elab�syntax�macro_rulesr~�where�abbrevrhrerUz#synthri�scopedrN)rr�obtainrr 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>=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{rUr�r�r�r�r�r�r�r�z
\\[n"\\\n]r�c�J�tjd|tj��rdSdS)Nz
^import [A-Z]r�r�r�s r�r�zLean4Lexer.analyse_text�r�r�N),r�r�r�r�r�r�r�r�r�r�r�r��	keywords1�	keywords2�	keywords3�	operators�punctuationr
r
r�rr�rrr6rr�r	r�r�rr�r�Floatr�r�r�r�r�rr�r�r�r�r�r�r�rr�s����������D�
/�C��i�G��
�I�� �I��M�	f��
�F�"�]�2�U�:�E�
�I��I��I�
�I��K�
�Z� �
�V�Z��-�
�G�Y�'�
�w�~�&�
�U�9�U�5�
9�
9�
9�7�<�H�
�U�%�e�E�
B�
B�
B�G�M�R�
�U�9�
�
�t�|�2�3�
�U�;�
�
��*�
�D�!�
�e�^�V�]�+�
�F�#�
,�f�l�;�
�V�^�$�
�6�=�(�+�
!�4�=�1�
�D�L�'�(�!
�&�U�9�U�5�
9�
9�
9�7�;L�M�
�U�9�U�5�
9�
9�
9�7�C�
�W�(�+�6��G�L�!�!�	
��G�'��0��G�L�!�!�
���)�*�
�G�%�w�/�
�G�%�v�.�
�g�'�(�
���
�#�
�F�J��'�
�f�j�!�
����'�
�F�M�*�
�&�-��(�
�S.�.�F�`����r�)r�r��pygments.lexerrrr�pygments.tokenrrrr	r
rrr
�__all__r�	LeanLexerrr�r�r��<module>r�s ����
�	�	�	�5�5�5�5�5�5�5�5�5�5� � � � � � � � � � � � � � � � � � � � ���
&��n�n�n�n�n��n�n�n�b
�	�j�j�j�j�j��j�j�j�j�jr�