HEX
Server: Apache
System: Linux srv1.prosuiteplus.com 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: prosuiteplus (1001)
PHP: 8.3.20
Disabled: NONE
Upload Files
File: //usr/lib/python3/dist-packages/pygments/lexers/__pycache__/theorem.cpython-38.pyc
U

`a�[ZJ�@s�dZddlZddlmZmZmZddlmZmZm	Z	m
Z
mZmZm
Z
mZmZdddgZGdd�de�ZGd	d�de�ZGd
d�de�ZdS)z�
    pygments.lexers.theorem
    ~~~~~~~~~~~~~~~~~~~~~~~

    Lexers for theorem-proving languages.

    :copyright: Copyright 2006-2017 by the Pygments team, see AUTHORS.
    :license: BSD, see LICENSE for details.
�N)�
RegexLexer�default�words)	�Text�Comment�Operator�Keyword�Name�String�Number�Punctuation�Generic�CoqLexer�
IsabelleLexer�	LeanLexerc@s�eZdZdZdZdgZdgZdgZdZdZ	dZ
d	Zd
ZdZ
dZd
ZdZdZdZdefdejjfdedfeeddd�ejfee	ddd�efee
ddd�ejfeeddd�efeeddd�ejfee
ddd�ejfdefdd�eddd��efdeeefefdd�e�ejfdefdej fd ej!fd!ej"fd"ej#fd#ej$fd$e%j&fd%e%j&fd&efd'e%j'd(fd)efgd*efded+fd,ed-fd.efgd/e%j'fd0e%j'fd'e%j'd-fgdefd1e(fd2ejfd3ej)d-fd4ed-fe*d-�gd5�Z+d6d7�Z,dS)8rzZ
    For the `Coq <http://coq.inria.fr/>`_ theorem prover.

    .. versionadded:: 1.5
    ZCoqZcoqz*.vz
text/x-coq)MZSectionZModuleZEndZRequireZImportZExport�VariableZ	VariablesZ	ParameterZ
ParametersZAxiomZ
HypothesisZ
HypothesesZNotationZLocalZTactic�ReservedZScopeZOpenZCloseZBindZDelimitZ
DefinitionZLetZLtacZFixpointZ
CoFixpointZMorphismZRelationZImplicitZ	Arguments�SetZUnsetZ
ContextualZStrictZPrenexZ	ImplicitsZ	InductiveZCoInductiveZRecordZ	StructureZ	CanonicalZCoercionZTheoremZLemmaZ	CorollaryZPropositionZFactZRemarkZExampleZProofZGoalZSaveZQedZDefinedZHintZResolveZRewriteZViewZSearchZShowZPrintZPrintingZAllZGraphZProjectionsZinsideZoutsideZCheckZGlobalZInstance�ClassZExistingZUniverseZPolymorphicZMonomorphicZContext)�forall�existsZexists2�fun�fixZcofixZstruct�match�end�in�return�let�if�is�then�else�forZofZnosimpl�with�as��TypeZProp)CZpose�setZmove�caseZelim�apply�clearZhnfZintroZintrosZ
generalize�rename�patternZafterZdestructZ	induction�usingZrefineZ	inversionZ	injectionZrewriteZcongrZunlockZcomputeZringZfield�replaceZfoldZunfoldZchangeZ
cutrewriteZsimpl�haveZsuffZwlogZsufficesZwithoutZlossZnat_norm�assertZcutZtrivialZrevertZ
bool_congrZ	nat_congrZsymmetryZtransitivity�auto�split�left�rightZautorewrite�tautoZsetoid_rewriteZ	intuitionZeautoZeapplyZeconstructorZ
etransitivity�constructorZerewriteZredZcbv�lazyZ
vm_computeZnative_computeZsubst)�by�done�exactZreflexivityr5ZromegaZomegaZ
assumptionZsolveZ
contradictionZdiscriminateZ
congruence)ZdoZlast�first�tryZidtac�repeat)1�!=�#�&�&&z\(z\)�\*z\+�,�-z-\.�->�\.z\.\.�:�::�:=�:>�;�;;�<�<-z<->�=�>z>]z>\}z\?z\?\?z\[z\[<z\[>z\[\|�]�_�`z\{z\{<z\|z\|]�\}�~�=>z/\\z\\/z\{\|z\|\}�Π�λz[!$%&*+\./:<=>?@^|~-]z[!?~]z[=<>@^|&+\*/$%-])ZunitZnat�bool�string�ascii�list�\s+zfalse|true|\(\)|\[\]�\(\*�comment�\b��prefix�suffixz\b([A-Z][\w\']*)z(%s)�|N���z
(%s|%s)?%sz\b(%s)\bz
[^\W\d][\w']*�\d[\d_]*�0[xX][\da-fA-F][\da-fA-F_]*�0[oO][0-7][0-7_]*�0[bB][01][01_]*z(-?\d[\d_]*(.[\d_]*)?([eE][+\-]?\d[\d_]*)z7'(?:(\\[\\\"'ntbr ])|(\\[0-9]{3})|(\\x[0-9a-fA-F]{2}))'z'.'�'�"rZ�[~?][a-z][\w\']*:�[^(*)]+�#push�\*\)�#pop�[(*)]z[^"]+z""rFz[A-Z][\w\']*(?=\s*\.)z[A-Z][\w\']*z[a-z][a-z0-9_\']*)�rootr_rZZdottedcCs|�d�rdSdS)Nz(*T)�
startswith)�text�ru�9/usr/lib/python3/dist-packages/pygments/lexers/theorem.py�analyse_text�s
zCoqLexer.analyse_text)-�__name__�
__module__�__qualname__�__doc__�name�aliases�	filenames�	mimetypes�	keywords1�	keywords2�	keywords3Z	keywords4Z	keywords5Z	keywords6Zkeyopts�	operatorsZprefix_symsZ
infix_symsZ
primitivesrr	�Builtin�Pseudorrr�	Namespacer&r�joinrr�Integer�Hex�Oct�BinZFloatr
ZChar�Doublerrr�tokensrwrurururvrsz
�
�"�
�
��7c"@s�eZdZdZdZdgZdgZdgZdZdZ	dZ
d	Zd
ZdZ
dZd
ZdZdZdZdZdZdZdZdZdZdZdZdefdedfdedfee�efee�ejfeeddd�e j!fee	ddd�e j"fee
ddd�e fee
ddd�e feeddd�e#j$feeddd�e#j%feeddd�e j&feeddd�e j&feeddd�e#j'feeddd�e feeddd�e feeddd�e feeddd�e feeddd�e feeddd�e feeddd�e feeddd�e j!fd ej(fd!e)fd"e)fd#e)j"fd$e)fd%e*j+fd&e*j,fd'e*j-fd(e.d)fd*e.j/d+fg d,efded-fd.ed/fd0efgd1efd2ed/fd3efd4efgd5e.fd e.j(fd6e.fd7e.fd(e.d/fgd8e.j/fd e.j(fd9e.j/fd7e.j/fd*e.j/d/fgd:�Z0d;S)<rzf
    For the `Isabelle <http://isabelle.in.tum.de/>`_ proof assistant.

    .. versionadded:: 2.0
    ZIsabelleZisabellez*.thyztext/x-isabelle)2�andZassumesZattachZavoidsZbinderZcheckingZclass_instanceZclass_relationZcode_moduleZcongs�constantZ
constrainsZ	datatypesZdefines�file�fixesr"Z	functionsZhintsZ
identifierrZimportsrZincludes�infix�infixl�infixrr�keywordsr7Zmodule_nameZmonosZ	morphismsZ
no_discs_selsZnotesZobtains�open�outputZ
overloadedZ
parametricZ
permissiveZ	pervasiveZ
rep_compatZshows�	structureZ
type_classZtype_constructorZ	uncheckedZunsafe�where)LZ
ML_commandZML_valZ
class_depsZ	code_depsZ	code_thmsZdisplay_draftsZfind_constsZ
find_theoremsZfind_unused_assmsZfull_prf�helpZlocale_depsZnitpick�prZprfZ
print_abbrevsZprint_antiquotationsZprint_attributesZprint_bindsZ
print_bnfsZ
print_bundlesZprint_case_translationsZprint_casesZprint_clasetZ
print_classesZprint_codeprocZprint_codesetupZprint_coercionsZprint_commandsZ
print_contextZprint_defn_rulesZprint_dependenciesZprint_factsZprint_induct_rulesZprint_inductivesZ
print_interpsZprint_localeZ
print_localesZ
print_methodsZ
print_optionsZprint_ordersZprint_quot_mapsZprint_quotconstsZprint_quotientsZprint_quotientsQ3Zprint_quotmapsQ3Zprint_rulesZ
print_simpsetZprint_stateZprint_statementZprint_syntaxZprint_theoremsZprint_theoryZprint_trans_rulesZprop�pwdZ
quickcheckZrefuteZsledgehammerZ
smt_statusZsolve_directZspark_statusZtermZthmZthm_depsZthy_depsr<Ztry0�typZunused_thms�value�valuesZwelcomeZprint_ML_antiquotationsZprint_term_bindingsZ
values_prolog)Ztheory�beginr)�headerZchapter)�sectionZ
subsectionZ
subsubsectionZsectZsubsectZ
subsubsect)�ZMLZML_file�abbreviationZadhoc_overloadingZaritiesZ	atom_declZattribute_setupZaxiomatizationZbundleZ
case_of_simps�class�classesZclassrelZ
codatatypeZ
code_abortZ
code_classZ
code_constZ
code_datatypeZcode_identifierZcode_includeZ
code_instanceZcode_modulenameZ
code_monadZ
code_printingZcode_reflectZ
code_reservedZ	code_typeZcoinductiveZcoinductive_setZconsts�contextZdatatypeZdatatype_newZdatatype_new_compatZdeclarationZdeclareZdefault_sortZdefer_recdef�
definitionZdefsZdomainZdomain_isomorphismZ	domaindefZequivarianceZexport_code�extractZextract_typeZfixrecrZ	fun_casesZ
hide_classZ
hide_constZ	hide_factZ	hide_typeZimport_const_mapZimport_fileZimport_tptpZimport_type_map�	inductiveZ
inductive_setZ
instantiationZjudgmentZlemmasZlifting_forgetZlifting_updateZlocal_setupZlocaleZmethod_setupZnitpick_paramsZno_adhoc_overloadingZno_notationZ	no_syntaxZno_translationsZno_type_notationZnominal_datatypeZnonterminal�notationZnotepadZoracleZoverloadingZparse_ast_translationZparse_translationZpartial_functionZ	primcorecZprimrecZprimrec_newZprint_ast_translationZprint_translationZquickcheck_generatorZquickcheck_paramsZ
realizabilityZ	realizersZrecdef�recordZ
refute_paramsZsetupZ
setup_liftingZ
simproc_setupZ
simps_of_caseZsledgehammer_paramsZ	spark_endZ
spark_openZspark_open_sivZspark_open_vcgZspark_proof_functionsZspark_typesZ
statespaceZsyntaxZsyntax_declarationrtZtext_rawZtheoremsZtranslationsZ
type_notationZtype_synonymZtyped_print_translationZtypedeclZ
hoarestateZinstall_C_fileZinstall_C_typesZ	wpc_setupZc_defsZc_typesZmemsafeZ
SML_exportZSML_fileZ
SML_importZapproximateZbnf_axiomatizationZ	cartoucheZdatatype_compatZfree_constructorsZfunctorZnominal_functionZnominal_terminationZpermanent_interpretationZbindsZdefiningZsmt2_statusZterm_cartoucheZboogie_fileZtext_cartouche)Zinductive_casesZinductive_simps)!Zax_specificationZbnfZ	code_pred�	corollaryZcpodefZcrunchZ
crunch_ignoreZ
enriched_typeZfunction�instanceZinterpretation�lemmaZlift_definitionZnominal_inductiveZnominal_inductive2Znominal_primrecZpcpodefZprimcorecursiveZquotient_definitionZ
quotient_typeZ	recdef_tcZrep_datatypeZschematic_corollaryZschematic_lemmaZschematic_theoremZspark_vcZ
specification�subclassZ	sublocaleZtermination�theoremZtypedefZwrap_free_constructors)r8r9�qed)ZsorryZoops)r/ZhenceZ	interpret)�next�proof)�finally�fromr Z
ultimatelyr#)ZML_prfZalsoZinclude�	includingrZmoreoverZnoteZtxtZtxt_rawZ	unfoldingr-�write)�assumer(�defrZpresume)Zguess�obtain�showZthus)r)Z	apply_endZapply_traceZbackZdeferZprefer)rHrG�(�)�[rQrRrOrCrd�+rD�!�?)�{�}�.�..r]r^r_z\{\*rtr`raz\\<\w*>z[^\W\d][.\w']*z\?[^\W\d][.\w']*z'[^\W\d][.\w']*rfrgrhrirkrZrS�factrmrnrorprqz[^*}]+z\*\}rBrTz[^"\\]+z\\"z\\z[^`\\]+z\\`)rrr_rtrZr�N)1rxryrzr{r|r}r~rZ
keyword_minorZkeyword_diagZkeyword_thyZkeyword_sectionZkeyword_subsectionZkeyword_theory_declZkeyword_theory_scriptZkeyword_theory_goalZkeyword_qedZkeyword_abandon_proofZkeyword_proof_goalZkeyword_proof_blockZkeyword_proof_chainZkeyword_proof_declZkeyword_proof_asmZkeyword_proof_asm_goalZkeyword_proof_scriptr�Zproof_operatorsrrrrZWordrr�r&r
ZHeadingZ
Subheadingr��ErrorZSymbolr	rr�r�r�r
ZOtherr�rurururvr�s�&

�1���
��c
@seZdZdZdZdgZdgZdgZej	ej
BZdZdZ
dZd	Zd
Zdefded
fdejfeeddd�ejfee
ddd�efeeddd�ejfee�ejjfee�efdefdejfdejdfdej fgdej!fdej!dfdej!dfdej!fgdejfdej"fdejdfgd�Z#dS)rzm
    For the `Lean <https://github.com/leanprover/lean>`_
    theorem prover.

    .. versionadded:: 2.0
    ZLeanZleanz*.leanztext/x-lean)=�importr�Zopaque_hintZtactic_hintr�ZrenamingZinlineZhidingZexposingZ	parameterZ
parametersZ
conjectureZ
hypothesisr�r�ZvariableZ	variablesr�Zaxiomr�r�Zuniverse�aliasr�ZoptionsZ
precedenceZpostfixrbZ
calc_transZ
calc_substZ	calc_reflr�r�r�r��evalZcheck�exitZcoercionrZprivater-�	namespacer�r�r�r�Z	protectedZexposeZexportZ
set_optionZadd_rewriteZextendsr�Zexampler�Z	constants�printZopaqueZ	reducibleZirreducible)rrZPir�r�r/r�r�Ztakerrr!r r8rr#r�r�r�Zcalcrr%):r>r?r@rA�*r�rD�/�@r�rSz-.rEr�r�z...rHrJrKrLrMrNrOz==rPrRrdz||rUrVz<=z>=z/\z\/u∀rWrXu↔u∧u∨u≠u≤u≥�¬u⁻¹u⬝u▸u→u∃uℕuℤu≈�×u⌞u⌟u≡u⟨u⟩)r�r�rGr�r�r�rQu⦃u⦄rIrCr]z/-r_z--.*?$r`rau\[A-Za-z_α-κμ-ϻἀ-῾℀-⅏][A-Za-z_'α-κμ-ϻἀ-῾⁰-⁹ⁿ-₉ₐ-ₜ℀-⅏0-9]*z\d+rkrZrlz[^/-]rnz-/rpz[/-]z[^\\"]+z\\[n"\\])rrr_rZN)$rxryrzr{r|r}r~r�re�	MULTILINE�UNICODE�flagsr�r�r�r�Zpunctuationrr�Singlerrr�r&r	r�r�rrr�r
r�rZ	MultilineZEscaper�rurururvr{sH
	
�
�

�
��)r{r�Zpygments.lexerrrrZpygments.tokenrrrrr	r
rrr
�__all__rrrrurururv�<module>s
,
Y