Your IP : 216.73.216.213


Current Path : /opt/alt/python37/lib/python3.7/site-packages/pygments/lexers/__pycache__/
Upload File :
Current File : //opt/alt/python37/lib/python3.7/site-packages/pygments/lexers/__pycache__/theorem.cpython-37.pyc

B

̽�\�I�@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-2019 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
ZdZdZdefdejjfdedfeeddd�ejfee	ddd�efee
ddd�ejfeeddd�efeeddd�ejfee
ddd�ejfdefdd�eddd��efdeeefefdefdejfdej fdej!fd ej"fd!ej#fd"e$j%fd#e$j%fd$efd%e$j&d&fd'efgd(efded)fd*ed+fd,efgd-e$j&fd.e$j&fd%e$j&d+fgdefd/e'fd0ejfd1ej(d+fd2ed+fe)d+�gd3�Z*d4d5�Z+dS)6rzZ
    For the `Coq <http://coq.inria.fr/>`_ theorem prover.

    .. versionadded:: 1.5
    ZCoqZcoqz*.vz
text/x-coq)MZSection�ModuleZEnd�RequireZImportZExport�Variable�	Variables�	ParameterZ
ParametersZAxiomZ
HypothesisZ
HypothesesZNotationZLocalZTactic�ReservedZScopeZOpen�CloseZBindZDelimitZ
DefinitionZLetZLtacZFixpointZ
CoFixpointZMorphismZRelationZImplicit�	Arguments�SetZUnsetZ
ContextualZStrictZPrenexZ	ImplicitsZ	InductiveZCoInductiveZRecord�	StructureZ	CanonicalZCoercionZTheoremZLemmaZ	CorollaryZPropositionZFactZRemarkZExampleZProofZGoalZSaveZQedZDefinedZHintZResolveZRewriteZViewZSearchZShowZPrintZPrintingZAllZGraphZProjectionsZinsideZoutsideZCheckZGlobalZInstance�ClassZExistingZUniverseZPolymorphicZMonomorphicZContext)�forall�existsZexists2�fun�fixZcofix�struct�match�end�in�return�let�if�is�then�else�forZofZnosimpl�with�as)�Type�Prop)CZpose�set�move�caseZelim�apply�clearZhnfZintroZintrosZ
generalize�rename�pattern�afterZdestructZ	induction�usingZrefineZ	inversionZ	injectionZrewriteZcongrZunlockZcomputeZring�field�replace�foldZunfoldZchangeZ
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�exactZreflexivityrAZromegaZomegaZ
assumptionZsolveZ
contradictionZdiscriminateZ
congruence)Zdo�last�first�tryZidtac�repeat)1z!=�#�&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\\/z\{\|z\|\}uΠuλz[!$%&*+\./:<=>?@^|~-]z[!?~]z[=<>@^|&+\*/$%-]z\s+zfalse|true|\(\)|\[\]z\(\*�commentz\b)�prefix�suffixz\b([A-Z][\w\']*)z(%s)�|N���z
(%s|%s)?%sz
[^\W\d][\w']*z\d[\d_]*z0[xX][\da-fA-F][\da-fA-F_]*z0[oO][0-7][0-7_]*z0[bB][01][01_]*z(-?\d[\d_]*(.[\d_]*)?([eE][+\-]?\d[\d_]*)z7'(?:(\\[\\\"'ntbr ])|(\\[0-9]{3})|(\\x[0-9a-fA-F]{2}))'z'.'�'�"�stringz[~?][a-z][\w\']*:z[^(*)]+z#pushz\*\)z#popz[(*)]z[^"]+z""z\.z[A-Z][\w\']*(?=\s*\.)z[A-Z][\w\']*z[a-z][a-z0-9_\']*)�rootrXr_ZdottedcCs|�d�rdSdS)Nz(*T)�
startswith)�text�rc�H/opt/alt/python37/lib/python3.7/site-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_symsrr	�Builtin�Pseudorrr�	Namespacer-r�joinrr�Integer�Hex�Oct�BinZFloatr
ZChar�Doublerrr�tokensrercrcrcrdrsj



c"@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�andZassumes�attachZavoidsZbinderZcheckingZclass_instanceZclass_relationZcode_moduleZcongs�constantZ
constrainsZ	datatypesZdefines�file�fixesr*Z	functionsZhints�
identifierr&Zimportsr#�includes�infix�infixl�infixrr'�keywordsrC�module_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_depsZnitpickZprZprfZ
print_abbrevsZprint_antiquotationsZprint_attributesZprint_bindsZ
print_bnfsZ
print_bundlesZprint_case_translationsZprint_casesZprint_clasetZ
print_classesZprint_codeprocZprint_codesetupZprint_coercions�print_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_depsrIZtry0�typZunused_thms�value�valuesZwelcomeZprint_ML_antiquotationsZprint_term_bindingsZ
values_prolog)Ztheory�beginr")�headerZchapter)�sectionZ
subsectionZ
subsubsection�sectZsubsectZ
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�
definitionZdefs�domainZdomain_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_setup�localeZ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_params�setupZ
setup_liftingZ
simproc_setupZ
simps_of_caseZsledgehammer_paramsZ	spark_endZ
spark_openZspark_open_sivZspark_open_vcgZspark_proof_functionsZspark_typesZ
statespaceZsyntaxZsyntax_declarationrbZtext_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_type�function�instanceZinterpretation�lemmaZlift_definitionZnominal_inductiveZnominal_inductive2Znominal_primrecZpcpodefZprimcorecursiveZquotient_definitionZ
quotient_typeZ	recdef_tcZrep_datatypeZschematic_corollaryZschematic_lemmaZschematic_theoremZspark_vcZ
specification�subclassZ	sublocaleZtermination�theoremZtypedefZwrap_free_constructors)rDrE�qed)ZsorryZoops)r;ZhenceZ	interpret)�next�proof)�finally�fromr(Z
ultimatelyr+)ZML_prfZalso�include�	includingr%ZmoreoverZnoteZtxtZtxt_rawZ	unfoldingr7�write)�assumer1�defrZpresume)Zguess�obtain�showZthus)r2Z	apply_endZapply_traceZbackZdeferZprefer)z::rO�(�)�[rTrUrRrMr[�+rN�!�?)�{�}�.z..z\s+z\(\*rXz\{\*rbz\b)rYrZz\\<\w*>z[^\W\d][.\w']*z\?[^\W\d][.\w']*z'[^\W\d][.\w']*z\d[\d_]*z0[xX][\da-fA-F][\da-fA-F_]*z0[oO][0-7][0-7_]*z0[bB][01][01_]*r^r_rV�factz[^(*)]+z#pushz\*\)z#popz[(*)]z[^*}]+z\*\}z\*z\}z[^"\\]+z\\"z\\z[^`\\]+z\\`)r`rXrbr_r�N)1rfrgrhrirjrkrlrmZ
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_scriptrqZproof_operatorsrrrr�Wordrrsr-r
ZHeadingZ
Subheadingrt�ErrorZSymbolr	rrwrxryr
ZOtherr{rcrcrcrdr�s�%

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�Zrenaming�inlineZhidingZexposingZ	parameter�
parametersZ
conjectureZ
hypothesisr�r��variable�	variablesr�Zaxiomr�r�Zuniverse�aliasr��options�
precedenceZpostfixrYZ
calc_transZ
calc_substZ	calc_reflr�r�r�r��eval�check�exitZcoercionr"Zprivater7�	namespacer�r�r�r�Z	protectedZexposeZexportZ
set_optionZadd_rewriteZextendsr�Zexampler~�	constants�printZopaqueZ	reducibleZirreducible)rrZPir�r�r;r�r�Ztaker%r&r)r(rDr#r+r�r�r�Zcalcr!)r-r.):z!=rKrLz&&�*r�rN�/�@r�rVz-.z->r�z..z...z::z:>rPz;;rQz<-rRz==rSrUr[z||rWz=>z<=z>=z/\z\/u∀uΠuλu↔u∧u∨u≠u≤u≥�¬u⁻¹u⬝u▸u→u∃uℕuℤu≈�×u⌞u⌟u≡u⟨u⟩)r�r�rOr�r�r�rTu⦃u⦄z:=rMz\s+z/-rXz--.*?$z\b)rYrZu\[A-Za-z_α-κμ-ϻἀ-῾℀-⅏][A-Za-z_'α-κμ-ϻἀ-῾⁰-⁹ⁿ-₉ₐ-ₜ℀-⅏0-9]*z\d+r^r_z[~?][a-z][\w\']*:z[^/-]z#pushz-/z#popz[/-]z[^\\"]+z\\[n"\\])r`rXr_N)$rfrgrhrirjrkrlrm�re�	MULTILINE�UNICODE�flagsrnrorprq�punctuationrr�Singlerrrtr-r	rrrsrrrvr
rzrZ	MultilineZEscaper{rcrcrcrdrys>






)rir�Zpygments.lexerrrrZpygments.tokenrrrrr	r
rrr
�__all__rrrrcrcrcrd�<module>
s,

Y