a
    ¨ˆcÈN  ã                   @   sŒ   d Z ddlZddlmZmZmZ ddlmZmZm	Z	m
Z
mZmZmZmZmZmZ g d¢ZG dd„ deƒZG dd	„ d	eƒZG d
d„ deƒZdS )zØ
    pygments.lexers.theorem
    ~~~~~~~~~~~~~~~~~~~~~~~

    Lexers for theorem-proving languages.

    :copyright: Copyright 2006-2022 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Ú
Whitespace)ÚCoqLexerÚIsabelleLexerÚ	LeanLexerc                   @   sò  e Zd ZdZdZdZdgZdgZdgZdZ	dZ
d	Zd
ZdZdZdZdZdZdZdZdefdejjfdedfdefdejfdejfee
ddd�ejfeeddd�efeeddd�ejfeeddd�efeeddd�ejfeeddd�ejfdefdd eddd… ¡ efd eeef efd!efd"e j!fd#e j"fd$e j#fd%e j$fd&e j%fd'e&j'fd(e&j'fd)efd*e&j(d+fd,efd-ejjfgd.efded/fd0ed1fd2efgd3e&j(fd4e&j(fd*e&j(d1fgdefd5e)fd6ejfd7ej*d1fd8ed1fe+d1ƒgd9œZ,d:d;„ Z-dS )<r   z@
    For the Coq theorem prover.

    .. versionadded:: 1.5
    ZCoqzhttp://coq.inria.fr/Zcoqz*.vz
text/x-coqr   )ZZSectionÚModuleZEndZRequireÚImportZExportÚVariableÚ	VariablesÚ	ParameterZ
ParametersZAxiomZAxiomsZ
HypothesisZ
HypothesesZNotationZLocalZTacticÚReservedZScopeZOpenÚCloseZBindZDelimitZ
DefinitionZExampleZLetZLtacZFixpointZ
CoFixpointZMorphismZRelationZImplicitÚ	ArgumentsZTypesZUnsetZ
ContextualZStrictZPrenexZ	ImplicitsZ	InductiveZCoInductiveZRecordÚ	StructureZVariantZ	CanonicalZCoercionZTheoremZLemmaZFactZRemarkZ	CorollaryZPropositionZPropertyZGoalÚProofZRestartZSaveÚQedZDefinedZAbortZAdmittedZHintZResolveZRewriteZViewZSearchZComputeZEvalZShowZPrintZPrintingZAllZGraphZProjectionsZinsideZoutsideZCheckÚGlobalZInstanceÚClassZExistingZUniverseZPolymorphicZMonomorphicÚContextÚSchemeÚFromZUndoZFailZFunction)ÚforallÚexistsZexists2ÚfunÚfixZcofixÚstructÚmatchÚendÚinÚreturnÚletÚifÚisÚthenÚelseÚforZofZnosimplÚwithÚas)ÚTypeÚPropZSPropÚSet)CZposeÚsetÚmoveÚcaseZelimÚapplyÚclearZhnfZintroZintrosZ
generalizeÚrenameÚpatternÚafterZdestructZ	inductionÚusingZrefineZ	inversionZ	injectionZrewriteZcongrZunlockZcomputeZringÚfieldÚreplaceÚfoldZunfoldZchangeZ
cutrewriteZsimplÚhaveÚsuffZwlogÚsufficesZwithoutZlossZnat_normÚassertZcutZtrivialÚrevertZ
bool_congrZ	nat_congrZsymmetryZtransitivityÚautoÚsplitÚleftÚrightZautorewriteÚtautoZsetoid_rewriteZ	intuitionZeautoZeapplyZeconstructorZetransitivityÚconstructorZerewriteZredZcbvÚlazyZ
vm_computeZnative_computeÚsubst)ÚbyÚnowÚdoneÚexactZreflexivityrK   ZromegaÚomegaZliaZniaZlraZnraZpsatzZ
assumptionZsolveZcontradictionZdiscriminateZ
congruenceÚadmit)ÚdoÚlastÚfirstÚtryZidtacÚrepeat):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\|]z\}ú~z=>z/\\z\\/z\{\|z\|\}u   Î»õ   Â¬u   âˆ§u   âˆ¨u   âˆ€u   âˆƒu   â†’u   â†”u   â‰ u   â‰¤u   â‰¥z[!$%&*+\./:<=>?@^|~-]z[!?~]z[=<>@^|&+\*/$%-]ú\s+zfalse|true|\(\)|\[\]ú\(\*Úcommentz'\b(?:[^\W\d][\w\']*\.)+[^\W\d][\w\']*\bz\bEquations\b\??z"\bSet(?=[ \t]+[A-Z][a-z][^\n]*?\.)ú\b©ÚprefixÚsuffixz\b([A-Z][\w\']*)z(%s)ú|Néÿÿÿÿz
(%s|%s)?%sz[^\W\d][\w']*z\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'.'ú'ú"Ústringú[~?][a-z][\w\']*:ú\Sú[^(*)]+ú#pushú\*\)ú#popú[(*)]z[^"]+z""r^   z[A-Z][\w\']*(?=\s*\.)z[A-Z][\w\']*z[a-z][a-z0-9_\']*)Úrootrm   ry   Zdottedc                 C   s   d| v rd| v rdS d S )Nr   r   é   © )Útextrƒ   rƒ   úZ/home/yuhw/wc/wire-cell-python/wcpy/lib/python3.9/site-packages/pygments/lexers/theorem.pyÚanalyse_text§   s    zCoqLexer.analyse_text).Ú__name__Ú
__module__Ú__qualname__Ú__doc__ÚnameÚurlÚaliasesÚ	filenamesÚ	mimetypesÚflagsZ	keywords1Z	keywords2Z	keywords3Z	keywords4Z	keywords5Z	keywords6ZkeyoptsÚ	operatorsZprefix_symsZ
infix_symsr   r	   ÚBuiltinÚPseudor   r   Ú	Namespacer   r3   r   Újoinr   r   ÚIntegerÚHexÚOctÚBinZFloatr
   ÚCharÚDoubler   r   r   Útokensr†   rƒ   rƒ   rƒ   r…   r      s~   	


Ý&ü
ý
úÏ;r   c                    @   s¼  e Zd ZdZdZdZdgZdgZdgZdZ	dZ
d	Zd
ZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdefdedfdejdfdedfe eƒe!fe eƒe!j"fe e	d d d!�e#j$fe e
d d d!�e#j%fe ed d d!�e#fe ed d d!�e#fe ed d d!�e&j'fe ed d d!�e&j(fe ed d d!�e#j)fe ed d d!�e#j)fe ed d d!�e&j*fe ed d d!�e#fe ed d d!�e#fe ed d d!�e#fe ed d d!�e#fe ed d d!�e#fe ed d d!�e#fe ed d d!�e#fe ed d d!�e#j$fd"e+jfd#e,j%fd$e-j.fd%e-j/fd&e-j0fd'ed(fd)ej1d*fd+e,fgd,efded-fd.ed/fd0efgd1efdejd-fded-fd2ejd/fd3ed/fd"ejfd4efgd5efd"ejfd6efd7efd'ed/fgd8ej1fd"ejfd9ej1fd7ej1fd)ej1d/fgd:œZ2d;S )<r   zF
    For the Isabelle proof assistant.

    .. versionadded:: 2.0
    ZIsabellezhttps://isabelle.in.tum.de/Zisabellez*.thyztext/x-isabelle)2ÚandZassumesÚattachZavoidsZbinderZcheckingZclass_instanceZclass_relationZcode_moduleZcongsÚconstantZ
constrainsZ	datatypesZdefinesÚfileÚfixesr0   Z	functionsÚhintsÚ
identifierr,   Zimportsr)   ZincludesÚinfixÚinfixlÚinfixrr-   ÚkeywordsrM   Úmodule_nameZmonosZ	morphismsZno_discs_selsZnotesZobtainsÚopenÚoutputZ
overloadedZ
parametricZ
permissiveZ	pervasiveZ
rep_compatZshowsÚ	structureZ
type_classZtype_constructorÚ	uncheckedÚunsafeÚwhere)LZ
ML_commandZML_valZ
class_depsZ	code_depsZ	code_thmsZdisplay_draftsZfind_constsZfind_theoremsZfind_unused_assmsZfull_prfÚhelpZlocale_depsZnitpickÚprZprfZprint_abbrevsZprint_antiquotationsZprint_attributesZprint_bindsZ
print_bnfsZprint_bundlesZprint_case_translationsZprint_casesZprint_clasetZprint_classesZprint_codeprocZprint_codesetupZprint_coercionsÚprint_commandsZprint_contextZprint_defn_rulesZprint_dependenciesZprint_factsZprint_induct_rulesZprint_inductivesZprint_interpsZprint_localeZprint_localesZprint_methodsZprint_optionsZprint_ordersZprint_quot_mapsZprint_quotconstsZprint_quotientsZprint_quotientsQ3Zprint_quotmapsQ3Zprint_rulesZprint_simpsetZprint_stateZprint_statementZprint_syntaxZprint_theoremsZprint_theoryZprint_trans_rulesÚpropÚpwdZ
quickcheckZrefuteZsledgehammerZ
smt_statusZsolve_directZspark_statusZtermZthmZthm_depsZthy_depsrX   Ztry0ÚtypZunused_thmsÚvalueÚvaluesZwelcomeZprint_ML_antiquotationsZprint_term_bindingsZvalues_prolog)ZtheoryÚbeginr(   )ÚheaderZchapter)ÚsectionZ
subsectionZsubsubsectionÚsectZsubsectZ
subsubsect)ŽZMLZML_fileÚabbreviationZadhoc_overloadingZaritiesZ	atom_declZattribute_setupZaxiomatizationZbundleZcase_of_simpsÚclassÚclassesZclassrelZ
codatatypeZ
code_abortZ
code_classZ
code_constZcode_datatypeZcode_identifierZcode_includeZcode_instanceZcode_modulenameZ
code_monadZcode_printingZcode_reflectZcode_reservedZ	code_typeÚcoinductiveZcoinductive_setZconstsÚcontextÚdatatypeZdatatype_newZdatatype_new_compatZdeclarationZdeclareZdefault_sortZdefer_recdefÚ
definitionZdefsÚdomainZdomain_isomorphismZ	domaindefZequivarianceZexport_codeÚextractZextract_typeZfixrecr$   Z	fun_casesZ
hide_classZ
hide_constZ	hide_factZ	hide_typeZimport_const_mapZimport_fileZimport_tptpZimport_type_mapÚ	inductiveZinductive_setZinstantiationZjudgmentZlemmasZlifting_forgetZlifting_updateZlocal_setupÚlocaleZmethod_setupZnitpick_paramsZno_adhoc_overloadingZno_notationZ	no_syntaxZno_translationsZno_type_notationZnominal_datatypeZnonterminalÚnotationZnotepadÚoracleZoverloadingZparse_ast_translationZparse_translationZpartial_functionZ	primcorecZprimrecZprimrec_newZprint_ast_translationZprint_translationZquickcheck_generatorZquickcheck_paramsZrealizabilityZ	realizersZrecdefÚrecordZrefute_paramsÚsetupZsetup_liftingZsimproc_setupZsimps_of_caseZsledgehammer_paramsZ	spark_endZ
spark_openZspark_open_sivZspark_open_vcgZspark_proof_functionsZspark_typesZ
statespaceZsyntaxZsyntax_declarationr„   Ztext_rawZtheoremsZtranslationsZtype_notationZtype_synonymZtyped_print_translationZtypedeclZ
hoarestateZinstall_C_fileZinstall_C_typesZ	wpc_setupZc_defsZc_typesZmemsafeZ
SML_exportZSML_fileZ
SML_importZapproximateZbnf_axiomatizationÚ	cartoucheZdatatype_compatZfree_constructorsZfunctorZnominal_functionZnominal_terminationZpermanent_interpretationZbindsZdefiningZsmt2_statusZterm_cartoucheZboogie_fileZtext_cartouche)Zinductive_casesZinductive_simps)!Zax_specificationZbnfZ	code_predZ	corollaryZcpodefZcrunchZcrunch_ignoreZenriched_typeÚfunctionÚinstanceZinterpretationÚlemmaZlift_definitionZnominal_inductiveZnominal_inductive2Znominal_primrecZpcpodefZprimcorecursiveZquotient_definitionZquotient_typeZ	recdef_tcZrep_datatypeZschematic_corollaryZschematic_lemmaZschematic_theoremZspark_vcÚspecificationÚsubclassZ	sublocaleZterminationÚtheoremZtypedefZwrap_free_constructors)rO   rQ   Zqed)ÚsorryZoops)rB   ZhenceZ	interpret)ÚnextZproof)ÚfinallyÚfromr.   Z
ultimatelyr1   )ZML_prfZalsoÚincludeZ	includingr+   ZmoreoverZnoteÚtxtZtxt_rawZ	unfoldingr>   Úwrite)Úassumer8   Údefr%   Zpresume)ÚguessÚobtainÚshowZthus)r9   Z	apply_endZapply_traceÚbackÚdeferZprefer)r`   r_   ú(ú)ú[rf   rg   rd   r\   rr   ú+r]   ú!ú?)Ú{Ú}Ú.z..rk   rl   rm   z\\<open>rÊ   u   \{\*|â€¹rn   ro   z\\<(\w|\^)*>z'[^\W\d][.\w']*rt   ru   rv   rx   ry   rh   Úfactz/[^\s:|\[\]\-()=,+!?{}._][^\s:|\[\]\-()=,+!?{}]*r|   r}   r~   r   r€   u   [^{*}\\â€¹â€º]+z	\\<close>u   \*\}|â€ºz[{*}\\]z[^"\\]+z\\"z\\z[^`\\]+z\\`)r�   rm   rÊ   ry   rè   N)3r‡   rˆ   r‰   rŠ   r‹   rŒ   r�   rŽ   r�   Zkeyword_minorZkeyword_diagZkeyword_thyZkeyword_sectionZkeyword_subsectionZkeyword_theory_declZkeyword_theory_scriptZkeyword_theory_goalZkeyword_qedZkeyword_abandon_proofZkeyword_proof_goalZkeyword_proof_blockZkeyword_proof_chainZkeyword_proof_declZkeyword_proof_asmZkeyword_proof_asm_goalZkeyword_proof_scriptr‘   Zproof_operatorsr   r   r
   ZSymbolr   r   ÚWordr   r“   r3   r   ZHeadingZ
Subheadingr”   ÚErrorr   r	   r   r—   r˜   r™   ZOtherrœ   rƒ   rƒ   rƒ   r…   r   ¬   s¦   &


Ó0ü

ù
û
ûºr   c                   @   sj  e Zd ZdZdZdZdgZdgZdgZde	fde
jd	fd
edfdejfedddd�ejfedddd�ejfdejfedddd�efedddd�ejfedddd�ejfeddd�efedƒefdefdejfdejfdejfde
jdfde
jfdejfd ejjfgd!ejfd
ejd"fd#ejd$fd%ejfgd!e
jfd#e
jd$fd%e
jfgd&e
jfd'e
jfde
jd$fgd(œZ d)S )*r   zA
    For the Lean theorem prover.

    .. versionadded:: 2.0
    ZLeanz"https://github.com/leanprover/leanZleanz*.leanztext/x-leanrk   z/--Ú	docstringz/-rm   z--.*?$)ÚimportZrenamingZhidingÚ	namespaceÚlocalÚprivateÚ	protectedr¹   rÕ   Zomitr¹   rð   Úexportr©   Ú	attributern   ro   )(rÍ   rÐ   rÙ   rÁ   ZexampleZaxiomZaxiomsrŸ   Ú	constantsZuniverseZ	universesrÄ   r¾   r«   Zextendsr¼   rÌ   r»   znoncomputable theoryZnoncomputableZmutualÚmetarò   Z	parameterÚ
parametersÚvariableÚ	variablesZreserveÚ
precedenceZpostfixrp   rÆ   r¤   r¥   r¦   r·   rO   r(   Z
set_optionZrun_cmdz@\[[^\]]*\])r"   r$   ÚPirÔ   rB   rÜ   rØ   rD   r+   r,   r/   r.   r)   r1   Zcalcr'   rU   )rÑ   rT   )ZSortr4   r3   )z#evalz#checkz#reducez#exitz#printz#help)rq   )rß   rà   r_   rå   ræ   rá   rf   u   âŸ¨u   âŸ©u   â€¹u   â€ºu   â¦ƒu   â¦„ra   r\   z¨[A-Za-z_\u03b1-\u03ba\u03bc-\u03fb\u1f00-\u1ffe\u2100-\u214f][.A-Za-z_\'\u03b1-\u03ba\u03bc-\u03fb\u1f00-\u1ffe\u2070-\u2079\u207f-\u2089\u2090-\u209c\u2100-\u214f0-9]*z0x[A-Za-z0-9]+z0b[01]+z\d+rx   ry   z='(?:(\\[\\\"'nt])|(\\x[0-9a-fA-F]{2})|(\\u[0-9a-fA-F]{4})|.)'rz   r{   z[^/-]r}   z-/r   z[/-]z[^\\"]+z9(?:(\\[\\\"'nt])|(\\x[0-9a-fA-F]{2})|(\\u[0-9a-fA-F]{4})))r�   rm   rë   ry   N)!r‡   rˆ   r‰   rŠ   r‹   rŒ   r�   rŽ   r�   r   r
   ZDocr   ÚSingler   r   r”   ZDeclarationr   rê   r3   r   r	   r   r–   r›   rš   r   r’   r“   Z	MultilineZEscaperœ   rƒ   rƒ   rƒ   r…   r   ‡  sz   
	÷	÷
èèüüýýþþ

ÀC

ü
ý
ý²r   )rŠ   ÚreZpygments.lexerr   r   r   Zpygments.tokenr   r   r   r   r	   r
   r   r   r   r   Ú__all__r   r   r   rƒ   rƒ   rƒ   r…   Ú<module>   s   
0  \