• Top
  • Atc-arrays

Sint-array

Fixtype of (ATC's model of) arrays of type signed int.

This is a product type introduced by fty::defprod.

Fields
elemtype — type
elements — sint-list
Additional Requirements

The following invariant is enforced on the fields:

(and (type-case elemtype :sint) (consp elements))

Theorem: sint-arrayp-alt-def

(defthm sint-arrayp-alt-def
  (equal (sint-arrayp x)
         (and (valuep x)
              (value-case x :array)
              (equal (value-array->elemtype x)
                     (type-sint))
              (sint-listp (value-array->elements x)))))

Theorem: sint-array->elements-alt-def

(defthm sint-array->elements-alt-def
  (implies (sint-arrayp array)
           (equal (sint-array->elements array)
                  (value-array->elements array))))

Subtopics

Sint-array-fix
Fixing function for sint-array structures.
Sint-array-equiv
Basic equivalence relation for sint-array structures.
Make-sint-array
Basic constructor macro for sint-array structures.
Sint-arrayp
Recognizer for sint-array structures.
Sint-array->elements
Get the elements field from a sint-array.
Sint-array->elemtype
Get the elemtype field from a sint-array.
Change-sint-array
Modifying constructor for sint-array structures.