Skip to content

Lattice Polytopes: compute_facets does not check dimension when setting is_reflexive #28741

@kliem

Description

@kliem

Currently, computing facets of a lattice polytope, changes whether it is reflexive or not.

sage: p = LatticePolytope([], lattice=ToricLattice(3).dual()); p
-1-d lattice polytope in 3-d lattice M
sage: a = p.faces()[0][0]
sage: p = LatticePolytope([], lattice=ToricLattice(3).dual()); p
-1-d lattice polytope in 3-d lattice M
sage: a = p.faces()[0][0]; a
-1-d lattice polytope in 3-d lattice M
sage: a.facet_normals()
Empty collection
in 3-d lattice N
sage: a
-1-d reflexive polytope in 3-d lattice M

CC: @jplab @LaisRast @novoselt

Component: geometry

Keywords: lattice polytopes, reflexive

Author: Jonathan Kliem

Branch/Commit: 769d877

Reviewer: Andrey Novoseltsev

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions