• Top
    • Documentation
    • Books
    • Recursion-and-induction
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Proof-automation
      • Gl
      • Witness-cp
      • Ccg
      • Install-not-normalized
      • Rewrite$
      • Removable-runes
      • Efficiency
      • Rewrite-bounds
      • Bash
      • Def-dag-measure
      • Fgl
        • Fgl-rewrite-rules
        • Fgl-function-mode
        • Fgl-object
        • Fgl-solving
        • Fgl-handling-if-then-elses
        • Fgl-getting-bits-from-objects
        • Fgl-primitive-and-meta-rules
        • Fgl-interpreter-overview
        • Fgl-counterexamples
        • Fgl-correctness-of-binding-free-variables
        • Fgl-debugging
        • Fgl-testbenches
        • Def-fgl-boolean-constraint
        • Fgl-stack
        • Fgl-rewrite-tracing
        • Def-fgl-param-thm
        • Def-fgl-thm
        • Fgl-fast-alist-support
        • Advanced-equivalence-checking-with-fgl
          • Solve-lane-by-lane-masked
          • Solve-lane-by-lane-masked+
          • Top-level-equal
          • Solve-lane-by-lane
            • Replace-equal-with-top-level-equal-rec
            • Lookup-previous-stack-frame-binding
            • Monolithic-sat-with-transforms
            • Ipasir-sat-limit100
          • Fgl-array-support
          • Fgl-internals
        • Bdd
        • Remove-hyps
        • Contextual-rewriting
        • Simp
        • Rewrite$-hyps
        • Bash-term-to-dnf
        • Use-trivial-ancestors-check
        • Minimal-runes
        • Clause-processor-tools
        • Fn-is-body
        • Without-subsumption
        • Rewrite-equiv-hint
        • Def-bounds
        • Rewrite$-context
        • Try-gl-concls
        • Hint-utils
      • Macro-libraries
      • ACL2
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • Testing-utilities
      • Math
    • Advanced-equivalence-checking-with-fgl

    Solve-lane-by-lane

    Equality check that, in FGL, splits an equivalence of SIMD packed integers into lane-by-lane equivalence checks.

    Signature
    (solve-lane-by-lane x y width) → *

    The equivalence check of each of the lanes is done using the FGL SAT config object (solve-lane-by-lane-config), which is an attachable function. Its default attachment uses SATLINK in the default configuration with transforms.

    Definitions and Theorems

    Function: solve-lane-by-lane

    (defun solve-lane-by-lane (x y width)
           (declare (xargs :guard t))
           (let ((__function__ 'solve-lane-by-lane))
                (declare (ignorable __function__))
                (equal x y)))

    Theorem: solve-lane-by-lane-impl

    (defthm
     solve-lane-by-lane-impl
     (implies
      (and (syntaxp (posp width))
           (check-integerp xintp x)
           (check-integerp yintp y))
      (equal
       (solve-lane-by-lane x y width)
       (if
        (and (check-int-endp x-endp x)
             (check-int-endp y-endp y))
        (equal x y)
        (b*
          ((config
                (syntax-bind config
                             (g-concrete (solve-lane-by-lane-config)))))
          (and* (fgl-validity-check config
                                    (equal (loghead width x)
                                           (loghead width y)))
                (solve-lane-by-lane (logtail width x)
                                    (logtail width y)
                                    width)))))))