sagemath / sage

Main repository of SageMath
https://www.sagemath.org
Other
1.43k stars 479 forks source link

add is_symmetric in BooleanFunction #9364

Closed 2c00b582-cfe9-43b9-8124-fec470060704 closed 14 years ago

2c00b582-cfe9-43b9-8124-fec470060704 commented 14 years ago

test if a given Boolean function is invariant under permutation of its inputs.

Component: cryptography

Author: Yann Laigle-Chapuy

Reviewer: Martin Albrecht

Merged: sage-4.5.2.alpha0

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

2c00b582-cfe9-43b9-8124-fec470060704 commented 14 years ago

based on 4.5.alpha0

2c00b582-cfe9-43b9-8124-fec470060704 commented 14 years ago

Author: Yann Laigle-Chapuy

2c00b582-cfe9-43b9-8124-fec470060704 commented 14 years ago
comment:1

Attachment: trac9364-BooleanFunction_is_symmetric.patch.gz

The patch is longer than necessary because it also strips some whitespaces at EOL.

malb commented 14 years ago
comment:2

Looks good, applies cleanly, doctests pass.

11d1fc49-71a1-44e1-869f-76be013245a0 commented 14 years ago

Reviewer: Martin Albrecht

11d1fc49-71a1-44e1-869f-76be013245a0 commented 14 years ago

Attachment: trac9364-BooleanFunction_is_symmetric-untabified.patch.gz

Version without tabs - apply only this patch

11d1fc49-71a1-44e1-869f-76be013245a0 commented 14 years ago
comment:5

The patch trac9364-BooleanFunction_is_symmetric.patch uses tabs for indentation, which is against sage coding conventions. I have uploaded a version with spaces instead of tabs.

e14f4152-4982-4ace-8c95-73a0599b109b commented 14 years ago

Merged: sage-4.5.2.alpha0