View on GitHub

Exact p-Adics

A Magma package for exact p-adic computation

Overview

Magma’s built-in types for p-adic computation (FldPad, RngPad, RngPadRes, etc) are all approximate in the sense that their elements are computed immediately to some precision, and therefore an element really corresponds to an equivalence class of genuine p-adic elements.

In this package, we provide a new representation of p-adics which is exact in the sense that a p-adic number is represented to infinite precision. This is achieved by having the representation be lazy in the sense that in addition to each element being represented by a finite-precision approximation, it carries around a function which allows it to update its approximation arbitrarily high.

Advantages of this approach are:

Disadvantages are:

Therefore the main use-cases of this package are: