• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
      • Apt
      • Zfc
      • Acre
      • Milawa
      • Smtlink
      • Abnf
      • Vwsim
      • Isar
      • Wp-gen
      • Dimacs-reader
      • Pfcs
      • Legacy-defrstobj
      • Proof-checker-array
      • Soft
      • C
      • Farray
      • Rp-rewriter
      • Instant-runoff-voting
      • Imp-language
      • Sidekick
      • Leftist-trees
      • Java
        • Atj
        • Aij
        • Language
          • Syntax
          • Semantics
            • Primitive-function-macros
            • Primitive-values
            • Floating-point-placeholders
            • Pointers
            • Floating-point-value-set-parameters
            • Values
            • Primitive-operations
              • Integer-operations
              • Floating-point-operations
              • Boolean-operations
                • Boolean-xor
                • Boolean-neq
                • Boolean-ior
                • Boolean-eq
                • Boolean-and
                • Boolean-not
            • Primitive-conversions
            • Reference-values
      • Taspi
      • Bitcoin
      • Riscv
      • Des
      • Ethereum
      • X86isa
      • Sha-2
      • Yul
      • Zcash
      • Proof-checker-itp13
      • Regex
      • ACL2-programming-language
      • Json
      • Jfkr
      • Equational
      • Cryptography
      • Poseidon
      • Where-do-i-place-my-book
      • Axe
      • Bigmems
      • Builtins
      • Execloader
      • Aleo
      • Solidity
      • Paco
      • Concurrent-programs
      • Bls12-377-curves
    • Debugging
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
    • Software-verification
    • Math
    • Testing-utilities
  • Primitive-operations

Boolean-operations

Java boolean operations [JLS14:4.2.5].

Here we formalize all the strict operations that take boolean operands and return boolean results.

[JLS14:4.2.5] also lists the conditional operators &&, ||, and ? :, but those are non-strict, and therefore must be formalized as part of expression evaluation.

[JLS14:4.2.5] also lists the string concatenation operator +, but that is best formalized in terms of a boolean-to-string conversion, elsewhere.

Subtopics

Boolean-xor
Logical exclusive disjunction ^ [JLS14:4.2.5] [JLS14:15.22.2].
Boolean-neq
Non-equality != on booleans [JLS14:4.2.5] [JLS14:15.21.2].
Boolean-ior
Logical inclusive disjunction | [JLS14:4.2.5] [JLS14:15.22.2].
Boolean-eq
Equality == on booleans [JLS14:4.2.5] [JLS14:15.21.2].
Boolean-and
Logical conjunction & [JLS14:4.2.5] [JLS14:15.22.2].
Boolean-not
Logical complement ! [JLS14:4.2.5] [JLS14:15.15.6].