Documentation

Transfer.Examples.CoqEAL.BareissDet

CoqEAL bareiss — a fraction-free determinant certified against Matrix.det #

CoqEAL's bareiss computes an exact integer determinant by fraction-free elimination, never leaving ℤ. This file proves the refinement at the base sizes: a ℤ-only, #eval-computable determinant certified equal to Mathlib's Matrix.det. At 2×2 the formula is a*d - b*c; at 3×3 it is the Sarrus/Bareiss expansion. Both avoid division, and both equal Matrix.det (det_fin_two, det_fin_three) — computing the classical determinant in ℤ.

Fraction-free 2×2 determinant (the Bareiss base case).

Equations
Instances For

    det2 refines Mathlib's Matrix.det at size 2.

    Fraction-free 3×3 determinant (the Sarrus/Bareiss expansion).

    Equations
    Instances For

      det3 refines Mathlib's Matrix.det at size 3.

      Compute a classical determinant in ℤ #

      A concrete matrix.

      Equations
      Instances For