• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Community
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
    • Software-verification
      • Kestrel-books
        • Crypto-hdwallet
        • Apt
        • Error-checking
        • Fty-extensions
        • Isar
        • Kestrel-utilities
        • Set
        • C
        • Soft
        • Bv
        • Imp-language
        • Ethereum
        • Event-macros
        • Java
          • Atj
          • Aij
          • Language
            • Syntax
              • Grammar
              • Unicode-escapes
              • Unicode-input-char
              • Escape-sequence
              • Identifiers
              • Primitive-types
              • Reference-types
                • Reference-types-definition
                  • Class-type
                  • Array-type
                    • Array-type-case
                    • Array-type-equiv
                    • Array-type-primitive
                    • Array-type-variable
                    • Array-type-class
                    • Array-typep
                    • Array-type-kind
                    • Array-type-fix
                    • Array-type-count
                  • Reference-type
                  • Type-argument
                  • Type-argument-list
              • Unicode-characters
              • Keywords
              • Integer-literals
              • String-literals
              • Octal-digits
              • Hexadecimal-digits
              • Decimal-digits
              • Binary-digits
              • Character-literals
              • Null-literal
              • Floating-point-literals
              • Boolean-literals
              • Package-names
              • Literals
            • Semantics
        • Riscv
        • Bitcoin
        • Zcash
        • Yul
        • ACL2-programming-language
        • Prime-fields
        • Json
        • Syntheto
        • File-io-light
        • Cryptography
        • Number-theory
        • Axe
        • Lists-light
        • Builtins
        • Solidity
        • Helpers
        • Htclient
        • Typed-lists-light
        • Arithmetic-light
      • X86isa
      • Axe
      • Execloader
    • Math
    • Testing-utilities
  • Reference-types-definition

Array-type

Fixtype of Java (unannotated) array types [JLS14:4.3] [JLS14:8.3].

This is a tagged union type, introduced by fty::deftagsum.

Member Tags → Types
:primitive → array-type-primitive
:class → array-type-class
:variable → array-type-variable

An array type consists of an element type and one or more dimensions [JLS14:10.1]. The element type may be a primitive type, a class type, or a type variable, but not an array type: recall the distinction between array components and elements [JLS14:10].

The dimensions are simply captured by a positive integer.

Since the three summands of this fixtype have a field in common, an alternative formalization approach is to define an array type as a product of an array element type and a number of dimensions. We may do that in the future, if it turns out to be more convenient.

Subtopics

Array-type-case
Case macro for the different kinds of array-type structures.
Array-type-equiv
Basic equivalence relation for array-type structures.
Array-type-primitive
Array-type-variable
Array-type-class
Array-typep
Recognizer for array-type structures.
Array-type-kind
Get the kind (tag) of a array-type structure.
Array-type-fix
Fixing function for array-type structures.
Array-type-count
Measure for recurring over array-type structures.