GAP(1)
π GAP β the girlies' guide to Groups, Algorithms and Programming β¨
okay bestie, welcome to the GAP manual, section 1 (user commands, the good stuff) π. This is gap, the one and only. Grab a snack, we're going through every single flag, no cap. π
πΈ SYNOPSIS πΈ
gap [OPTIONS] [FILES]
π¦ DESCRIPTION π¦
So like. GAP is a system for computational discrete algebra, with particular emphasis on Computational Group Theory. She's not just one thing either β she's giving:
- a whole programming language,
- a library of thousands of functions implementing algebraic algorithms written in the GAP language,
- plus large data libraries of algebraic objects.
People use GAP in research and teaching for studying groups and their representations, rings, vector spaces, algebras, combinatorial structures, and more. Multitasking icon behavior, honestly. π
π Startup π
-h,--helpβ prints this help, then dips. bye π¨--versionβ prints the GAP version and exits.--print-gaprootβ prints the primary GAP root and exits.-b,--bannerβ disables/enables the banner.-c<expr> β execute the expression <expr>.--systemfile<file> β read this file afterlib/system.g.
π Input/output π
-q,--quietβ enables/disables quiet mode.-eβ disables/enables quitting on Ctrl+D.-fβ force line editing.-nβ prevent line editing.-E,--readlineβ disables/enables use of the readline library (if possible).-x,--width<num> β set line width.-y,--lines<num> β set number of lines.-pβ enables/disables package output mode (this one's for use by XGAP and similar interfaces).
π§ Memory π§
quick PSA bestie, this whole section may use postfix 'k' = *1024, 'm' = *1024*1024, 'g' = *1024*1024*1024 π
-g,--gasinfoβ show GASMAN messages (full/all/no garbage collections). Only available if GAP uses GASMAN, so vibe check your build first.-m,--minworkspace<mem> β set the initial workspace size.-o,--maxworkspace<mem> β set the workspace size where GAP will warn about excessive memory usage (heads up: GAP may still allocate more, she's dramatic). Only available if GAP uses GASMAN.-K,--limitworkspace<mem> β set the maximal workspace size β and this one is for real, GAP never allocates more.-s<mem> β set the initially mapped virtual memory. Only available if GAP uses GASMAN.
πΈ Roots πΈ
-l,--roots<paths> β set or modify the GAP root paths. Directories are separated using';'. Putting';'at the start/end of the list appends directories to the start/end of the existing list of root paths. Tiny semicolon, big power. β¨-rβ disables/enables the user GAP root dirGAPInfo.UserGapRoot.--packagedirs<paths> β add additional GAP directory paths. Directories are separated using';'.
π Loading π
-Aβ disables/enables autoloading of suggested GAP packages.-Dβ enables/disables debugging the loading of files.-Mβ disables/enables loading of compiled modules.
π Error handling, REPL π
-T,--nobreakloopβ disables/enables break loop and error traceback.--alwaystraceβ always print error traceback. This one overrides the behaviour of-T, so she wins the argument, periodt.--quitonbreakβ quit GAP with a non-zero return value instead of entering the break loop.--noreplβ Disable the GAP read-evaluate-print loop (REPL).--nointeractβ Start GAP in non-interactive mode, which disables both the REPL and the break loop.
π Workspaces π
heads up, these are only available if GAP uses GASMAN:
-L<file> β restore a saved workspace.-Rβ prevent restoring of workspace (this ignores-L, so don't be surprised bestie).
β Profiling β
--prof<file> β runProfileLineByLine(<file>)on GAP start.--memprof<file> β runProfileLineByLine(<file>)on GAP start withrecordMem := true.--cover<file> β runCoverageLineByLine(<file>)on GAP start.
π«Ά Internal developer tools π«Ά
(this heading is literally just "Internal developer tools", she's lowkey unbothered, I respect it)
-Nβ do not use hidden implications.-Oβ disables/enables loading of obsolete files.--bareβ Attempt to start GAP without even needed packages. Girl is running on vibes and nothing else. π
β οΈ IMPORTANT CAVEAT: Short boolean options toggle the current value each time they are called. So calling one twice doesn't do the same thing twice, it flips it back. Also, default actions are indicated first β iykyk.
π AUTHORS π
The GAP Group <http://www.gap-system.org> π«Ά
π COPYRIGHT π
Copyright (1988--2025) by its authors.
GAP is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
π¦ SEE ALSO π¦
You can read the complete manual in /usr/share/gap/doc π or you can use the online help system. Type ?help inside GAP to access it. Then type
?Reference: options!under UNIX
to access the full documentation of options. (the ! is not a typo, it's the help-system link syntax, slay π₯)
okay that's the whole page bestie, you're officially GAP-pilled π
β¨ β this was the GAP(1) page from The GAP team, version dated July 2026. go forth and compute, ily π©·
π¦ where this page comes from
- ubuntu stonking: gap-core 4.16.0-1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms