|e}`dZddlmZmZddlmZmZmZmZm Z dgZ dZ dZ dZ dZGd deZy ) z pygments.lexers.macaulay2 ~~~~~~~~~~~~~~~~~~~~~~~~~ Lexer for Macaulay2. :copyright: Copyright 2006-2023 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. ) RegexLexerwords)CommentKeywordNameStringTextMacaulay2Lexer)"andbreakcatchcontinuedo elapsedTime elapsedTimingelseforfromglobalifinlistlocalnewnotoforreturnshieldSPACEstepsymbolthenthreadVariablethrowtimetimingtotrywhenwhilexor)Adjacent AffineVarietyAnalyzerANCHOR AngleBarListArrayAssociativeExpressionBag BasicList BettiTallyBinaryOperation BLOCKQUOTEBODYBOLDBooleanBRBUTTON CacheFunction CacheTableCCCDATA ChainComplexChainComplexMapCODE CoherentSheafCommandCOMMENTCompiledFunctionCompiledFunctionBodyCompiledFunctionClosure ComplexFieldConstantDatabaseDDDescentDescribe Dictionary DirectSumDIVDivideDL DocumentTagDT EliminateEM EngineRingEquation ExampleItem ExpressionFile FilePosition FractionFieldFunctionFunctionApplication FunctionBodyFunctionClosure GaloisFieldGeneralOrderedMonoidGlobalDictionary GradedModuleGradedModuleMap GroebnerBasisGroebnerBasisOptions HashTableHEADHEADER1HEADER2HEADER3HEADER4HEADER5HEADER6 HeaderTypeHolderHRHREFHTMLHybrid HypertextHypertextContainerHypertextParagraph HypertextVoidIdealIMG ImmutableTypeINDENTIndeterminateNumberIndexedVariableIndexedVariableTable InexactFieldInexactFieldFamily InexactNumberInfiniteNumberINPUTIntermediateMarkUpTypeITALICIteratorKBDrLABELLATERLILINKListLITERALLocalDictionary LowerBound Manipulator MapExpression MarkUpTypeMatrixMatrixExpressionMENUMETAMethodFunctionMethodFunctionBinaryMethodFunctionSingleMethodFunctionWithOptionsMinusModuleMonoid MonoidElement MonomialIdealMultigradedBettiTallyMutableHashTable MutableList MutableMatrixNetNetFileNothingNumberNumberedVerticalListOL OneExpressionOption OptionTable OrderedMonoidPackagePARA ParenthesizeParser PartitionPolynomialRingPowerPREProduct ProductOrderProgram ProgramRunProjectiveHilbertPolynomialProjectiveVariety PseudocodeQQ QuotientRing RealField ResolutionRing RingElement RingFamilyRingMap RowExpressionRRRRiSAMPSCRIPTScriptedFunctorSelfInitializingTypeSequenceSetSheafExpression SheafOfRingsSMALLSPANSparseMonomialVectorExpressionSparseVectorExpressionrSTRONGSTYLESUB Subscript SUBSECTIONSum SumOfTwistsSUP SuperscriptSymbol SymbolBodyTABLETableTallyTaskTD TensorProduct TestInputTEXTHThingTimeTITLETOTO2TOHTRTTTypeULURLVARVarietyVectorVectorExpression VerticalList VirtualTally VisibleList WrapperTypeZeroExpressionZZ( aboutabs accumulateacosacoshacotacoth addCancelTaskaddDependencyTaskaddEndFunctionaddHookaddStartFunction addStartTaskadjointagmalarmallambientanalyticSpreadancestor ancestorsandPann annihilatorantipodeanyappendapplicationDirectoryapply applyKeys applyPairs applyTable applyValuesaproposarXivasciiasinasinhassassertassociatedGradedRingassociatedPrimesatanatan2atanh atEndOfFileautoload baseFilenamebaseNamebaseRingbasisbeginDocumentation benchmarkBesselJBesselYBetabettibetweenbinomialborel cacheValue cancelTaskcaptureceiling centerString chainComplex changeBasechar characters charAnalyzercheck checkDegreeschiclassclean clearEchocodecodim coefficientcoefficientRing coefficients cohomologycoimagecokercokernelcollectGarbage columnAdd columnate columnMult columnPermutecolumnRankProfile columnSwapcombinecommandInterpreter commonest commonRingcomodule complementcomplete componentscompose compositionscompress concatenate conductorcone conjugateconnectionCount constParsercontentcontractconwayPolynomialcopy copyDirectorycopyFilecoscoshcotcotangentSheafcothcovercoverMapcpuTime createTaskcsccschcurrentColumnNumbercurrentDirectorycurrentPositioncurrentRowNumber currentTime deadParserdebug debugError decompose deepSplicedefaultdegree degreeGroup degreeLengthdegrees degreesMonoid degreesRingdeletedemark denominatordepthdescribedet determinantdiagonalMatrixdiameter dictionarydiff differenceDigammadim directSum disassemble discriminantdismiss distinguisheddivideByVariabledocdocumentdropdualeagonNorthcottechoOffechoOn eigenvalues eigenvectorseintelements eliminateEnd endPackageentrieseraseerferfcerroreulereulersevenEXAMPLEexamplesexecexpexpectedReesIdealexpm1 exponentsexport exportFrom exportMutable expressionextend exteriorPowerfactorFanofileExecutable fileExists fileLengthfileMode fileReadablefileTime fileWritable fillMatrix findFilesfindHeft findProgram findSynonymsfirstfirstkey fittingIdeal flagLookupflatten flattenRingflipfloorfoldforceGBforkformat formationfracfractionframesfromDividedPowersfromDual functionBody futureParserGammagbgbRemove gbSnapshotgcdgcdCoefficientsgcdLLLGCstatsgeneragenerateAssertions generator generators genericMatrixgenericSkewMatrixgenericSymmetricMatrixgensgenusgetgetcgetChangeMatrixgetenvgetGlobalSymbol getNetFile getNonUnitgetPrimeWithRootOfUnity getSymbolgetWWWGF globalAssignglobalAssignFunctionglobalAssignmentglobalReleaseFunction gradedModulegradedModuleMapgramm graphIdeal graphRing Grassmannian groebnerBasisgroupIDhash hashTableheftheighthermitehilbertFunctionhilbertPolynomial hilbertSeriesholdHom homogenizehomology homomorphismhookshorizontalJoinhtml httpHeaders hypertexticFracP icFractionsicMapicPIdealideal idealizeridentityimage imaginaryPart importFromindependentSetsindexindices inducedMapinducesWellDefinedMapinfoinputinsertinstallAssignmentMethodinstalledPackagesinstallHilbertFunction installMethodinstallMinprimesinstallPackageinstance instancesintegralClosure integrate intersect intersectInP intersectionintervalinverse inverseErfinversePermutationinverseRegularizedBetainverseRegularizedGamma inverseSystemirreducibleCharacteristicSeriesirreducibleDecomposition isAffineRing isANumberisBorelisc isCanceled isCommutative isConstant isDirectory isDirectSumisEmptyisFieldisFiniteisFinitePrimeField isFreeModuleisGlobalSymbol isHomogeneousisIdeal isInfinite isInjective isInputFile isIsomorphic isIsomorphism isLinearType isListenerisLLLisMemberisModuleisMonomialIdeal isMutableisNormalisOpen isOutputFileisPolynomialRing isPrimaryisPrime isPrimitive isPseudoprimeisQuotientModule isQuotientOfisQuotientRingisReadyisReal isReduction isRegularFileisRingisSkewCommutativeisSorted isSquareFreeisStandardGradedPolynomialRing isSubmodule isSubquotientisSubsetisSupportedInZeroLocus isSurjectiveisTableisUnit isWellDefined isWeylAlgebraiteratorjacobian jacobianDualjoinkerkernel kernelLLLkernelOfLocalizationkeyskillkoszullastlcmleadCoefficient leadComponent leadMonomialleadTermleftlength letterParserliftliftable limitFileslimitProcesseslineslinkFilelistForm listSymbolsLLLlngammaload loadPackagelocalDictionarieslocalizelocateloglog1plookup lookupCountLUdecompositionM2CODE makeDirectorymakeDocumentTagmakePackageIndexmakeS2mapmarkedGBmatchmathMLmatrixmax maxPositionmembermemoize memoizeClear memoizeValuesmerge mergePairsmethod methodOptionsmethodsmidpointminmingensmingle minimalBettiminimalPresentation minimalPrimesminimalReductionminimizeminimizeFilenameminors minPositionminPres minprimesminusmkdirmodmodulemodulomonoidmonomialCurveIdeal monomialIdeal monomialsmonomialSubidealmoveFile multidegreemultidoc multigraded multiplicitymutablemutableIdentity mutableMatrix nanosleepneeds needsPackagenetnetListnewClassnewCoordinateSystem newNetFile newPackagenewRingnextnextkey nextPrimeNNParsernonspaceAnalyzernorm normalConenotImplemented nullhomotopy nullParser nullSpacenumbernumcols numColumns numeratornumericnumericIntervalnumgensnumRowsnumrowsoddoeisofClasson openDatabaseopenDatabaseOut openFilesopenIn openInOut openListeneropenOut openOutAppendoptionalSignParseroptionsoptPorPoverridepackpackagepackageTemplatepadpagerpairsparentpart partition partitionspartspdimpeek permanents permutations pfaffianspivotspluspoincare poincareNpolarizepolyposition positionspowerpowermod precisionpreimageprepend presentationprettyprimaryComponentprimaryDecompositionprintprinterr printString processIDproductprofileProjprojectiveHilbertPolynomialpromoteprotectprune pseudocodepseudoRemainder pushForwardQQParserQRDecompositionquotientquotientRemainderradicalradicalContainmentrandomrandomKRationalPointrandomMutableMatrixrankread readDirectoryreadlink readPackagerealPartrealpathrecursionDepthreducedRowEchelonForm reduceHilbertreductionNumber reesAlgebrareesAlgebraIdeal reesIdealregex regexQuoteregisterFinalizer regSeqInIdeal regularityregularizedBetaregularizedGamma relationsrelativizeFilename remainderremoveremoveDirectory removeFileremoveLowestDimension reorganizereplaceresreshape resolution resultantreverserightringringFromFractionsrootsrotateroundrowAddrowMult rowPermuterowRankProfilerowSwaprsortrunrunHooksrunLengthEncode runProgramsamesaturatescanscanKeys scanLines scanPairs scanValuesschedule schreyerOrderSchubert searchPathsecsech seeParsingselectselectInSubringselectVariablesseparateseparateRegexpsequence serialNumbersetsetEcho setGroupIDsetIOExclusivesetIOSynchronizedsetIOUnSynchronized setRandomSeedsetup setupEmacssheafsheafHomshowshowHtmlshowTex simpleDocFrobsin singularLocussinhsizesize2sleepsmithNormalFormsolve someTermssort sortColumnssourcespanSpec specialFiberspecialFiberIdealsplicesplitWWWsqrtstack stacksProject standardForm standardPairs stashValuestatusstylesubsublists submatrixsubmatrixByDegrees subquotientsubsets substitute substringsubtablesumsupersupportSVDswitchsylvesterMatrix symbolBodysymlinkDirectory symlinkFilesymmetricAlgebrasymmetricAlgebraIdealsymmetricKernelsymmetricPowersynonymSYNOPSISsyz syzygySchemetabletaketallytan tangentCone tangentSheaftanhtarget taskResulttemporaryFileNametensortensorAssociativityterminalParsertermsTESTtestHunekeQuestionteststextexMathtimestoAbsolutePathtoCCtoDividedPowerstoDualtoExternalStringtoFieldtoListtoLowertoptopCoefficients topComponentstoRRtoRRi toSequencetoStringtoUppertrace transposetrimtruncatetruncateOutputtutorialultimateunbaguncurry undocumenteduniformuninstallAllPackagesuninstallPackageuniqueuniquePermutations unsequenceunstack urlEncodeuse userSymbolsutf8 utf8check utf8substringvalidatevaluevaluesvarietyvarsvectorversalEmbeddingwait wedgeProduct weightRangewhichGmwidth wikipediawrapyoungestzerozetaZZParser(~AbstractToricVarietiesAcknowledgementAdditionalPaths AdjointIdeal AfterEval AfterNoPrint AfterPrint AInfinityAlgebraicSplines Algorithm AlignmentAllCodimensionsallowableThreadsAnalyzeSheafOnP1applicationDirectorySuffixargument AscendingAssociativeAlgebrasAuthorsAuxiliaryFiles backtraceBareiss BaseFunction baseRingsBaseRowBasisElementLimitBayer BeforePrintBeginningMacaulay2 Benchmark BernsteinSatoBertiniBettiCharactersBGGBIBasisBinaryBinomialBinomialEdgeIdeals BinomialsBKZblockMatrixFormBodyBoijSoederbergBook3264Examples BooleanGBBoxesBrowseBrunscacheCacheExampleOutput CallLimit CannedExampleCatalanConstantCaveatCellularResolutionsCenter CertificationChainComplexExtrasChainComplexOperations ChangeMatrixCharacteristicClassesCheckDocumentationChordalClassicclearAll clearOutputclosecloseIncloseOut ClosestFitCodeCodimensionLimit CodingTheoryCoefficientRingCofactor CohenEngine CohenTopLevel CohomCalgCoincidentRootLoci commandLinecompactMatrixForm ComplementCompleteIntersectionCompleteIntersectionResolutions ComplexesConductorElement ConfigurationConformalBlocks Consequences Constants ContributorsConvexInterfaceConwayPolynomials copyrightCoreCorrespondenceScrollsCotangentSchubertCremonacurrentFileDirectorycurrentFileName currentLayoutcurrentPackage CyclotomicDatedd DebuggingMode debuggingMode debugLevelDecomposableSparseSystems DecomposeDefaultdefaultPrecisionDegree DegreeGroup DegreeLift DegreeLimit DegreeMap DegreeOrder DegreeRankDegreesDenseDensityDepth Descending DescriptionDeterminantalRepresentations DGAlgebrasdictionaryPathDiffAlgDispatch DivideConquer DividedPowersDivisorDmodules docExample docTemplateDownDynamicEagonResolution EdgeIdealsedit EigenSolverEisenbudHunekeVasconcelos EliminationEliminationMatricesEllipticCurvesEllipticIntegralsEmailendendlEngineengineDebugLevel EngineTestsEnumerationCurves environment EquivariantGB errorDepth EulerConstantExample ExampleFilesExampleSystemsExcludeexitExtExteriorIdealsExteriorModulesfalse FastMinorsFastNonminimalFGLMfileDictionaries fileExitHooksFileNameFindOneFiniteFittingIdealsFirst FirstPackage FlatMonoidFlexibleflush FollowLinksForeignFunctionsFormalGroupLawsFormatFourierMotzkin FourTiTwofpLLLFrobeniusThresholdsFunctionFieldDesingularization GBDegreesgbTraceGenerateAssertionsGenericGenericInitialIdealGeometricDecomposability gfanInterfaceGivens GKMVarietiesGLexGlobalGlobalAssignHookglobalAssignmentHooksGlobalHookStoreGlobalReleaseHook GorensteinGradedLieAlgebrasGraphicalModelsGraphicalModelsMLEGraphicsGraphsGRevLexGroebnerStrata GroebnerWalkGroupLex GroupRevLexGTZHadamardhandleInterruptsHardDegreeLimitHeadingHeadlineHeftHeighthelpHermite HermitianHHhhHigherCIOperatorsHighestWeightsHilbertHodgeIntegralsHolonomicSystems homeDirectoryHomePage Homogeneous Homogeneous2HomotopyLieAlgebraHorizontalSpaceHyperplaneArrangementsidIgnoreExampleErrorsii incomparable Increment indeterminateIndexindexComponentsinfinityInfoDirSectioninfoHelp InhomogeneousInputs InstallPrefixIntegralClosureinterpreterDepth Intersection InvariantRing InverseMethodInversesInverseSystems InvertibleInvolutiveBases IsomorphismItemIterateJacobianJetsJoinJSONJupyter K3Carpets K3SurfacesKeep KeepFiles KeepZeroesKeyKeywords Kronecker KustinMiller lastMatchLatticePolytopesLayoutLeft LengthLimitLex LexIdealsLicensesLieTypesLimitLinear LinearAlgebraLinearTruncations lineNumberlistLocalSymbolslistUserSymbolsLLLBases loadDepthLoadDocumentation loadedFilesloadedPackagesLocal LocalRingsLongPolynomialM0nbar Macaulay2DocMakeDocumentationMakeHTMLMakeInfo MakeLinksMakePDFMapleInterfaceMarkovMatchingFieldsMatroidsmaxAllowableThreads maxExponent MaximalRankMaxReductionCountMCMApproximationsMergeTeX minExponentMinimalGenerators MinimalMatrixminimalPresentationMapminimalPresentationMapInv MinimalPrimesMinimizeMinimumVersionMiuraMixedMultiplicityModuleDeformationsMonodromySolverMonomialMonomialAlgebrasMonomialIntegerProgramsMonomialOrbits MonomialOrder Monomials MonomialSizeMultiGradedRationalMapMultiplicitySequenceMultiplierIdealsMultiplierIdealsDim2MultiprojectiveVarietiesNAGtypesrNauty NautyGraphs NCAlgebraNCLex NewFromMethodnewline NewMethodNewOfFromMethod NewOfMethodnilNodeNoetherianOperatorsNoetherNormalizationNonminimalComplexesNoPrintNormalizNormalToricVarietiesnotifyNTLnullnullaryMethodsNumericalAlgebraicGeometryNumericalCertificationNumericalImplicitizationNumericalLinearAlgebraNumericalSchubertCalculusNumericSolutions OldPolyhedraOldToricVectorBundles OnlineLookupOOoooooooooOpenMathoperatorAttributesOptionalComponentsPresentOptionsOrderorderOutputDictionaryOutputsPackageCitationsPackageDictionaryPackageExportsPackageImportsPackageTemplate PairLimitPairsRemainingParametrizationParsingpathPencilsOfQuadrics PermanentsPHCpackPhylogeneticTreespi PieriMapsPlaneCurveSingularitiesPoints PolyhedraPolymakePolyominoIdealsPosetsPositionPositivityToricBundlesPOSIXPostfixPre PrecisionPrefixprefixDirectory prefixPathPrimaryDecomposition PrimaryTagPrimitiveElementPrintprintingAccuracyprintingLeadLimitprintingPrecisionprintingSeparatorprintingTimeLimitprintingTrailLimit printWidth ProbabilityprofileSummary programPaths ProjectivePrune PruneComplex pruningMap"PseudomonomialPrimaryDecompositionPullback PushForwardPythonQthPower QuasidegreesQuaternaryQuartics QuillenSuslinquitQuotientRadical RadicalCodim1 RaiseErrorRandomCanonicalCurvesRandomComplexes RandomCurves%RandomCurvesOverVerySmallFiniteFieldsRandomGenus14Curves RandomIdealsRandomMonomialIdeals RandomObjectsRandomPlaneCurves RandomPointsRandomSpaceCurvesRange RationalMapsRationalPointsRationalPoints2ReactionNetworksRealFPRealQPRealQP1 RealRootsRealRRRealXDrecursionLimitReduce ReesAlgebra ReferencesReflexivePolytopesDB RegularityRelativeCanonicalResolutionReloadRemakeAllDocumentation RerunExamplesResidualIntersectionsResLengthThree ResolutionsOfStanleyReisnerRingsrestartResult Resultants returnCodeReverseRevLexRightrootPathrootURI RunDirectory RunExamples RunExternalM2SagbiGbDetection Saturation Schubert2SchurComplexes SchurFunctors SchurRingsscriptCommandLineSCSCP SectionRingSeeAlso SegreClassesSemidefiniteProgrammingSeminormalization SeparateExec SerializationsheafExtShimoyamaYokoyamashowClassStructure showStructureshowUserStructure SimpleDocSimplicialComplexesSimplicialDecomposabilitySimplicialPosetsSimplifyFractions SizeLimitSkewCommutative SlackIdealsSLnEquivariantMatricesSLPexpressionsSort SortStrategy SourceCode SourceRing SpaceCurvesSparseResultants SpechtModuleSpecialFanoFourfoldsSpectralSequencesSRdeformationsStandardStartWithOneMinor StatePolytope StatGraphsstderrstdioStopBeforeComputation stopIfError StopIterationStopWithMinimalGeneratorsStrategyStrictStronglyStableIdealsStyleSubalgebraBasesSubnodes SubringLimit subscript Sugarless SumsOfSquaresSuperLinearAlgebra superscript SVDComplexesSwitchingFieldsSymbolicPowersSymmetricPolynomialsSynopsisSyzygies SyzygyLimit SyzygyMatrix SyzygyRows TangentConeTateOnProductsTensorComplexesTest testExample TestIdealsTeXmacsr ThinSincereQuivers ThreadedGB ThresholdTopcom topLevelModeTor TorAlgebraToricToricInvariants ToricTopologyToricVectorBundlesTorsion TotalPairsTreeTriangularSetsTriangulationsTriesTrimTripletsTropicaltrueTruncate Truncations TSpreadIdeals TypicalValue typicalValuesUndoUniqueUnitsUnmixedUp UpdateOnlyUpperTriangularUsageUseCachedExampleOutputUseHilbertFunctionUserMode UseSyzygiesVariableVariableBaseName Variables Vasconcelos VectorFieldsVectorGraphicsVerbose VerbosityVerifyVersalDeformationsVersionversion VerticalSpaceviewHelpVirtualResolutions VisualizeWebAppWeights WeylAlgebra WeylGroupsWhitneyStratificationsWrapXMLc eZdZdZdZdZdgZdgZdejfdejdfd e d fd e d fe e d d efe ed d ej"fe ed d ej&fe ed d ej*fdej.fdefg dejfdejdfdejfgde fd e dfde fgde fde fde dfde fgdZy)r zJLexer for Macaulay2, a software system for research in algebraic geometry. Macaulay2zhttps://macaulay2.com/ macaulay2z*.m2z--.*$z-\* block comment" quote stringz/// slash stringz\b)prefixsuffixz\s+.z[^*-]+z\*-z#popz[*-]z[^\\"]+z\\"?z[^/]+z (//)+(?!/)z /(//)+(?!/)/)rootrrrN)__name__ __module__ __qualname____doc__nameurlaliases filenamesrSingle Multilinerr M2KEYWORDSr M2DATATYPESrBuiltin M2FUNCTIONSra M2CONSTANTSrLr Whitespacetokens;/usr/lib/python3/dist-packages/pygments/lexers/macaulay2.pyr r s:T D "CmGIw~~ & W&& 8 6> * V^ , :eE :G D ;uU ;T\\ J ;uU ;T]] K ;uU ;T]] K T__ % 4L  )) * W&& / g'' (  66 " f  v  F # VV , 6N  /FrN)rpygments.lexerrrpygments.tokenrrrrr __all__rrrrr rrrrsL-??  # JY va  F  B%Z%r