sagemath

Compute algebraic structures using canonical SageMath objects with verification.

1|Updated Feb 24, 2026
One-click install
npx skills add https://github.com/dzackgarza/ai --skill sagemath
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sagemath
Source: https://github.com/dzackgarza/ai/tree/main/opencode/skills/sagemath
Command: npx skills add https://github.com/dzackgarza/ai --skill sagemath

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps users avoid manual construction of mathematical objects by guiding them to use canonical SageMath structures, ensuring clarity and correctness.

Core Features & Use Cases

  • Canonical objects: leverage SageMath's built-in algebraic structures (RootSystem, WeylGroup, CartanMatrix) to model mathematical entities.
  • Verifiable computations: write tests that confirm properties (e.g., root counts, inner products) rather than relying on hard-coded values.
  • Reproducible workflows: promote reproducible math sessions by using canonical objects and documented steps.

Quick Start

Try a canonical SageMath task, such as computing the A2 root lattice.

Frequently Asked Questions about sagemath

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I compute root systems and Cartan matrices reliably in SageMath?

To compute root systems reliably in SageMath, use canonical built-in algebraic structures like RootSystem and CartanMatrix rather than manual construction. This approach ensures verifiable properties and reproducible workflows for algebraic computations.

What is the best way to verify mathematical properties like root counts and inner products?

The best way to verify mathematical properties is to write explicit tests confirming computed results, such as root counts and inner products, using canonical SageMath objects rather than relying on hard-coded values.

Why does manual construction of algebraic structures lead to errors in SageMath?

Manual construction of algebraic structures leads to errors because it bypasses SageMath's canonical structures, risking mathematical incorrectness. Using built-in objects like WeylGroup ensures clarity, reliability, and verifiable properties for geometry and number theory tasks.

Can I use canonical SageMath objects for number theory and geometry tasks?

Yes, you can use canonical SageMath objects for number theory and geometry tasks. They provide built-in algebraic structures that ensure reliable computations and explicit verification of mathematical properties across these domains.

How do I set up reproducible math sessions using SageMath?

To set up reproducible math sessions using SageMath, leverage canonical objects and document each computation step. This promotes reproducibility by relying on built-in algebraic structures and explicit verification rather than manual construction.