Skip to content

discrete_log() errors out for matrices over finite fields #33699

@maxale

Description

@maxale

Attempt to compute discrete_log(M,M) for a matrix M over a finite field results in one of two errors:

ValueError: No discrete log of ... found to base ...

or

TypeError: mutable matrices are unhashable

depending on the given matrix M.

F = GF(9,'z')
F.inject_variables()
S = MatrixSpace(F, 2, 2)

M = Matrix(F, [[z + 2,2*z],[2,z]]) # leads to "ValueError: No discrete log of ... found to base ..."
#M = Matrix(F, [[2,2*z],[2*z + 1,2*z + 1]]) # leads to "TypeError: mutable matrices are unhashable"

r = discrete_log(M,M,ord=S.cardinality()-1) # expect r = 1

CC: @yyyyx4

Component: group theory

Issue created by migration from https://trac.sagemath.org/ticket/33699

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions