Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/pygments/lexers/__pycache__/theorem.cpython-39.pyc
Ðазад
a a�h�E � @ s� d Z ddlmZmZmZmZ ddlmZmZm Z m Z mZmZm Z mZmZmZ ddlmZ ddgZG dd� de�ZG dd� de�Zd S ) a pygments.lexers.theorem ~~~~~~~~~~~~~~~~~~~~~~~ Lexers for theorem-proving languages. See also :mod:`pygments.lexers.lean` :copyright: Copyright 2006-2025 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. � )� RegexLexer�bygroups�default�words) �Text�Comment�Operator�Keyword�Name�String�Number�Punctuation�Generic� Whitespace)� LeanLexer�CoqLexer� IsabelleLexerc @ s� e Zd ZdZdZdZdgZdgZdgZdZ dZ d Zd ZdZ dZd ZdZdZdZdZdZdefdejjfdedfdefdejfdeejeej�fdejdfdejdfeeddd�ejfeeddd�efee ddd�ejfeeddd�efeeddd�ejfeeddd�ejfd efd!� d"�!ed#d#d$� ��e"fd%e� d"e� d&e� �e"fd'efd(e#j$fd)e#j%fd*e#j&fd+e#j'fd,e#j(fd-e)j*fd.e)j*fd/efd0e)j+d1fd2efd3ejjfgdefd4ejfd0e)j+d1fd5e#j$fd6e,d7fgdefd8efd9e"fd:efd(e#j$fd)e#j%fdedfd6e,d7fgd;efded<fd=ed7fd>efgd?e)j+fd@e)j+fd0e)j+d7fgdefd6e,fdAejfdBej-d7fdCed7fe.d7�gdD�Z/dEdF� Z0d#S )Gr z% For the Coq theorem prover. �Coqzhttp://coq.inria.fr/�coqz*.vz text/x-coqz1.5r )cZSection�ModuleZEndZRequire�ImportZExport�Include�Variable� Variables� ParameterZ ParametersZAxiomZAxiomsZ HypothesisZ HypothesesZNotationZLocalZTactic�ReservedZScopeZOpen�CloseZBindZDeclareZDelimitZ DefinitionZExampleZLetZLtacZLtac2ZFixpointZ CoFixpointZMorphismZRelationZImplicit� ArgumentsZTypesZ ContextualZStrictZPrenexZ ImplicitsZ InductiveZCoInductiveZRecordZ StructureZVariantZ CanonicalZCoercionZTheoremZLemmaZFactZRemarkZ CorollaryZProposition�PropertyZGoal�ProofZRestartZSave�QedZDefinedZAbortZAdmittedZHintZResolveZRewriteZViewZSearchZComputeZEvalZShowZPrintZPrintingZAllZGraphZProjectionsZinsideZoutsideZCheck�Global�Instance�ClassZExistingZUniverseZPolymorphicZMonomorphic�Context�Scheme�FromZUndoZFail�FunctionZProgram�ElpiZExtractZOpaqueZTransparentZUnshelvezNext Obligation)�forall�existsZexists2�fun�fixZcofix�struct�match�end�in�return�let�if�is�then�else�forZofZnosimpl�with�as)�TypeZPropZSProp�Set)CZpose�set�move�caseZelim�apply�clearZhnfZintroZintrosZ generalize�rename�pattern�afterZdestructZ induction�usingZrefineZ inversionZ injectionZrewriteZcongr�unlockZcompute�ring�field�replace�foldZunfoldZchangeZ cutrewriteZsimpl�have�suffZwlogZsufficesZwithoutZlossZnat_norm�assert�cutZtrivial�revertZ bool_congrZ nat_congrZsymmetryZtransitivity�auto�split�left�rightZautorewrite�tautoZsetoid_rewriteZ intuitionZeautoZeapplyZeconstructorZ etransitivity�constructorZerewrite�redZcbv�lazyZ vm_computeZnative_compute�subst)�by�now�done�exactZreflexivityrS Zromega�omegaZliaZniaZlraZnraZpsatzZ assumptionZsolveZ contradictionZdiscriminateZ congruenceZadmit)�do�last�first�tryZidtac�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\{<zlp:\{\{z\|z\|]z\}�~z=>z/\\z\\/z\{\|z\|\}u λ� ¬u ∧u ∨u ∀u ∃u →u ↔u ≠u ≤u ≥z[!$%&*+\./:<=>?@^|~-]z[!?~]z[=<>@^|&+\*/$%-]�\s+zfalse|true|\(\)|\[\]�\(\*�commentz'\b(?:[^\W\d][\w\']*\.)+[^\W\d][\w\']*\bz\bEquations\b\??zM\b(Elpi)(\s+)(Program|Query|Accumulate|Command|Typecheck|Db|Export|Tactic)?\bz,\bUnset\b|\bSet(?=[ \t]+[A-Z][a-z][^\n]*?\.)�set-optionsz\b(?:String|Number)\s+Notation�sn-notation�\b��prefix�suffixz\b([A-Z][\w\']*)z({})�|N����(z)?z [^\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'.'�'�"�stringz[~?][a-z][\w\']*:z\Sz[A-Z]\w*z\d+rf �#popz*\b(?:via|mapping|abstract|warning|after)\bz =>|[()\[\]:,]z'\b[^\W\d][\w\']*(?:\.[^\W\d][\w\']*)*\bz([^(*)]+|\*+(?!\)))+�#push�\*\)�[(*)]z[^"]+z""z[A-Z][\w\']*(?=\s*\.)z[A-Z][\w\']*z[a-z][a-z0-9_\']*)�rootru rv rt r� Zdottedc C s d| v rd| v rdS d S )Nr r � � )�textr� r� ��/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/pygments/lexers/theorem.py�analyse_text� s zCoqLexer.analyse_text)1�__name__� __module__�__qualname__�__doc__�name�url�aliases� filenames� mimetypes� version_added�flagsZ keywords1Z keywords2Z keywords3Z keywords4Z keywords5Z keywords6Zkeyopts� operatorsZprefix_symsZ infix_symsr r �Builtin�Pseudor r � Namespacer r r: r �format�joinr r �Integer�Hex�Oct�Bin�Floatr �Char�Doubler r# r �tokensr� r� r� r� r� r s� �( �� � � ��Pc @ s� e Zd ZdZdZdZdgZdgZdgZdZ dZ d Zd ZdZ dZd ZdZdZdZdZdZdZdZdZdZdZdZdZdZdefdedfdej dfd edfe!e�e"fe!e�e"j#fe!e d!d!d"�e$j%fe!ed!d!d"�e$j&fe!ed!d!d"�e$fe!ed!d!d"�e$fe!e d!d!d"�e'j(fe!ed!d!d"�e'j)fe!ed!d!d"�e$j*fe!ed!d!d"�e$j*fe!ed!d!d"�e'j+fe!ed!d!d"�e$fe!ed!d!d"�e$fe!ed!d!d"�e$fe!ed!d!d"�e$fe!ed!d!d"�e$fe!ed!d!d"�e$fe!ed!d!d"�e$fe!ed!d!d"�e$j%fd#e,j fd$e-j&fd%e.j/fd&e.j0fd'e.j1fd(ed)fd*ej2d+fd,e-fgd-efded.fd/ed0fd1efgd2efdej d.fd ed.fd3ej d0fd4ed0fd#ej fd5efgd6efd#ej fd7efd8efd(ed0fgd9ej2fd#ej fd:ej2fd8ej2fd*ej2d0fgd;�Z3d<S )=r z+ For the Isabelle proof assistant. �Isabellezhttps://isabelle.in.tum.de/�isabellez*.thyztext/x-isabellez2.0)2�andZassumes�attachZavoidsZbinderZcheckingZclass_instanceZclass_relationZcode_moduleZcongsZconstantZ constrainsZ datatypesZdefines�file�fixesr7 Z functions�hints� identifierr3 Zimportsr0 ZincludesZinfixZinfixlZinfixrr4 �keywordsrV �module_nameZmonosZ morphismsZ no_discs_sels�notesZobtains�open�outputZ overloadedZ parametricZ permissiveZ pervasiveZ rep_compatZshowsZ structureZ type_classZtype_constructor� unchecked�unsafe�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_casesZprint_clasetZ print_classesZprint_codeprocZprint_codesetupZprint_coercions�print_commandsZ print_contextZprint_defn_rulesZprint_dependenciesZprint_factsZprint_induct_rulesZprint_inductivesZ print_interpsZprint_localeZ print_localesZ print_methodsZ print_optionsZprint_ordersZprint_quot_mapsZprint_quotconstsZprint_quotientsZprint_quotientsQ3Zprint_quotmapsQ3Zprint_rulesZ print_simpsetZprint_stateZprint_statementZprint_syntaxZprint_theoremsZprint_theoryZprint_trans_rules�prop�pwdZ quickcheckZrefuteZsledgehammerZ smt_statusZsolve_directZspark_status�termZthmZthm_depsZthy_depsr` Ztry0�typZunused_thms�value�valuesZwelcomeZprint_ML_antiquotationsZprint_term_bindingsZ values_prolog)Ztheory�beginr/ )�headerZchapter)�sectionZ subsectionZ subsubsection�sectZsubsectZ subsubsect)�ZMLZML_fileZabbreviationZadhoc_overloadingZaritiesZ atom_declZattribute_setupZaxiomatizationZbundleZ case_of_simps�class�classesZclassrelZ codatatypeZ code_abortZ code_classZ code_constZ code_datatypeZcode_identifierZcode_includeZ code_instanceZcode_modulenameZ code_monadZ code_printingZcode_reflectZ code_reservedZ code_typeZcoinductiveZcoinductive_setZconsts�context�datatypeZdatatype_newZdatatype_new_compatZdeclarationZdeclareZdefault_sortZdefer_recdefZ definitionZdefs�domainZdomain_isomorphismZ domaindefZequivarianceZexport_code�extractZextract_typeZfixrecr+ Z fun_casesZ hide_classZ hide_constZ hide_factZ hide_typeZimport_const_mapZimport_fileZimport_tptpZimport_type_mapZ inductiveZ inductive_setZ instantiationZjudgmentZlemmasZlifting_forgetZlifting_updateZlocal_setup�localeZmethod_setupZnitpick_paramsZno_adhoc_overloadingZno_notationZ no_syntaxZno_translationsZno_type_notationZnominal_datatypeZnonterminal�notationZnotepad�oracleZoverloadingZparse_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 statespace�syntaxZsyntax_declarationr� Ztext_rawZtheoremsZtranslationsZ type_notationZtype_synonymZtyped_print_translationZtypedeclZ hoarestateZinstall_C_fileZinstall_C_typesZ wpc_setupZc_defsZc_typesZmemsafeZ SML_exportZSML_fileZ SML_importZapproximateZbnf_axiomatization� cartoucheZdatatype_compatZfree_constructorsZfunctorZnominal_functionZnominal_terminationZpermanent_interpretationZbindsZdefiningZsmt2_statusZterm_cartoucheZboogie_fileZtext_cartouche)Zinductive_casesZinductive_simps)!Zax_specification�bnfZ code_predZ corollaryZcpodefZcrunchZ crunch_ignoreZ enriched_type�function�instanceZinterpretationZlemmaZlift_definitionZnominal_inductiveZnominal_inductive2Znominal_primrecZpcpodefZprimcorecursiveZquotient_definitionZ quotient_typeZ recdef_tcZrep_datatypeZschematic_corollaryZschematic_lemmaZschematic_theoremZspark_vc� specification�subclassZ sublocaleZterminationZtheoremZtypedefZwrap_free_constructors)rX rZ Zqed)ZsorryZoops)rJ ZhenceZ interpret)�nextZproof)�finally�fromr5 Z ultimatelyr8 )ZML_prfZalso�includeZ includingr2 Zmoreover�note�txtZtxt_rawZ unfoldingrD �write)Zassumer>