Documentation

HexBareissMathlib.Tactic

@[instance_reducible]
Equations
  • One or more equations did not get rendered due to their size.

The outcome of an attempt, per the matrix-tactic protocol; a failure throws.

  • notApplicable {α : Type} : Outcome α

    The goal or input is not in the fragment; the next handler may try.

  • declined {α : Type} (msg : Lean.MessageData) : Outcome α

    In the fragment, but a capability is missing; the message names it.

  • success {α : Type} (a : α) : Outcome α

    A value and a proof.

Instances For

    Recognize a determinant target: the matrix, the other side, and whether the determinant is on the right.

    Equations
    • One or more equations did not get rendered due to their size.
    Instances For

      The certificate of a square literal: the witness, the row list of the integer matrix it certifies, and for a rational literal the rational row list and the row scales.

      Instances For

        The certified determinant as a rational.

        Equations
        Instances For

          Recognize a closed square integer or rational literal and certify it. A producer whose witness fails its own check is a failure, not a decline.

          Equations
          • One or more equations did not get rendered due to their size.
          Instances For

            The proof of Matrix.det A = v for the certificate's value v, with the value, the kernel check it rests on, and the row list of the literal.

            Instances For

              Build the proof of Matrix.det A = v for the certificate's value v.

              Equations
              • One or more equations did not get rendered due to their size.
              Instances For

                Diagnose a proof the kernel rejected: evaluate the certificate check with the kernel and test the identification of the literal with its row list along its route, reporting the first that fails.

                Equations
                • One or more equations did not get rendered due to their size.
                Instances For

                  Add proof : target as an auxiliary theorem checked synchronously, so that a rejection is reported here, not later, and diagnosed.

                  Equations
                  • One or more equations did not get rendered due to their size.
                  Instances For

                    Prove a determinant target in either orientation.

                    Equations
                    • One or more equations did not get rendered due to their size.
                    Instances For

                      The proof of Matrix.det A = v for the certified value v, checked.

                      Equations
                      • One or more equations did not get rendered due to their size.
                      Instances For

                        The det% A record: Certified Matrix.det A.

                        Equations
                        • One or more equations did not get rendered due to their size.
                        Instances For

                          det% A computes the determinant of a closed integer or rational matrix literal A and returns a HexMatrixMathlib.Certified Matrix.det A record with its value and proof. The !![…] notations are given an integer entry expectation.

                          Equations
                          Instances For
                            Equations
                            • One or more equations did not get rendered due to their size.
                            Instances For

                              Rewrite Matrix.det A to its certified value when the Hex frontend applies; none when it declines.

                              Equations
                              • One or more equations did not get rendered due to their size.
                              Instances For

                                The hex_norm_det simproc rewrites the determinant of a closed integer or rational matrix literal to its value through the Hex certificate, and falls back to Mathlib's norm_det when the Hex frontend declines (symbolic entries, other carriers); a producer failure or a certificate the kernel rejects is an error, not a fallback.

                                Equations
                                Instances For

                                  det closes A.det = d and d = A.det for a closed integer or rational matrix literal A, with the kernel checking a determinant certificate; an input outside that fragment is handed to the simp set hex_norm_det, whose fallback is Mathlib's norm_det. The keyword is non-reserved, so det stays usable as an identifier.

                                  Equations
                                  Instances For
                                    Equations
                                    • One or more equations did not get rendered due to their size.
                                    Instances For