Server : Apache System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64 User : dh_edsupp ( 6597262) PHP Version : 8.2.26 Disable Function : NONE Directory : /lib/python3/dist-packages/pygments/lexers/__pycache__/ |
Upload File : |
o ���a�L � @ s� d Z ddlZddlmZmZmZ ddlmZmZm Z m Z mZmZm Z mZmZ g d�ZG dd� de�ZG dd � d e�ZG d d� de�ZdS )z� pygments.lexers.theorem ~~~~~~~~~~~~~~~~~~~~~~~ Lexers for theorem-proving languages. :copyright: Copyright 2006-2021 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� e Zd ZdZdZdgZdgZdgZej Z dZdZdZ d Zd ZdZdZd ZdZdZdefdejjfdedfeeddd�ejfeeddd�efee ddd�ejfeeddd�efeeddd�ejfeeddd�ejfdefdd�eddd� � e fdeeef e fdefde!j"fde!j#fde!j$fd e!j%fd!e!j&fd"e'j(fd#e'j(fd$efd%e'j)d&fd'efd(ejjfgd)efded*fd+ed,fd-efgd.e'j)fd/e'j)fd%e'j)d,fgdefd0e*fd1ejfd2ej+d,fd3ed,fe,d,�gd4�Z-d5d6� Z.dS )7r zZ For the `Coq <http://coq.inria.fr/>`_ theorem prover. .. versionadded:: 1.5 �Coq�coqz*.vz text/x-coq)T�Section�Module�End�Require�Import�Export�Variable� Variables� Parameter� Parameters�Axiom�Axioms� Hypothesis� Hypotheses�Notation�Local�Tactic�Reserved�Scope�Open�Close�Bind�Delimit� Definition�Example�Let�Ltac�Fixpoint� CoFixpoint�Morphism�Relation�Implicit� Arguments�Types�Set�Unset� Contextual�Strict�Prenex� Implicits� Inductive�CoInductive�Record� Structure�Variant� Canonical�Coercion�Theorem�Lemma�Fact�Remark� Corollary�Proposition�Property�Goal�Proof�Restart�Save�Qed�Defined�Abort�Admitted�Hint�Resolve�Rewrite�View�Search�Show�Print�Printing�All�Graph�Projections�inside�outside�Check�Global�Instance�Class�Existing�Universe�Polymorphic�Monomorphic�Context)�forall�exists�exists2�fun�fix�cofix�struct�match�end�in�return�let�if�is�then�else�for�of�nosimpl�with�as)�Type�Prop�SProp)C�pose�set�move�case�elim�apply�clear�hnf�intro�intros� generalize�rename�pattern�after�destruct� induction�using�refine� inversion� injection�rewrite�congr�unlock�compute�ring�field�replace�fold�unfold�change� cutrewrite�simpl�have�suff�wlog�suffices�without�loss�nat_norm�assert�cut�trivial�revert� bool_congr� nat_congr�symmetry�transitivity�auto�split�left�right�autorewrite�tauto�setoid_rewrite� intuition�eauto�eapply�econstructor� etransitivity�constructor�erewrite�red�cbv�lazy� vm_compute�native_compute�subst)�by�now�done�exact�reflexivityr� �romega�omega�lia�nia�lra�nra�psatz� assumption�solve� contradiction�discriminate� congruence)�do�last�first�try�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\|\}u λ� ¬u ∧u ∨u ∀u ∃u →u ↔u ≠u ≤u ≥z[!$%&*+\./:<=>?@^|~-]z[!?~]z[=<>@^|&+\*/$%-]�\s+zfalse|true|\(\)|\[\]�\(\*�comment�\b��prefix�suffixz\b([A-Z][\w\']*)z(%s)�|N���z (%s|%s)?%sz [^\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'.'�'�"�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_\']*)�rootr� r� �dottedc C s d| v r d| v rdS d S d S )NrM rJ � � )�textr r �9/usr/lib/python3/dist-packages/pygments/lexers/theorem.py�analyse_text� s �zCoqLexer.analyse_text)/�__name__� __module__�__qualname__�__doc__�name�aliases� filenames� mimetypes�re�UNICODE�flags� keywords1� keywords2� keywords3� keywords4� keywords5� keywords6�keyopts� operators�prefix_syms� infix_symsr r �Builtin�Pseudor r r � Namespacer| r$ �joinr r �Integer�Hex�Oct�Bin�Floatr �Char�Doubler ra r �tokensr r r r r r sx �"� � ��7r c @ s� e Zd ZdZdZdgZdgZdgZdZdZ dZ d Zd ZdZ dZd ZdZdZdZdZdZdZdZdZdZdZdZg def�dedf�dedf�ee�ef�ee�ejf�eeddd�e j!f�ee ddd�e j"f�ee ddd�e f�ee ddd�e f�eeddd�e#j$f�eeddd�e#j%f�eeddd�e j&f�eeddd�e j&f�eeddd�e#j'f�eeddd�e f�eeddd�e f�eeddd�e f�eeddd�e f�eeddd�e f�eeddd�e f�eeddd�e f�eeddd�e j!f�d ej(f�d!e)f�d"e)f�d#e)j"f�d$e)f�d%e*j+f�d&e*j,f�d'e*j-f�d(e.d)f�d*e.j/d+f�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 )<r zf For the `Isabelle <http://isabelle.in.tum.de/>`_ proof assistant. .. versionadded:: 2.0 �Isabelle�isabellez*.thyztext/x-isabelle)2�and�assumes�attach�avoids�binder�checking�class_instance�class_relation�code_module�congs�constant� constrains� datatypes�defines�file�fixesrw � functions�hints� identifierrs �importsrp �includes�infix�infixl�infixrrt �keywordsr� �module_name�monos� morphisms� no_discs_sels�notes�obtains�open�output� overloaded� parametric� permissive� pervasive� rep_compat�shows� structure� type_class�type_constructor� unchecked�unsafe�where)L� ML_command�ML_val� class_deps� code_deps� code_thms�display_drafts�find_consts� find_theorems�find_unused_assms�full_prf�help�locale_deps�nitpick�pr�prf� print_abbrevs�print_antiquotations�print_attributes�print_binds� print_bnfs� print_bundles�print_case_translations�print_cases�print_claset� print_classes�print_codeproc�print_codesetup�print_coercions�print_commands� print_context�print_defn_rules�print_dependencies�print_facts�print_induct_rules�print_inductives� print_interps�print_locale� print_locales� print_methods� print_options�print_orders�print_quot_maps�print_quotconsts�print_quotients�print_quotientsQ3�print_quotmapsQ3�print_rules� print_simpset�print_state�print_statement�print_syntax�print_theorems�print_theory�print_trans_rules�prop�pwd� quickcheck�refute�sledgehammer� smt_status�solve_direct�spark_status�term�thm�thm_deps�thy_depsr� �try0�typ�unused_thms�value�values�welcome�print_ML_antiquotations�print_term_bindings� values_prolog)�theory�beginro )�header�chapter)�section� subsection� subsubsection�sect�subsect� subsubsect)��ML�ML_file�abbreviation�adhoc_overloading�arities� atom_decl�attribute_setup�axiomatization�bundle� case_of_simps�class�classes�classrel� codatatype� code_abort� code_class� code_const� code_datatype�code_identifier�code_include� code_instance�code_modulename� code_monad� code_printing�code_reflect� code_reserved� code_type�coinductive�coinductive_set�consts�context�datatype�datatype_new�datatype_new_compat�declaration�declare�default_sort�defer_recdef� definition�defs�domain�domain_isomorphism� domaindef�equivariance�export_code�extract�extract_type�fixrecrj � fun_cases� hide_class� hide_const� hide_fact� hide_type�import_const_map�import_file�import_tptp�import_type_map� inductive� inductive_set� instantiation�judgment�lemmas�lifting_forget�lifting_update�local_setup�locale�method_setup�nitpick_params�no_adhoc_overloading�no_notation� no_syntax�no_translations�no_type_notation�nominal_datatype�nonterminal�notation�notepad�oracle�overloading�parse_ast_translation�parse_translation�partial_function� primcorec�primrec�primrec_new�print_ast_translation�print_translation�quickcheck_generator�quickcheck_params� realizability� realizers�recdef�record� refute_params�setup� setup_lifting� simproc_setup� simps_of_case�sledgehammer_params� spark_end� spark_open�spark_open_siv�spark_open_vcg�spark_proof_functions�spark_types� statespace�syntax�syntax_declarationr �text_raw�theorems�translations� type_notation�type_synonym�typed_print_translation�typedecl� hoarestate�install_C_file�install_C_types� wpc_setup�c_defs�c_types�memsafe� SML_export�SML_file� SML_import�approximate�bnf_axiomatization� cartouche�datatype_compat�free_constructors�functor�nominal_function�nominal_termination�permanent_interpretation�binds�defining�smt2_status�term_cartouche�boogie_file�text_cartouche)�inductive_cases�inductive_simps)!�ax_specification�bnf� code_pred� corollary�cpodef�crunch� crunch_ignore� enriched_type�function�instance�interpretation�lemma�lift_definition�nominal_inductive�nominal_inductive2�nominal_primrec�pcpodef�primcorecursive�quotient_definition� quotient_type� recdef_tc�rep_datatype�schematic_corollary�schematic_lemma�schematic_theorem�spark_vc� specification�subclass� sublocale�termination�theorem�typedef�wrap_free_constructors)r� r� �qed)�sorry�oops)r� �hence� interpret)�next�proof)�finally�fromru � ultimatelyrz )�ML_prf�also�include� includingrr �moreover�note�txt�txt_raw� unfoldingr� �write)�assumer� �defrk �presume)�guess�obtain�show�thus)r� � apply_end�apply_trace�back�defer�prefer)r� r� �(�)�[r� r� r� r� r� �+r� �!�?)�{�}�.z..r� r� r� z\{\*r r� r� z\\<\w*>z[^\W\d][.\w']*z\?[^\W\d][.\w']*z'[^\W\d][.\w']*r� r� r� r� r� r� r� �factr� r� r r r z[^*}]+z\*\}r� r� z[^"\\]+z\\"z\\z[^`\\]+z\\`)r r� r r� r� N)1r r r r r r r r � keyword_minor�keyword_diag�keyword_thy�keyword_section�keyword_subsection�keyword_theory_decl�keyword_theory_script�keyword_theory_goal�keyword_qed�keyword_abandon_proof�keyword_proof_goal�keyword_proof_block�keyword_proof_chain�keyword_proof_decl�keyword_proof_asm�keyword_proof_asm_goal�keyword_proof_scriptr �proof_operatorsr r r r �Wordr r r| r �Heading� Subheadingr! �Error�Symbolr r r$ r% r& r �Otherr* r r r r r � s� &��� ��� �� ������������� �"�$�%�&�(�)�*�+�-� .�1��� � �r c @ sr e Zd ZdZdZdgZdgZdgZej ej B Zdefde jdfd ed fdejfedd d d�ejfedd d d�ejfdejfedd d d�efedd d d�ejfedd d d�ejfedd d�efed�efdefdejfdejfdejfde jdfde jfdejfdejj fgd ej!fd ej!d!fd"ej!d#fd$ej!fgd e jfd"e jd#fd$e jfgd%e jfd&e j"fde jd#fgd'�Z#d(S ))r zm For the `Lean <https://github.com/leanprover/lean>`_ theorem prover. .. versionadded:: 2.0 �Lean�leanz*.leanztext/x-leanr� z/--� docstringz/-r� z--.*?$)�import�renaming�hiding� namespace�local�private� protectedr� rj �omitr� r� �exportrL � attributer� r� )(rH r[ rs r� �example�axiom�axiomsr7 � constants�universe� universesr� r� rT �extendsr� rF r� znoncomputable theory� noncomputable�mutual�metar� � parameter� parameters�variable� variables�reserve� precedence�postfixr� r� rB rC rD r� r� ro � set_option�run_cmdz@\[[^\]]*\])rg rj �Pirf r� rw rr r� rr rs rv ru rp rz �calcrn r� )r_ �admit)�Sortr} r| )z#evalz#checkz#reducez#exitz#printz#help)r� )r~ r r� r� r� r� r� u ⟨u ⟩u ‹u ›u ⦃u ⦄r� 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]*z0x[A-Za-z0-9]+z0b[01]+z\d+r� r� z='(?:(\\[\\\"'nt])|(\\x[0-9a-fA-F]{2})|(\\u[0-9a-fA-F]{4})|.)'r� r� z[^/-]r� z-/r z[/-]z[^\\"]+z9(?:(\\[\\\"'nt])|(\\x[0-9a-fA-F]{2})|(\\u[0-9a-fA-F]{4})))r r� r� r� N)$r r r r r r r r r � MULTILINEr r r r �Docr �Singler r r! �Declarationr r� r| r r r r# r) r( r r r � Multiline�Escaper* r r r r r ~ s| � � �������� �C � � � �r )r r �pygments.lexerr r r �pygments.tokenr r r r r r r r r �__all__r r r r r r r �<module> s , Y