### Install Flatn Source: https://github.com/zksecurity/flatn/blob/master/README.md Installs the Flatn Python package using pip. This command is used to add the library to your Python environment. ```bash pip install flatn ``` -------------------------------- ### Flatn Lattice Reduction Example Source: https://github.com/zksecurity/flatn/blob/master/README.md Demonstrates how to use the `flatn.reduce()` function to perform lattice reduction on a given lattice basis. It shows how to define a lattice and print the reduced basis. It also illustrates how to control reduction quality using parameters like `delta`. ```python import flatn # define a lattice as a list of basis vectors lattice = [ [1, 0, 331, 303], [0, 1, 456, 225], [0, 0, 628, 0], [0, 0, 0, 628] ] # derform lattice reduction reduced_basis = flatn.reduce(lattice) print(reduced_basis) # You can also control the reduction quality with parameters: # - alpha: higher means more reduced # - rhf: target root Hermite factor # - delta: LLL parameter (between 0.25 and 1.0) # - logcond: maximum allowed log of condition number # For example, specifying delta: reduced_basis = flatn.reduce(lattice, delta=0.99) ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.