The areas / V34. The tactics of Mathlib
Mathlib.Tactic.Hessenberg.Reduce
11 declarations. Mathlib docs · Source
Reduction of a matrix over ℚ to Hessenberg form
reduce computes, for a square matrix A over ℚ, a sequence of row and column swaps, a unit
lower triangular matrix L and an upper Hessenberg matrix H such that Aσ * L = L * H, where
Aσ := A.submatrix σ σ is A with its rows and columns permuted by the swaps.
Implementation notes
reduce follows steps 1 to 4 of [Cohen][cohen1993], Algorithm 2.2.9.
References
- [H. Cohen, A Course in Computational Algebraic Number Theory][cohen1993], Algorithm 2.2.9
theorem Mathlib.Tactic.Hessenberg.Reduction.mk.inj E1 #
∀ {swaps : Array (ℕ × ℕ)} {L H : Array (Array ℚ)} {swaps_1 : Array (ℕ × ℕ)} {L_1 H_1 : Array (Array ℚ)},
{ swaps := swaps, L := L, H := H } = { swaps := swaps_1, L := L_1, H := H_1 } → swaps = swaps_1 ∧ L = L_1 ∧ H = H_1
def Mathlib.Tactic.Hessenberg.Reduction.ctorIdx E1 #
Mathlib.Tactic.Hessenberg.Reduction → ℕ
theorem Mathlib.Tactic.Hessenberg.Reduction.mk.injEq E0 #
∀ (swaps : Array (ℕ × ℕ)) (L H : Array (Array ℚ)) (swaps_1 : Array (ℕ × ℕ)) (L_1 H_1 : Array (Array ℚ)),
({ swaps := swaps, L := L, H := H } = { swaps := swaps_1, L := L_1, H := H_1 }) =
(swaps = swaps_1 ∧ L = L_1 ∧ H = H_1)
structure Mathlib.Tactic.Hessenberg.Reduction E1 #
Type
A similarity Aσ * L = L * H of a rational matrix A to upper Hessenberg form, where
Aσ := A.submatrix σ σ for the arrangement σ of the interchanges.
ctor Mathlib.Tactic.Hessenberg.Reduction.mk E0 #
Array (ℕ × ℕ) → Array (Array ℚ) → Array (Array ℚ) → Mathlib.Tactic.Hessenberg.Reduction
abbrev Mathlib.Tactic.Hessenberg.Reduction.swaps E1 #
Mathlib.Tactic.Hessenberg.Reduction → Array (ℕ × ℕ)
The row and column interchanges, in order. The permutation σ is their product.
abbrev Mathlib.Tactic.Hessenberg.Reduction.L E1 #
Mathlib.Tactic.Hessenberg.Reduction → Array (Array ℚ)
The unit lower triangular transform.
abbrev Mathlib.Tactic.Hessenberg.Reduction.H E1 #
Mathlib.Tactic.Hessenberg.Reduction → Array (Array ℚ)
The upper Hessenberg form.
def Mathlib.Tactic.Hessenberg.Reduction.perm E1 #
Mathlib.Tactic.Hessenberg.Reduction → Array ℕ
The row and column swaps of a Reduction represented as an indexed array. An entry e at index
i means that row and column e of the original matrix move to position i.
def Mathlib.Tactic.Hessenberg.Reduction.arrange E1 #
{β : Type} → [Inhabited β] → Mathlib.Tactic.Hessenberg.Reduction → Array (Array β) → Array (Array β)
Arrange the rows and columns of the matrix M, given as an array of rows, by the interchanges
of the reduction: the entry at (i, j) of the result is the entry of M at
(d.perm[i], d.perm[j]).
def Mathlib.Tactic.Hessenberg.reduce E1 #
ℕ → Array (Array ℚ) → Mathlib.Tactic.Hessenberg.Reduction
Reduce the n × n matrix A over ℚ, given as an array of rows, to upper Hessenberg form by
Gaussian elimination with row and column swaps.