K iV`dZddlmZmZddlmZmZmZmZm Z dgZ dZ dZ dZ dZGd deZy ) z pygments.lexers.macaulay2 ~~~~~~~~~~~~~~~~~~~~~~~~~ Lexer for Macaulay2. :copyright: Copyright 2006-2025 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. ) RegexLexerwords)CommentKeywordNameStringTextMacaulay2Lexer)$SPACETESTandbreakcatchcontinuedo elapsedTime elapsedTimingelseforfromglobalifinlistlocalnewnotoforreturnshieldstepsymbolthen threadLocalthreadVariablethrowtimetimingtotrywhenwhilexor)ANCHORAdjacent AffineVarietyAnalyzer AngleBarListArrayAssociativeExpression AtomicInt BLOCKQUOTEBODYBOLDBRBUTTONBag BasicList BettiTallyBinaryOperationBooleanCCCDATACODECOMMENT CacheFunction CacheTable ChainComplexChainComplexMap CoherentSheafCommandCompiledFunctionCompiledFunctionBodyCompiledFunctionClosure ComplexFieldConstantDDDIVDLDTDatabaseDescentDescribe Dictionary DirectSumDivide DocumentTagEM Eliminate EngineRingEquation ExampleItem ExpressionFile FilePosition FractionFieldFunctionFunctionApplication FunctionBodyFunctionClosure GaloisFieldGeneralOrderedMonoidGlobalDictionary GradedModuleGradedModuleMap GroebnerBasisGroebnerBasisOptionsHEADHEADER1HEADER2HEADER3HEADER4HEADER5HEADER6HRHREFHTML HashTable HeaderTypeHolderHybrid HypertextHypertextContainerHypertextParagraph HypertextVoidIMGINDENTINPUTITALICIdeal ImmutableTypeIndeterminateNumberIndexedVariableIndexedVariableTable InexactFieldInexactFieldFamily InexactNumberInfiniteNumberIntermediateMarkUpTypeIteratorKBDrLABELLATERLILINKLITERALListLocalDictionary LowerBoundMENUMETA Manipulator MapExpression MarkUpTypeMatrixMatrixExpressionMethodFunctionMethodFunctionBinaryMethodFunctionSingleMethodFunctionWithOptionsMinusModuleMonoid MonoidElement MonomialIdealMultigradedBettiTallyMutableHashTable MutableList MutableMatrixNetNetFileNothingNumberNumberedVerticalListOL OneExpressionOption OptionTable OrderedMonoidPARAPREPackage ParenthesizeParser PartitionPolynomialRingPowerProduct ProductOrderProgram ProgramRunProjectiveHilbertPolynomialProjectiveVariety PseudocodePseudocodeClosureQQ QuotientRingRRRRi RealField ResolutionRing RingElement RingFamilyRingMap RowExpressionSAMPSCRIPTSMALLSPANSTRONGSTYLESUB SUBSECTIONSUPScriptedFunctorSelfInitializingTypeSequenceSetSheafExpressionSheafMap SheafOfRingsSparseMonomialVectorExpressionSparseVectorExpressionr SubscriptSum SumOfTwists SuperscriptSymbol SymbolBodyTABLETDTEXTHTITLETOTO2TOHTRTTTableTallyTask TensorProduct TestInputThingTimeTypeULURLVARVarietyVectorVectorExpression VerticalList VirtualTally VisibleList WrapperTypeZZZeroExpression(4BesselJBesselYBetaDigammaEXAMPLEEndFanoGCstatsGFGamma GrassmannianHomLLLLUdecompositionM2CODENNParserProjQQParserQRDecompositionSVDSYNOPSISSchubertSpecZZParseraboutabs accumulateacosacoshacotacoth addCancelTaskaddDependencyTaskaddEndFunctionaddHook addStartTaskadjointagmalarmallambientanalyticSpreadancestor ancestorsandPann annihilatorantipodeanyappendapplicationDirectoryapply applyKeys applyPairs applyTable applyValuesaproposarXivasciiasinasinhassassertassociatedGradedRingassociatedPrimes atEndOfFileatanatan2atanhautoload baseFilenamebaseNamebaseRingbasisbeginDocumentation benchmarkbettibetweenbinomialborel cacheValue cancelTaskcanonicalBundlecaptureceiling centerString chainComplex changeBasechangeDirectorychar charAnalyzer characterscheck checkDegreeschiclassclean clearEchocodecodim coefficientcoefficientRing coefficients cohomologycoimagecokercokernelcollectGarbage columnAdd columnMult columnPermutecolumnRankProfile columnSwap columnatecombinecommandInterpreter commonRing commonestcomodulecompareExchange complementcomplete componentscompose compositionscompress concatenate conductorcone conjugateconnectionCount constParsercontentcontractconwayPolynomialcopy copyDirectorycopyFilecoscoshcotcotangentSheafcothcovercoverMapcpuTime createTaskcsccschcurrentColumnNumbercurrentDirectorycurrentPositioncurrentRowNumber currentTime deadParserdebug debugError decompose deepSplicedefaultdegree degreeGroup degreeLengthdegrees degreesMonoid degreesRingdeletedemark denominatordepthdescribedet determinantdiagonalMatrixdiameter dictionarydiff differencedim directSum disassemble discriminantdismiss distinguisheddivideByVariabledocdocumentdropdualeagonNorthcottechoOffechoOn eigenvalues eigenvectorseintelements eliminate endPackageentrieseraseerferfcerroreulereulersevenexamplesexchangeexecexpexpectedReesIdealexpm1 exponentsexport exportFrom exportMutable expressionextend exteriorPowerfactorfileExecutable fileExists fileLengthfileMode fileReadablefileTime fileWritable fillMatrix findFilesfindHeft findProgram findSynonymsfirstfirstkey fittingIdeal flagLookupflatten flattenRingflipfloorfoldforceGBforkformat formationfracfractionframesfromDividedPowersfromDual functionBody futureParsergbgbRemove gbSnapshotgcdgcdCoefficientsgcdLLLgeneragenerateAssertions generator generators genericMatrixgenericSkewMatrixgenericSymmetricMatrixgensgenusgetgetChangeMatrixgetGlobalSymbolgetIOThreadMode getNetFile getNonUnitgetPrimeWithRootOfUnity getSymbolgetWWWgetcgetenv globalAssignglobalAssignFunctionglobalAssignmentglobalReleaseFunction gradedModulegradedModuleMapgramm graphIdeal graphRing groebnerBasisgroupIDhash hashTable headlinesheftheighthermitehilbertFunctionhilbertPolynomial hilbertSerieshold homogenizehomology homomorphismhookshorizontalJoinhtml httpHeaders hypertexticFracP icFractionsicMapicPIdealideal idealizeridentityimage imaginaryPart importFromindependentSetsindexindices inducedMapinducesWellDefinedMapinfoinputinsertinstallAssignmentMethodinstallHilbertFunction installMethodinstallMinprimesinstallPackageinstalledPackagesinstance instancesintegralClosure integrate intersect intersectInP intersectionintervalinverse inverseErfinversePermutationinverseRegularizedBetainverseRegularizedGamma inverseSystemirreducibleCharacteristicSeriesirreducibleDecomposition isANumber isAffineRingisBorel isCanceled isCommutative isConstant isDirectSum isDirectoryisEmptyisFieldisFiniteisFinitePrimeField isFreeModuleisGlobalSymbol isHomogeneousisIdeal isInfinite isInjective isInputFile isIsomorphic isIsomorphismisLLL isLiftable isLinearType isListenerisMemberisModuleisMonomialIdeal isMutableisNormalisOpen isOutputFileisPolynomialRing isPrimaryisPrime isPrimitive isProjective isPseudoprimeisQuotientModule isQuotientOfisQuotientRingisReadyisReal isReduction isRegularFileisRingisSkewCommutativeisSmoothisSorted isSquareFreeisStandardGradedPolynomialRing isSubmodule isSubquotientisSubsetisSupportedInZeroLocus isSurjectiveisTableisUnit isVeryAmple isWellDefined isWeylAlgebraisciteratorjacobian jacobianDualjoinkerkernel kernelLLLkernelOfLocalizationkeyskillkoszullastlcmleadCoefficient leadComponent leadMonomialleadTermleftlength letterParserliftliftable limitFileslimitProcesseslineslinkFilelistForm listSymbolslngammaload loadPackagelocalDictionarieslocalizelocateloglog1plookup lookupCount makeDirectorymakeDocumentTagmakePackageIndexmakeS2mapmarkedGBmatchmathMLmatrixmax maxPositionmembermemoize memoizeClear memoizeValuesmerge mergePairsmethod methodOptionsmethodsmidpointmin minPositionminPresmingensmingle minimalBettiminimalPresentation minimalPrimesminimalReductionminimizeminimizeFilenameminors minprimesminusmkdirmodmodulemodulomonoidmonomialCurveIdeal monomialIdealmonomialSubideal monomialsmoveFile multidegreemultidoc multigraded multiplicitymutablemutableIdentity mutableMatrix nanosleepneeds needsPackagenetnetListnewClassnewCoordinateSystem newNetFile newPackagenewRingnext nextPrimenextkeynonspaceAnalyzernorm normalConenotImplemented nullParser nullSpace nullhomotopy numColumnsnumRowsnumbernumcols numeratornumericnumericIntervalnumgensnumrowsoddoeisofClasson openDatabaseopenDatabaseOut openFilesopenIn openInOut openListeneropenOut openOutAppendoptPoptionalSignParseroptionsorPoverridepackpackagepackageTemplatepadpagerpairs parallelApplyparentpart partition partitionspartspdimpeek permanents permutations pfaffianspivotspluspoincare poincareNpolarizepolyposition positionspowerpowermod precisionpreimageprepend presentationprettyprimaryComponentprimaryDecompositionprint printStringprinterr processIDproductprofileprojectiveHilbertPolynomialpromoteprotectprunepseudoRemainder pseudocodepullback pushForwardpushoutquotientquotientRemainderradicalradicalContainmentrandomrandomKRationalPointrandomMutableMatrixrankraysread readDirectory readPackagereadlinkrealPartrealpathrecursionDepth reduceHilbertreducedRowEchelonFormreductionNumber reesAlgebrareesAlgebraIdeal reesIdeal regSeqInIdealregex regexQuoteregisterFinalizer regularityregularizedBetaregularizedGamma relationsrelativizeFilename remainderremoveremoveDirectory removeFileremoveLowestDimension reorganizereplaceresreshape resolution resultantreverserightringringFromFractionsrootsrotateroundrowAddrowMult rowPermuterowRankProfilerowSwaprsortrunrunHooksrunLengthEncode runProgramsamesaturatescanscanKeys scanLines scanPairs scanValuesschedule schreyerOrder searchPathsecsech seeParsingselectselectInSubring selectKeys selectPairs selectValuesselectVariablesseparateseparateRegexpsequence serialNumbersetsetEcho setGroupIDsetIOExclusivesetIOSynchronizedsetIOUnSynchronized setRandomSeedsetup setupEmacs setupLift setupPromotesheafsheafHomsheafMapshowshowHtmlshowTex simpleDocFrobsin singularLocussinhsizesize2sleepsmithNormalFormsolve someTermssort sortColumnssourcespan specialFiberspecialFiberIdealsplicesplitWWWsqrtstack stacksProject standardForm standardPairs stashValuestatusstorestylesubsublists submatrixsubmatrixByDegrees subquotientsubsets substitute substringsubtablesumsupersupportswitchsylvesterMatrix symbolBodysymlinkDirectory symlinkFilesymmetricAlgebrasymmetricAlgebraIdealsymmetricKernelsymmetricPowersynonymsyz syzygySchemetabletaketallytan tangentCone tangentSheaftanhtarget taskResulttemporaryFileNametensortensorAssociativityterminalParsertermstestHunekeQuestionteststextexMathtimestoAbsolutePathtoCCtoDividedPowerstoDualtoExternalStringtoFieldtoListtoLowertoRRtoRRi toSequencetoStringtoUppertoptopCoefficients topComponentstrace transposetrimtruncatetruncateOutputtutorialultimateunbaguncurry undocumenteduniformuninstallAllPackagesuninstallPackageunionuniqueuniquePermutations unsequenceunstack urlEncodeuse userSymbolsutf8 utf8check utf8substringvalidatevaluevaluesvarietyvarsvectorversalEmbeddingwait wedgeProduct weightRangewhichGmwidth wikipediawrapyoungestzerozeta(A1BrouwerDegreesAbstractSimplicialComplexesAbstractToricVarietiesAcknowledgementAdditionalPaths AdjointIdealAdjunctionForSurfaces AfterEval AfterNoPrint AfterPrint AInfinityAlgebraicSplines Algorithm AlignmentAllCodimensionsallowableThreadsAnalyzeSheafOnP1applicationDirectorySuffixargument AscendingAssociativeAlgebrasAuthorsAuxiliaryFiles backtraceBareissBase BaseFunction baseRingsBaseRowBasisElementLimitBayer BeforePrintBeginningMacaulay2 Benchmark BernsteinSatoBertiniBettiCharactersBGGBIBasisBinaryBinomialBinomialEdgeIdeals BinomialsBKZblockMatrixFormBodyBoijSoederbergBook3264Examples BooleanGBBoxesBrowseBrunscacheCacheExampleOutput CallLimit CannedExampleCatalanConstantCaveatCellularResolutionsCenter CertificationChainComplexExtrasChainComplexOperations ChangeMatrixCharacteristicClassesCheckDocumentationChordalciteClassicclearAll 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 GKMVarietiesGLexGlobalGlobalAssignHookglobalAssignmentHooksGlobalHookStoreGlobalReleaseHookGlobalSectionLimit 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 Macaulay2Doc MaintainerMakeDocumentationMakeHTMLMakeInfo MakeLinksMakePDFMapleInterfaceMarkovMatchingFieldsMatrixSchubertMatroidsmaxAllowableThreads maxExponent MaximalRankMaxReductionCountMCMApproximationsMergeTeX minExponentMinimalGenerators MinimalMatrixminimalPresentationMapminimalPresentationMapInv MinimalPrimesMinimizeMinimumVersionMiuraMixedMultiplicityModuleDeformationsMonodromySolverMonomialMonomialAlgebrasMonomialIntegerProgramsMonomialOrbits MonomialOrder Monomials MonomialSizeMsolveMultigradedBGGMultigradedImplicitizationMultiGradedRationalMapMultiplicitySequenceMultiplierIdealsMultiplierIdealsDim2MultiprojectiveVarietiesNAGtypesrNauty NautyGraphs NCAlgebraNCLex NewFromMethodnewline NewMethodNewOfFromMethod NewOfMethodnilNodeNoetherianOperatorsNoetherNormalizationNonminimalComplexesNoPrintNormalizNormalToricVarietiesnotifyNTLnullnullaryMethodsNumericalAlgebraicGeometryNumericalCertificationNumericalImplicitizationNumericalLinearAlgebraNumericalSchubertCalculusNumericalSemigroupsNumericSolutions numTBBThreadsOIGroebnerBases OldPolyhedraOldToricVectorBundles OnlineLookupOOoooooooooOpenMathoperatorAttributesOptionalComponentsPresentOptionsOrderorderOutputDictionaryOutputsPackageCitationsPackageDictionaryPackageExportsPackageImportsPackageTemplate PairLimitPairsRemaining ParallelF4ParallelizeByDegreeParametrizationParsingpathPencilsOfQuadrics Permanents PermutationsPHCpackPhylogeneticTreespi PieriMapsPlaneCurveLinearSeriesPlaneCurveSingularitiesPoints PolyhedraPolymakePolyominoIdealsPosetsPositionPositivityToricBundlesPOSIXPostfixPre PrecisionPrefixprefixDirectory prefixPathPrimaryDecomposition PrimaryTagPrimitiveElementPrintprintingAccuracyprintingLeadLimitprintingPrecisionprintingSeparatorprintingTimeLimitprintingTrailLimit printWidth ProbabilityprofileSummary programPaths ProjectivePrune PruneComplex pruningMap"PseudomonomialPrimaryDecompositionPullback pullbackMaps PushForward pushoutMapsPythonQthPowerQuadraticIdealExamplesByRoos QuasidegreesQuaternaryQuartics QuillenSuslinquitQuotientRadical RadicalCodim1 RaiseErrorRandomCanonicalCurvesRandomComplexes RandomCurves%RandomCurvesOverVerySmallFiniteFieldsRandomGenus14Curves RandomIdealsRandomMonomialIdeals RandomObjectsRandomPlaneCurves RandomPointsRandomSpaceCurvesRange RationalMapsRationalPointsRationalPoints2ReactionNetworksRealFPRealQPRealQP1 RealRootsRealRRRealXDrecursionLimitReduce ReesAlgebra ReferencesReflexivePolytopesDB RegularityRelativeCanonicalResolutionReloadRemakeAllDocumentation RerunExamplesResidualIntersectionsResLengthThree ResolutionsOfStanleyReisnerRingsrestartResult Resultants returnCodeReverseRevLexRight RInterfacerootPathrootURI RunDirectory RunExamples RunExternalM2SagbiGbDetection Saturation SaturationMap Schubert2SchurComplexes SchurFunctors SchurRings SchurVeronese SCMAlgebrasscriptCommandLineSCSCP 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 TangentConeTateOnProductsTensorComplexes TerraciniLociTest testExample TestIdealsTeXmacsr ThinSincereQuivers ThreadedGBThreads ThresholdTopcom topLevelModeTor TorAlgebraToricToricInvariants ToricTopologyToricVectorBundlesTorsion TorsionFree TotalPairsTreeTriangularSetsTriangulationsTriesTrimTripletsTropical TropicalTorictrueTruncate Truncations TSpreadIdeals TypicalValue typicalValuesUndoUniqueUnitsUnmixedUp UpdateOnlyUpperTriangularUsageUseCachedExampleOutputUseHilbertFunctionUserMode UseSyzygies ValuationsVariableVariableBaseName Variables Varieties Vasconcelos VectorFieldsVectorGraphicsVerbose VerbosityVerifyVersalDeformationsVersionversion VerticalSpaceviewHelpVirtualResolutions VisualizeVNumberWebAppWeights WeylAlgebra WeylAlgebras WeylGroupsWhitneyStratificationsWrapXMLc eZdZdZdZdZdgZdgZdZde jfde jd fd e d fd e d fe eddefe eddej$fe eddej(fe eddej,fdej0fdefg de jfde jdfde jfgde fd e dfde fgde fde fde dfde fgdZy)r zJLexer for Macaulay2, a software system for research in algebraic geometry. Macaulay2zhttps://macaulay2.com/ macaulay2z*.m2z2.12z--.*$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 filenames version_addedrSingle Multilinerr M2KEYWORDSr M2DATATYPESrBuiltin M2FUNCTIONSrd M2CONSTANTSrOr Whitespacetokens_/mnt/ssd/data/python-lab/Trading/venv/lib/python3.12/site-packages/pygments/lexers/macaulay2.pyr r s?T D "CmGIMw~~ & 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-??  % N\ |u  n`  D&Z&r