TorchLean API

FloatLib.Floats.ExecFloat.Backends.Selection.Report

Backend-selection reports #

Inspectable explanations of deterministic selector decisions. Reports are intended for development tools and calibration; executable arithmetic does not construct them.

Why one candidate appears in a selector decision report.

Instances For

    Disposition of one candidate in a selector report.

    • candidate : Candidate

      Candidate whose disposition is reported.

    • Reason the candidate was selected or rejected.

    Instances For
      def FloatLib.Floats.ExecFloat.Backend.Candidate.assess (policy : Policy) (selectedIndex index : Nat) (candidate : Candidate) :

      Explain the candidate at position index of a candidate list whose selected member is at position selectedIndex.

      Candidates are identified by position rather than by comparing estimates, so identical estimates do not create multiple selected assessments. The selected index takes precedence over memory limits: the mandatory baseline may be selected even when it exceeds either cap. Memory rejection describes only unselected candidates.

      Instances For
        @[simp]
        theorem FloatLib.Floats.ExecFloat.Backend.Candidate.assess_selected (policy : Policy) (index : Nat) (candidate : Candidate) :
        (assess policy index index candidate).status = AssessmentStatus.selected

        The selected candidate is reported as selected, regardless of the policy's memory limits.

        Run the selection fold while tracking the position of the incumbent in candidates.toList.

        Alternatives occupy positions 0 through alternatives.length - 1 and the baseline occupies position alternatives.length, matching CandidateSet.toList.

        Instances For

          Position in candidates.toList of the candidate returned by selectCandidate.

          Instances For
            @[simp]

            The tracked fold selects the same candidate as selectCandidate.

            Inspectable explanation of one static selection calculation.

            • policy : Policy

              Policy under which all estimates were evaluated.

            • selected : Candidate

              Candidate chosen from the mandatory baseline and admissible alternatives.

            • assessments : List Assessment

              Assessment of every alternative followed by the mandatory baseline.

            Instances For

              Compute the same result as selectCandidate together with every accepted or rejected alternative.

              This is for inspection and calibration; arithmetic projects the stored Certified implementation and never constructs a report on the hot path.

              Instances For
                @[simp]

                The reported winner is the candidate chosen by selectCandidate.