ASPBE Lean Blueprint

9.2. QuantumBlockEncoding/CubicStatePreparation.lean🔗

269 explicit public declarations, in source order.

Definition9.2.1
uses 0used by 0L∃∀N

Plain-English reading. This definition gives the library's named construction or computation for “task id”. Task identifier used by the retrieval and verifier ledgers.

Formal status. Compiled declaration in the default ASPBE import surface; its kind and displayed Lean type determine how it may be used.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Task identifier used by the retrieval and verifier ledgers.

Declaration kind. def.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:25. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Definition9.2.11 definition
  • def QuantumBlockEncoding.CubicStatePreparation.taskId : String
    def QuantumBlockEncoding.CubicStatePreparation.taskId :
      String
    Task identifier used by the retrieval and verifier ledgers. 
Definition9.2.2
uses 0used by 0L∃∀N

Plain-English reading. This definition gives the library's named construction or computation for “requested epsilon”. User-requested error tolerance '1e-10'.

Formal status. Compiled declaration in the default ASPBE import surface; its kind and displayed Lean type determine how it may be used.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. User-requested error tolerance '1e-10'.

Declaration kind. def.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:28. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Definition9.2.21 definition
  • def QuantumBlockEncoding.CubicStatePreparation.requestedEpsilon : 
    def QuantumBlockEncoding.CubicStatePreparation.requestedEpsilon :
      
    User-requested error tolerance `1e-10`. 
Definition9.2.3
uses 0used by 0L∃∀N

Plain-English reading. This definition gives the library's named construction or computation for “grid point”. Grid point 'x_j = j / 2^n'.

Formal status. Compiled declaration in the default ASPBE import surface; its kind and displayed Lean type determine how it may be used.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Grid point 'x_j = j / 2^n'.

Declaration kind. def.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:31. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Definition9.2.31 definition
  • def QuantumBlockEncoding.CubicStatePreparation.gridPoint (n : )
      (j : Fin (QuantumBlockEncoding.gridSize n)) : 
    def QuantumBlockEncoding.CubicStatePreparation.gridPoint
      (n : )
      (j :
        Fin
          (QuantumBlockEncoding.gridSize n)) :
      
    Grid point `x_j = j / 2^n`. 
Definition9.2.4
uses 0used by 0L∃∀N

Plain-English reading. This definition gives the library's named construction or computation for “cubic amplitude”. Cubic amplitude 'f(x_j) = x_j^3'.

Formal status. Compiled declaration in the default ASPBE import surface; its kind and displayed Lean type determine how it may be used.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Cubic amplitude 'f(x_j) = x_j^3'.

Declaration kind. def.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:35. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Definition9.2.41 definition
  • def QuantumBlockEncoding.CubicStatePreparation.cubicAmplitude (n : )
      (j : Fin (QuantumBlockEncoding.gridSize n)) : 
    def QuantumBlockEncoding.CubicStatePreparation.cubicAmplitude
      (n : )
      (j :
        Fin
          (QuantumBlockEncoding.gridSize n)) :
      
    Cubic amplitude `f(x_j) = x_j^3`. 
Definition9.2.5
uses 0used by 0L∃∀N

Plain-English reading. This definition gives the library's named construction or computation for “cubic operator”. The rank-one operator 'O_n = |v_n><0^n|'.

Formal status. Compiled declaration in the default ASPBE import surface; its kind and displayed Lean type determine how it may be used.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. The rank-one operator 'O_n = |v_n><0^n|'. In column-vector convention this maps the input basis state '|0^n>' to the unnormalized vector with entries '(j / 2^n)^3', and maps every other input basis state to zero.

Declaration kind. def.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:43. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Definition9.2.51 definition
  • def QuantumBlockEncoding.CubicStatePreparation.cubicOperator (n : ) :
      QuantumBlockEncoding.Matrix (QuantumBlockEncoding.gridSize n)
        (QuantumBlockEncoding.gridSize n) 
    def QuantumBlockEncoding.CubicStatePreparation.cubicOperator
      (n : ) :
      QuantumBlockEncoding.Matrix
        (QuantumBlockEncoding.gridSize n)
        (QuantumBlockEncoding.gridSize n) 
    The rank-one operator `O_n = |v_n><0^n|`.  In column-vector convention this
    maps the input basis state `|0^n>` to the unnormalized vector with entries
    `(j / 2^n)^3`, and maps every other input basis state to zero.
    
Definition9.2.6
uses 0used by 0L∃∀N

Plain-English reading. This definition gives the library's named construction or computation for “cubic norm sq”. Exact rational squared norm of the unnormalized target vector.

Formal status. Compiled declaration in the default ASPBE import surface; its kind and displayed Lean type determine how it may be used.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Exact rational squared norm of the unnormalized target vector. The analytic normalizer is its square root; this rational quantity is the cheap diagnostic used before any approximate rotation-synthesis route is accepted.

Declaration kind. def.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:51. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Definition9.2.61 definition
  • def QuantumBlockEncoding.CubicStatePreparation.cubicNormSq (n : ) : 
    def QuantumBlockEncoding.CubicStatePreparation.cubicNormSq
      (n : ) : 
    Exact rational squared norm of the unnormalized target vector.  The analytic
    normalizer is its square root; this rational quantity is the cheap diagnostic
    used before any approximate rotation-synthesis route is accepted.
    
Definition9.2.7
uses 0used by 0L∃∀N

Plain-English reading. This definition gives the library's named construction or computation for “conservative normalizer”. A conservative rational normalizer.

Formal status. Compiled declaration in the default ASPBE import surface; its kind and displayed Lean type determine how it may be used.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. A conservative rational normalizer. It is not intended to be optimal; it is a stable placeholder until the approximate synthesis backend proves a sharper normalizer and error bound.

Declaration kind. def.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:60. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Definition9.2.71 definition
  • def QuantumBlockEncoding.CubicStatePreparation.conservativeNormalizer
      (n : ) : 
    def QuantumBlockEncoding.CubicStatePreparation.conservativeNormalizer
      (n : ) : 
    A conservative rational normalizer.  It is not intended to be optimal; it is a
    stable placeholder until the approximate synthesis backend proves a sharper
    normalizer and error bound.
    
Definition9.2.8
uses 0used by 0L∃∀N

Plain-English reading. This definition gives the library's named construction or computation for “cubic target”. Operator-first target record used by the ABEIS harness.

Formal status. Compiled declaration in the default ASPBE import surface; its kind and displayed Lean type determine how it may be used.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Operator-first target record used by the ABEIS harness.

Declaration kind. def.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:64. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Definition9.2.81 definition
  • def QuantumBlockEncoding.CubicStatePreparation.cubicTarget (n : ) :
      QuantumBlockEncoding.QueryOperatorTarget 
        (QuantumBlockEncoding.gridSize n) (QuantumBlockEncoding.gridSize n)
    def QuantumBlockEncoding.CubicStatePreparation.cubicTarget
      (n : ) :
      QuantumBlockEncoding.QueryOperatorTarget
         (QuantumBlockEncoding.gridSize n)
        (QuantumBlockEncoding.gridSize n)
    Operator-first target record used by the ABEIS harness. 
Definition9.2.9
uses 0used by 0L∃∀N

Plain-English reading. This definition gives the library's named construction or computation for “default required cost”. Resource floor used for the first Scenario 2 run.

Formal status. Compiled declaration in the default ASPBE import surface; its kind and displayed Lean type determine how it may be used.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Resource floor used for the first Scenario 2 run.

Declaration kind. def.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:77. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Definition9.2.91 definition
  • def QuantumBlockEncoding.CubicStatePreparation.defaultRequiredCost :
      QuantumBlockEncoding.BlockEncodingCost
    def QuantumBlockEncoding.CubicStatePreparation.defaultRequiredCost :
      QuantumBlockEncoding.BlockEncodingCost
    Resource floor used for the first Scenario 2 run. 
Definition9.2.10
uses 0used by 0L∃∀N

Plain-English reading. This definition gives the library's named construction or computation for “default policy”. Adaptive search policy for the cubic benchmark.

Formal status. Compiled declaration in the default ASPBE import surface; its kind and displayed Lean type determine how it may be used.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Adaptive search policy for the cubic benchmark. The zero gate/depth fields in 'defaultRequiredCost' deliberately mean "discover a concrete candidate and then rank it"; the active search is expected to relax from exact to approximate construction after a small exact-search stall window.

Declaration kind. def.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:89. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Definition9.2.101 definition
  • def QuantumBlockEncoding.CubicStatePreparation.defaultPolicy :
      QuantumBlockEncoding.AdaptiveBlockEncodingPolicy 
    def QuantumBlockEncoding.CubicStatePreparation.defaultPolicy :
      QuantumBlockEncoding.AdaptiveBlockEncodingPolicy
        
    Adaptive search policy for the cubic benchmark.  The zero gate/depth fields in
    `defaultRequiredCost` deliberately mean "discover a concrete candidate and then
    rank it"; the active search is expected to relax from exact to approximate
    construction after a small exact-search stall window.
    
Definition9.2.11
uses 0used by 0L∃∀N

Plain-English reading. This definition gives the library's named construction or computation for “arithmetic cubic default precision”. First arithmetic-route precision seed for Scenario 2.

Formal status. Compiled declaration in the default ASPBE import surface; its kind and displayed Lean type determine how it may be used.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. First arithmetic-route precision seed for Scenario 2.

Declaration kind. def.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:100. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Definition9.2.111 definition
  • def QuantumBlockEncoding.CubicStatePreparation.arithmeticCubicDefaultPrecision :
      
    def QuantumBlockEncoding.CubicStatePreparation.arithmeticCubicDefaultPrecision :
      
    First arithmetic-route precision seed for Scenario 2. 
Definition9.2.12
uses 0used by 0L∃∀N

Plain-English reading. This definition gives the library's named construction or computation for “arithmetic cubic layout”. Register layout for the first arithmetic-transduction candidate route.

Formal status. Compiled declaration in the default ASPBE import surface; its kind and displayed Lean type determine how it may be used.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Register layout for the first arithmetic-transduction candidate route. The single signal qubit is the clean block selector. The pure workspace keeps an address copy, reversible square/cube work registers, and fixed-point precision workspace. This is a candidate interface only; it does not certify the arithmetic or rotation subroutines.

Declaration kind. def.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:110. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Definition9.2.121 definition
  • def QuantumBlockEncoding.CubicStatePreparation.arithmeticCubicLayout
      (n precision : ) : QuantumBlockEncoding.RegisterLayout
    def QuantumBlockEncoding.CubicStatePreparation.arithmeticCubicLayout
      (n precision : ) :
      QuantumBlockEncoding.RegisterLayout
    Register layout for the first arithmetic-transduction candidate route.
    
    The single signal qubit is the clean block selector.  The pure workspace keeps
    an address copy, reversible square/cube work registers, and fixed-point
    precision workspace.  This is a candidate interface only; it does not certify
    the arithmetic or rotation subroutines.
    
Definition9.2.13
uses 0used by 0L∃∀N

Plain-English reading. This definition gives the library's named construction or computation for “arithmetic cubic circuit”. Oracle-level transcript for the scalable cubic route.

Formal status. Compiled declaration in the default ASPBE import surface; its kind and displayed Lean type determine how it may be used.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Oracle-level transcript for the scalable cubic route. The clean branch is intended to compute 'j / 2^n', reversibly form the cubic fixed-point amplitude, apply one amplitude-transduction rotation, and uncompute the arithmetic workspace. Each label remains a semantic proof obligation.

Declaration kind. def.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:122. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Definition9.2.131 definition
  • def QuantumBlockEncoding.CubicStatePreparation.arithmeticCubicCircuit
      (_n _precision : ) : QuantumBlockEncoding.Circuit
    def QuantumBlockEncoding.CubicStatePreparation.arithmeticCubicCircuit
      (_n _precision : ) :
      QuantumBlockEncoding.Circuit
    Oracle-level transcript for the scalable cubic route.
    
    The clean branch is intended to compute `j / 2^n`, reversibly form the cubic
    fixed-point amplitude, apply one amplitude-transduction rotation, and uncompute
    the arithmetic workspace.  Each label remains a semantic proof obligation.
    
Definition9.2.14
uses 0used by 0L∃∀N

Plain-English reading. This definition gives the library's named construction or computation for “arithmetic cubic resource”. Local resource count for the unexpanded oracle-level transcript.

Formal status. Compiled declaration in the default ASPBE import surface; its kind and displayed Lean type determine how it may be used.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Local resource count for the unexpanded oracle-level transcript.

Declaration kind. def.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:133. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Definition9.2.141 definition
  • def QuantumBlockEncoding.CubicStatePreparation.arithmeticCubicResource
      (n precision : ) : QuantumBlockEncoding.Resource
    def QuantumBlockEncoding.CubicStatePreparation.arithmeticCubicResource
      (n precision : ) :
      QuantumBlockEncoding.Resource
    Local resource count for the unexpanded oracle-level transcript. 
Definition9.2.15
uses 0used by 0L∃∀N

Plain-English reading. This definition gives the library's named construction or computation for “arithmetic cubic normalizer”. Normalizer used by the first arithmetic-transduction route.

Formal status. Compiled declaration in the default ASPBE import surface; its kind and displayed Lean type determine how it may be used.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Normalizer used by the first arithmetic-transduction route.

Declaration kind. def.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:137. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Definition9.2.151 definition
  • def QuantumBlockEncoding.CubicStatePreparation.arithmeticCubicNormalizer
      (n : ) : 
    def QuantumBlockEncoding.CubicStatePreparation.arithmeticCubicNormalizer
      (n : ) : 
    Normalizer used by the first arithmetic-transduction route. 
Definition9.2.16
uses 0used by 0L∃∀N

Plain-English reading. This definition gives the library's named construction or computation for “arithmetic cubic cost”. Candidate score extracted from the arithmetic-route layout and transcript.

Formal status. Compiled declaration in the default ASPBE import surface; its kind and displayed Lean type determine how it may be used.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Candidate score extracted from the arithmetic-route layout and transcript.

Declaration kind. def.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:141. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Definition9.2.161 definition
  • def QuantumBlockEncoding.CubicStatePreparation.arithmeticCubicCost
      (n precision : ) : QuantumBlockEncoding.BlockEncodingCost
    def QuantumBlockEncoding.CubicStatePreparation.arithmeticCubicCost
      (n precision : ) :
      QuantumBlockEncoding.BlockEncodingCost
    Candidate score extracted from the arithmetic-route layout and transcript. 
Definition9.2.17
uses 0used by 0L∃∀N

Plain-English reading. This definition gives the library's named construction or computation for “arithmetic cubic resource tuple”. Resource tuple in QBE candidate-population order.

Formal status. Compiled declaration in the default ASPBE import surface; its kind and displayed Lean type determine how it may be used.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Resource tuple in QBE candidate-population order.

Declaration kind. def.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:147. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Definition9.2.171 definition
  • def QuantumBlockEncoding.CubicStatePreparation.arithmeticCubicResourceTuple
      (n precision : ) :  ×  ×  × 
    def QuantumBlockEncoding.CubicStatePreparation.arithmeticCubicResourceTuple
      (n precision : ) :  ×  ×  × 
    Resource tuple in QBE candidate-population order. 
Theorem9.2.18
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “arithmetic cubic resource eq”; the hypotheses and conclusion in the code panel fix its exact scope. The oracle-level transcript has seven unresolved calls and depth seven.

Formal status. Compiled theorem in the default ASPBE import surface; the displayed Lean signature is the authoritative claim.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. The oracle-level transcript has seven unresolved calls and depth seven.

Declaration kind. theorem.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:155. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem9.2.181 theorem
  • theorem QuantumBlockEncoding.CubicStatePreparation.arithmeticCubicResource_eq
      (n precision : ) :
      QuantumBlockEncoding.CubicStatePreparation.arithmeticCubicResource n
          precision =
        QuantumBlockEncoding.Resource.ofCountsWithDepth 0 0 7 0 7
    theorem QuantumBlockEncoding.CubicStatePreparation.arithmeticCubicResource_eq
      (n precision : ) :
      QuantumBlockEncoding.CubicStatePreparation.arithmeticCubicResource
          n precision =
        QuantumBlockEncoding.Resource.ofCountsWithDepth
          0 0 7 0 7
    The oracle-level transcript has seven unresolved calls and depth seven. 
Theorem9.2.19
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “arithmetic cubic layout auxiliary qubits”; the hypotheses and conclusion in the code panel fix its exact scope. The first arithmetic route records one signal qubit plus pure workspace.

Formal status. Compiled theorem in the default ASPBE import surface; the displayed Lean signature is the authoritative claim.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. The first arithmetic route records one signal qubit plus pure workspace.

Declaration kind. theorem.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:161. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem9.2.191 theorem
  • theorem QuantumBlockEncoding.CubicStatePreparation.arithmeticCubicLayout_auxiliaryQubits
      (n precision : ) :
      (QuantumBlockEncoding.CubicStatePreparation.arithmeticCubicLayout n
            precision).auxiliaryQubits =
        1 + (3 * n + precision + 2)
    theorem QuantumBlockEncoding.CubicStatePreparation.arithmeticCubicLayout_auxiliaryQubits
      (n precision : ) :
      (QuantumBlockEncoding.CubicStatePreparation.arithmeticCubicLayout
            n precision).auxiliaryQubits =
        1 + (3 * n + precision + 2)
    The first arithmetic route records one signal qubit plus pure workspace. 
Definition9.2.20
uses 0used by 0L∃∀N

Plain-English reading. This definition gives the library's named construction or computation for “arithmetic cubic claim”. Human-facing construction claim for the first scalable route.

Formal status. Compiled declaration in the default ASPBE import surface; its kind and displayed Lean type determine how it may be used.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Human-facing construction claim for the first scalable route. This claim is an unproved candidate record, not a certified block encoding.

Declaration kind. def.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:170. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Definition9.2.201 definition
  • def QuantumBlockEncoding.CubicStatePreparation.arithmeticCubicClaim :
      QuantumBlockEncoding.ConstructionClaim
    def QuantumBlockEncoding.CubicStatePreparation.arithmeticCubicClaim :
      QuantumBlockEncoding.ConstructionClaim
    Human-facing construction claim for the first scalable route.  This claim is an
    unproved candidate record, not a certified block encoding.
    
Definition9.2.21
uses 0used by 0L∃∀N

Plain-English reading. This definition gives the library's named construction or computation for “arithmetic rank one cubic layout”. Rank-one wrapper layout for the arithmetic cubic route.

Formal status. Compiled declaration in the default ASPBE import surface; its kind and displayed Lean type determine how it may be used.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Rank-one wrapper layout for the arithmetic cubic route. The extra pure workspace is reserved for a zero-input filter and row-generation wrapper. This is still an oracle-level interface: it repairs the register shape of the candidate transcript, but it does not certify the wrapper semantics.

Declaration kind. def.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:192. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Definition9.2.211 definition
  • def QuantumBlockEncoding.CubicStatePreparation.arithmeticRankOneCubicLayout
      (n precision : ) : QuantumBlockEncoding.RegisterLayout
    def QuantumBlockEncoding.CubicStatePreparation.arithmeticRankOneCubicLayout
      (n precision : ) :
      QuantumBlockEncoding.RegisterLayout
    Rank-one wrapper layout for the arithmetic cubic route.
    
    The extra pure workspace is reserved for a zero-input filter and row-generation
    wrapper.  This is still an oracle-level interface: it repairs the register
    shape of the candidate transcript, but it does not certify the wrapper
    semantics.
    
Definition9.2.22
uses 0used by 0L∃∀N

Plain-English reading. This definition gives the library's named construction or computation for “arithmetic rank one cubic circuit”. Rank-one candidate transcript around the arithmetic middle block.

Formal status. Compiled declaration in the default ASPBE import surface; its kind and displayed Lean type determine how it may be used.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Rank-one candidate transcript around the arithmetic middle block. The first two calls are the missing wrapper from 'CUBIC-CAND-SHAPE-001': reject nonzero input columns from the clean branch, then generate the output row register on the zero-input branch. The final call is a placeholder cleanup for the zero-input filter. The row-generation step is intentionally not uncomputed, because the output row is the system output of the rank-one operator.

Declaration kind. def.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:206. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Definition9.2.221 definition
  • def QuantumBlockEncoding.CubicStatePreparation.arithmeticRankOneCubicCircuit
      (n precision : ) : QuantumBlockEncoding.Circuit
    def QuantumBlockEncoding.CubicStatePreparation.arithmeticRankOneCubicCircuit
      (n precision : ) :
      QuantumBlockEncoding.Circuit
    Rank-one candidate transcript around the arithmetic middle block.
    
    The first two calls are the missing wrapper from `CUBIC-CAND-SHAPE-001`: reject
    nonzero input columns from the clean branch, then generate the output row
    register on the zero-input branch.  The final call is a placeholder cleanup for
    the zero-input filter.  The row-generation step is intentionally not uncomputed,
    because the output row is the system output of the rank-one operator.
    
Definition9.2.23
uses 0used by 0L∃∀N

Plain-English reading. This definition gives the library's named construction or computation for “arithmetic rank one cubic resource”. Oracle-level resource count for the rank-one wrapped transcript.

Formal status. Compiled declaration in the default ASPBE import surface; its kind and displayed Lean type determine how it may be used.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Oracle-level resource count for the rank-one wrapped transcript.

Declaration kind. def.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:214. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Definition9.2.231 definition
  • def QuantumBlockEncoding.CubicStatePreparation.arithmeticRankOneCubicResource
      (n precision : ) : QuantumBlockEncoding.Resource
    def QuantumBlockEncoding.CubicStatePreparation.arithmeticRankOneCubicResource
      (n precision : ) :
      QuantumBlockEncoding.Resource
    Oracle-level resource count for the rank-one wrapped transcript. 
Definition9.2.24
uses 0used by 0L∃∀N

Plain-English reading. This definition gives the library's named construction or computation for “arithmetic rank one cubic normalizer”. Normalizer used by the rank-one wrapped arithmetic route.

Formal status. Compiled declaration in the default ASPBE import surface; its kind and displayed Lean type determine how it may be used.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Normalizer used by the rank-one wrapped arithmetic route.

Declaration kind. def.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:218. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Definition9.2.241 definition
  • def QuantumBlockEncoding.CubicStatePreparation.arithmeticRankOneCubicNormalizer
      (n : ) : 
    def QuantumBlockEncoding.CubicStatePreparation.arithmeticRankOneCubicNormalizer
      (n : ) : 
    Normalizer used by the rank-one wrapped arithmetic route. 
Definition9.2.25
uses 0used by 0L∃∀N

Plain-English reading. This definition gives the library's named construction or computation for “arithmetic rank one cubic cost”. Candidate score for the rank-one wrapped arithmetic route.

Formal status. Compiled declaration in the default ASPBE import surface; its kind and displayed Lean type determine how it may be used.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Candidate score for the rank-one wrapped arithmetic route.

Declaration kind. def.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:222. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Definition9.2.251 definition
  • def QuantumBlockEncoding.CubicStatePreparation.arithmeticRankOneCubicCost
      (n precision : ) : QuantumBlockEncoding.BlockEncodingCost
    def QuantumBlockEncoding.CubicStatePreparation.arithmeticRankOneCubicCost
      (n precision : ) :
      QuantumBlockEncoding.BlockEncodingCost
    Candidate score for the rank-one wrapped arithmetic route. 
Definition9.2.26
uses 0used by 0L∃∀N

Plain-English reading. This definition gives the library's named construction or computation for “arithmetic rank one cubic resource tuple”. Resource tuple in QBE candidate-population order for the wrapped route.

Formal status. Compiled declaration in the default ASPBE import surface; its kind and displayed Lean type determine how it may be used.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Resource tuple in QBE candidate-population order for the wrapped route.

Declaration kind. def.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:228. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Definition9.2.261 definition
  • def QuantumBlockEncoding.CubicStatePreparation.arithmeticRankOneCubicResourceTuple
      (n precision : ) :  ×  ×  × 
    def QuantumBlockEncoding.CubicStatePreparation.arithmeticRankOneCubicResourceTuple
      (n precision : ) :  ×  ×  × 
    Resource tuple in QBE candidate-population order for the wrapped route. 
Theorem9.2.27
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “arithmetic rank one cubic resource eq”; the hypotheses and conclusion in the code panel fix its exact scope. The rank-one wrapper adds three oracle-level calls to the middle block.

Formal status. Compiled theorem in the default ASPBE import surface; the displayed Lean signature is the authoritative claim.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. The rank-one wrapper adds three oracle-level calls to the middle block.

Declaration kind. theorem.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:237. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem9.2.271 theorem
  • theorem QuantumBlockEncoding.CubicStatePreparation.arithmeticRankOneCubicResource_eq
      (n precision : ) :
      QuantumBlockEncoding.CubicStatePreparation.arithmeticRankOneCubicResource
          n precision =
        QuantumBlockEncoding.Resource.ofCountsWithDepth 0 0 10 0 10
    theorem QuantumBlockEncoding.CubicStatePreparation.arithmeticRankOneCubicResource_eq
      (n precision : ) :
      QuantumBlockEncoding.CubicStatePreparation.arithmeticRankOneCubicResource
          n precision =
        QuantumBlockEncoding.Resource.ofCountsWithDepth
          0 0 10 0 10
    The rank-one wrapper adds three oracle-level calls to the middle block. 
Theorem9.2.28
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “arithmetic rank one cubic layout auxiliary qubits”; the hypotheses and conclusion in the code panel fix its exact scope. Auxiliary qubits for the wrapped route include the zero-test workspace.

Formal status. Compiled theorem in the default ASPBE import surface; the displayed Lean signature is the authoritative claim.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Auxiliary qubits for the wrapped route include the zero-test workspace.

Declaration kind. theorem.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:243. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem9.2.281 theorem
  • theorem QuantumBlockEncoding.CubicStatePreparation.arithmeticRankOneCubicLayout_auxiliaryQubits
      (n precision : ) :
      (QuantumBlockEncoding.CubicStatePreparation.arithmeticRankOneCubicLayout
            n precision).auxiliaryQubits =
        1 +
          ((QuantumBlockEncoding.CubicStatePreparation.arithmeticCubicLayout
                  n precision).pureAncillas +
              n +
            1)
    theorem QuantumBlockEncoding.CubicStatePreparation.arithmeticRankOneCubicLayout_auxiliaryQubits
      (n precision : ) :
      (QuantumBlockEncoding.CubicStatePreparation.arithmeticRankOneCubicLayout
            n precision).auxiliaryQubits =
        1 +
          ((QuantumBlockEncoding.CubicStatePreparation.arithmeticCubicLayout
                  n precision).pureAncillas +
              n +
            1)
    Auxiliary qubits for the wrapped route include the zero-test workspace. 
Theorem9.2.29
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “arithmetic rank one cubic resource tuple n 2 default”; the hypotheses and conclusion in the code panel fix its exact scope. Default small diagnostic score for the wrapped route at 'n = 2', 'p = 40'.

Formal status. Compiled theorem in the default ASPBE import surface; the displayed Lean signature is the authoritative claim.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Default small diagnostic score for the wrapped route at 'n = 2', 'p = 40'.

Declaration kind. theorem.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:249. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem9.2.291 theorem
  • theorem QuantumBlockEncoding.CubicStatePreparation.arithmeticRankOneCubicResourceTuple_n2_default :
      QuantumBlockEncoding.CubicStatePreparation.arithmeticRankOneCubicResourceTuple
          2
          QuantumBlockEncoding.CubicStatePreparation.arithmeticCubicDefaultPrecision =
        (10, 10, 52, 10)
    theorem QuantumBlockEncoding.CubicStatePreparation.arithmeticRankOneCubicResourceTuple_n2_default :
      QuantumBlockEncoding.CubicStatePreparation.arithmeticRankOneCubicResourceTuple
          2
          QuantumBlockEncoding.CubicStatePreparation.arithmeticCubicDefaultPrecision =
        (10, 10, 52, 10)
    Default small diagnostic score for the wrapped route at `n = 2`, `p = 40`. 
Definition9.2.30
uses 0used by 0L∃∀N

Plain-English reading. This definition gives the library's named construction or computation for “arithmetic rank one cubic claim”. Human-facing construction claim for the rank-one wrapped scalable route.

Formal status. Compiled declaration in the default ASPBE import surface; its kind and displayed Lean type determine how it may be used.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Human-facing construction claim for the rank-one wrapped scalable route. This still records obligations, not a verified block-encoding certificate.

Declaration kind. def.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:258. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Definition9.2.301 definition
  • def QuantumBlockEncoding.CubicStatePreparation.arithmeticRankOneCubicClaim :
      QuantumBlockEncoding.ConstructionClaim
    def QuantumBlockEncoding.CubicStatePreparation.arithmeticRankOneCubicClaim :
      QuantumBlockEncoding.ConstructionClaim
    Human-facing construction claim for the rank-one wrapped scalable route.  This
    still records obligations, not a verified block-encoding certificate.
    
Definition9.2.31
uses 0used by 0L∃∀N

Plain-English reading. This definition gives the library's named construction or computation for “hadamard counting cubic workspace”. Workspace seed for the Hadamard-counting mutation.

Formal status. Compiled declaration in the default ASPBE import surface; its kind and displayed Lean type determine how it may be used.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Workspace seed for the Hadamard-counting mutation. This is an oracle-level interface budget for the reversible cube/comparator workspace. It is not a gate-level implementation of multiplication.

Declaration kind. def.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:280. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Definition9.2.311 definition
  • def QuantumBlockEncoding.CubicStatePreparation.hadamardCountingCubicWorkspace
      (n : ) : 
    def QuantumBlockEncoding.CubicStatePreparation.hadamardCountingCubicWorkspace
      (n : ) : 
    Workspace seed for the Hadamard-counting mutation.
    
    This is an oracle-level interface budget for the reversible cube/comparator
    workspace.  It is not a gate-level implementation of multiplication.
    
Definition9.2.32
uses 0used by 0L∃∀N

Plain-English reading. This definition gives the library's named construction or computation for “hadamard counting cubic layout”. Register layout for the exact Hadamard-counting candidate.

Formal status. Compiled declaration in the default ASPBE import surface; its kind and displayed Lean type determine how it may be used.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Register layout for the exact Hadamard-counting candidate. The signal qubit is the reject flag. Pure ancillas are the nonzero-input flag, the 'R,T' path registers of total width '4*n', and the reversible cube/comparator workspace. Nonzero input columns set the reject signal before the 'nz' cleanup, so the clean projection cannot leak identity entries.

Declaration kind. def.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:291. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Definition9.2.321 definition
  • def QuantumBlockEncoding.CubicStatePreparation.hadamardCountingCubicLayout
      (n : ) : QuantumBlockEncoding.RegisterLayout
    def QuantumBlockEncoding.CubicStatePreparation.hadamardCountingCubicLayout
      (n : ) :
      QuantumBlockEncoding.RegisterLayout
    Register layout for the exact Hadamard-counting candidate.
    
    The signal qubit is the reject flag.  Pure ancillas are the nonzero-input flag,
    the `R,T` path registers of total width `4*n`, and the reversible
    cube/comparator workspace.  Nonzero input columns set the reject signal before
    the `nz` cleanup, so the clean projection cannot leak identity entries.
    
Definition9.2.33
uses 0used by 0L∃∀N

Plain-English reading. This definition gives the library's named construction or computation for “hadamard counting cubic circuit”. Oracle-level transcript for the Hadamard-counting route.

Formal status. Compiled declaration in the default ASPBE import surface; its kind and displayed Lean type determine how it may be used.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Oracle-level transcript for the Hadamard-counting route. The row XOR is not uncomputed, because it writes the output system row for the rank-one operator. The separate nonzero-column reject signal is applied before the 'nz' cleanup, so nonzero input columns keep a clean-projection rejection witness. The Hadamard layers and reversible arithmetic are still semantic obligations at this interface tier.

Declaration kind. def.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:305. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Definition9.2.331 definition
  • def QuantumBlockEncoding.CubicStatePreparation.hadamardCountingCubicCircuit
      (_n : ) : QuantumBlockEncoding.Circuit
    def QuantumBlockEncoding.CubicStatePreparation.hadamardCountingCubicCircuit
      (_n : ) : QuantumBlockEncoding.Circuit
    Oracle-level transcript for the Hadamard-counting route.
    
    The row XOR is not uncomputed, because it writes the output system row for the
    rank-one operator.  The separate nonzero-column reject signal is applied before
    the `nz` cleanup, so nonzero input columns keep a clean-projection rejection
    witness.  The Hadamard layers and reversible arithmetic are still semantic
    obligations at this interface tier.
    
Theorem9.2.34
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “hadamard counting cubic circuit reject signal repair”; the hypotheses and conclusion in the code panel fix its exact scope. The repaired transcript records a separate nonzero-column reject signal before the final 'nz' cleanup.

Formal status. Compiled theorem in the default ASPBE import surface; the displayed Lean signature is the authoritative claim.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. The repaired transcript records a separate nonzero-column reject signal before the final 'nz' cleanup. This is the compiled surface for 'CUBIC-HCOUNT-REJECT-REPAIR-001'; semantic clean-block correctness remains a future proof leaf.

Declaration kind. theorem.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:322. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem9.2.341 theorem
  • theorem QuantumBlockEncoding.CubicStatePreparation.hadamardCountingCubicCircuit_rejectSignalRepair
      (n : ) :
      QuantumBlockEncoding.CubicStatePreparation.hadamardCountingCubicCircuit
          n =
        [QuantumBlockEncoding.Gate.oracleCall "hcount-zero-input-flag",
          QuantumBlockEncoding.Gate.oracleCall
            "hcount-nonzero-column-reject",
          QuantumBlockEncoding.Gate.oracleCall "hcount-path-H-on-R-T",
          QuantumBlockEncoding.Gate.oracleCall
            "hcount-row-xor-R-into-system",
          QuantumBlockEncoding.Gate.oracleCall
            "hcount-cubic-threshold-compare",
          QuantumBlockEncoding.Gate.oracleCall
            "(hcount-cubic-threshold-compare)^dagger",
          QuantumBlockEncoding.Gate.oracleCall "hcount-path-H-on-R-T",
          QuantumBlockEncoding.Gate.oracleCall
            "(hcount-zero-input-flag)^dagger"]
    theorem QuantumBlockEncoding.CubicStatePreparation.hadamardCountingCubicCircuit_rejectSignalRepair
      (n : ) :
      QuantumBlockEncoding.CubicStatePreparation.hadamardCountingCubicCircuit
          n =
        [QuantumBlockEncoding.Gate.oracleCall
            "hcount-zero-input-flag",
          QuantumBlockEncoding.Gate.oracleCall
            "hcount-nonzero-column-reject",
          QuantumBlockEncoding.Gate.oracleCall
            "hcount-path-H-on-R-T",
          QuantumBlockEncoding.Gate.oracleCall
            "hcount-row-xor-R-into-system",
          QuantumBlockEncoding.Gate.oracleCall
            "hcount-cubic-threshold-compare",
          QuantumBlockEncoding.Gate.oracleCall
            "(hcount-cubic-threshold-compare)^dagger",
          QuantumBlockEncoding.Gate.oracleCall
            "hcount-path-H-on-R-T",
          QuantumBlockEncoding.Gate.oracleCall
            "(hcount-zero-input-flag)^dagger"]
    The repaired transcript records a separate nonzero-column reject signal before
    the final `nz` cleanup.  This is the compiled surface for
    `CUBIC-HCOUNT-REJECT-REPAIR-001`; semantic clean-block correctness remains a
    future proof leaf.
    
Definition9.2.35
uses 0used by 0L∃∀N

Plain-English reading. This definition gives the library's named construction or computation for “hadamard counting cubic resource”. Oracle-level resource count for the Hadamard-counting route.

Formal status. Compiled declaration in the default ASPBE import surface; its kind and displayed Lean type determine how it may be used.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Oracle-level resource count for the Hadamard-counting route.

Declaration kind. def.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:336. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Definition9.2.351 definition
  • def QuantumBlockEncoding.CubicStatePreparation.hadamardCountingCubicResource
      (n : ) : QuantumBlockEncoding.Resource
    def QuantumBlockEncoding.CubicStatePreparation.hadamardCountingCubicResource
      (n : ) : QuantumBlockEncoding.Resource
    Oracle-level resource count for the Hadamard-counting route. 
Definition9.2.36
uses 0used by 0L∃∀N

Plain-English reading. This definition gives the library's named construction or computation for “hadamard counting cubic normalizer”. Normalizer used by the Hadamard-counting route.

Formal status. Compiled declaration in the default ASPBE import surface; its kind and displayed Lean type determine how it may be used.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Normalizer used by the Hadamard-counting route.

Declaration kind. def.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:340. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Definition9.2.361 definition
  • def QuantumBlockEncoding.CubicStatePreparation.hadamardCountingCubicNormalizer
      (n : ) : 
    def QuantumBlockEncoding.CubicStatePreparation.hadamardCountingCubicNormalizer
      (n : ) : 
    Normalizer used by the Hadamard-counting route. 
Definition9.2.37
uses 0used by 0L∃∀N

Plain-English reading. This definition gives the library's named construction or computation for “hadamard counting cubic cost”. Candidate score for the Hadamard-counting route.

Formal status. Compiled declaration in the default ASPBE import surface; its kind and displayed Lean type determine how it may be used.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Candidate score for the Hadamard-counting route.

Declaration kind. def.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:344. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Definition9.2.371 definition
  • def QuantumBlockEncoding.CubicStatePreparation.hadamardCountingCubicCost
      (n : ) : QuantumBlockEncoding.BlockEncodingCost
    def QuantumBlockEncoding.CubicStatePreparation.hadamardCountingCubicCost
      (n : ) :
      QuantumBlockEncoding.BlockEncodingCost
    Candidate score for the Hadamard-counting route. 
Definition9.2.38
uses 0used by 0L∃∀N

Plain-English reading. This definition gives the library's named construction or computation for “hadamard counting cubic resource tuple”. Resource tuple in QBE candidate-population order.

Formal status. Compiled declaration in the default ASPBE import surface; its kind and displayed Lean type determine how it may be used.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Resource tuple in QBE candidate-population order.

Declaration kind. def.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:350. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Definition9.2.381 definition
  • def QuantumBlockEncoding.CubicStatePreparation.hadamardCountingCubicResourceTuple
      (n : ) :  ×  ×  × 
    def QuantumBlockEncoding.CubicStatePreparation.hadamardCountingCubicResourceTuple
      (n : ) :  ×  ×  × 
    Resource tuple in QBE candidate-population order. 
Theorem9.2.39
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “hadamard counting cubic resource eq”; the hypotheses and conclusion in the code panel fix its exact scope. The Hadamard-counting interface has eight unresolved oracle-level calls.

Formal status. Compiled theorem in the default ASPBE import surface; the displayed Lean signature is the authoritative claim.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. The Hadamard-counting interface has eight unresolved oracle-level calls.

Declaration kind. theorem.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:358. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem9.2.391 theorem
  • theorem QuantumBlockEncoding.CubicStatePreparation.hadamardCountingCubicResource_eq
      (n : ) :
      QuantumBlockEncoding.CubicStatePreparation.hadamardCountingCubicResource
          n =
        QuantumBlockEncoding.Resource.ofCountsWithDepth 0 0 8 0 8
    theorem QuantumBlockEncoding.CubicStatePreparation.hadamardCountingCubicResource_eq
      (n : ) :
      QuantumBlockEncoding.CubicStatePreparation.hadamardCountingCubicResource
          n =
        QuantumBlockEncoding.Resource.ofCountsWithDepth
          0 0 8 0 8
    The Hadamard-counting interface has eight unresolved oracle-level calls. 
Theorem9.2.40
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “hadamard counting cubic layout auxiliary qubits”; the hypotheses and conclusion in the code panel fix its exact scope. Auxiliary qubits for the counting route include reject, 'nz', path, and workspace registers.

Formal status. Compiled theorem in the default ASPBE import surface; the displayed Lean signature is the authoritative claim.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Auxiliary qubits for the counting route include reject, 'nz', path, and workspace registers.

Declaration kind. theorem.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:364. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem9.2.401 theorem
  • theorem QuantumBlockEncoding.CubicStatePreparation.hadamardCountingCubicLayout_auxiliaryQubits
      (n : ) :
      (QuantumBlockEncoding.CubicStatePreparation.hadamardCountingCubicLayout
            n).auxiliaryQubits =
        1 +
          (1 + 4 * n +
            QuantumBlockEncoding.CubicStatePreparation.hadamardCountingCubicWorkspace
              n)
    theorem QuantumBlockEncoding.CubicStatePreparation.hadamardCountingCubicLayout_auxiliaryQubits
      (n : ) :
      (QuantumBlockEncoding.CubicStatePreparation.hadamardCountingCubicLayout
            n).auxiliaryQubits =
        1 +
          (1 + 4 * n +
            QuantumBlockEncoding.CubicStatePreparation.hadamardCountingCubicWorkspace
              n)
    Auxiliary qubits for the counting route include reject, `nz`, path, and workspace registers. 
Theorem9.2.41
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “hadamard counting cubic resource tuple n 2”; the hypotheses and conclusion in the code panel fix its exact scope. Default small diagnostic score for the counting route at 'n = 2'.

Formal status. Compiled theorem in the default ASPBE import surface; the displayed Lean signature is the authoritative claim.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Default small diagnostic score for the counting route at 'n = 2'.

Declaration kind. theorem.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:370. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem9.2.411 theorem
  • theorem QuantumBlockEncoding.CubicStatePreparation.hadamardCountingCubicResourceTuple_n2 :
      QuantumBlockEncoding.CubicStatePreparation.hadamardCountingCubicResourceTuple
          2 =
        (8, 8, 21, 8)
    theorem QuantumBlockEncoding.CubicStatePreparation.hadamardCountingCubicResourceTuple_n2 :
      QuantumBlockEncoding.CubicStatePreparation.hadamardCountingCubicResourceTuple
          2 =
        (8, 8, 21, 8)
    Default small diagnostic score for the counting route at `n = 2`. 
Definition9.2.42
uses 0used by 0L∃∀N

Plain-English reading. This definition gives the library's named construction or computation for “hadamard counting cubic claim”. Human-facing construction claim for the Hadamard-counting exact route.

Formal status. Compiled declaration in the default ASPBE import surface; its kind and displayed Lean type determine how it may be used.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Human-facing construction claim for the Hadamard-counting exact route. This is an unproved candidate record, not a certified block encoding.

Declaration kind. def.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:378. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Definition9.2.421 definition
  • def QuantumBlockEncoding.CubicStatePreparation.hadamardCountingCubicClaim :
      QuantumBlockEncoding.ConstructionClaim
    def QuantumBlockEncoding.CubicStatePreparation.hadamardCountingCubicClaim :
      QuantumBlockEncoding.ConstructionClaim
    Human-facing construction claim for the Hadamard-counting exact route.  This is
    an unproved candidate record, not a certified block encoding.
    
Definition9.2.43
uses 0used by 0L∃∀N

Plain-English reading. This definition gives the library's named construction or computation for “hard mode upper agent schedule”. Hard Mode panel escalation schedule.

Formal status. Compiled declaration in the default ASPBE import surface; its kind and displayed Lean type determine how it may be used.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Hard Mode panel escalation schedule. The four entries are the planned parallel-agent counts for levels 0 through 3. Upper agents should only move to the next level after the active proof leaf has stalled and the reviewer has confirmed that the blocker is not just stale memory.

Declaration kind. def.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:401. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Definition9.2.431 definition
  • def QuantumBlockEncoding.CubicStatePreparation.hardModeUpperAgentSchedule :
      List 
    def QuantumBlockEncoding.CubicStatePreparation.hardModeUpperAgentSchedule :
      List 
    Hard Mode panel escalation schedule. The four entries are the planned
    parallel-agent counts for levels 0 through 3. Upper agents should only move to
    the next level after the active proof leaf has stalled and the reviewer has
    confirmed that the blocker is not just stale memory.
    
Definition9.2.44
uses 0used by 0L∃∀N

Plain-English reading. This definition gives the library's named construction or computation for “hard mode middle agent schedule”.

Formal status. Compiled declaration in the default ASPBE import surface; its kind and displayed Lean type determine how it may be used.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. The source declaration has no docstring. The reader cue above is generated from its kind and name and does not replace the Lean signature.

Declaration kind. def.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:403. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Definition9.2.441 definition
  • def QuantumBlockEncoding.CubicStatePreparation.hardModeMiddleAgentSchedule :
      List 
    def QuantumBlockEncoding.CubicStatePreparation.hardModeMiddleAgentSchedule :
      List 
Definition9.2.45
uses 0used by 0L∃∀N

Plain-English reading. This definition gives the library's named construction or computation for “hard mode lower agent schedule”.

Formal status. Compiled declaration in the default ASPBE import surface; its kind and displayed Lean type determine how it may be used.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. The source declaration has no docstring. The reader cue above is generated from its kind and name and does not replace the Lean signature.

Declaration kind. def.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:405. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Definition9.2.451 definition
  • def QuantumBlockEncoding.CubicStatePreparation.hardModeLowerAgentSchedule :
      List 
    def QuantumBlockEncoding.CubicStatePreparation.hardModeLowerAgentSchedule :
      List 
Definition9.2.46
uses 0used by 0L∃∀N

Plain-English reading. This definition gives the library's named construction or computation for “hard mode exact stall window”. Number of consecutive cycles without a closed leaf before the first escalation.

Formal status. Compiled declaration in the default ASPBE import surface; its kind and displayed Lean type determine how it may be used.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Number of consecutive cycles without a closed leaf before the first escalation.

Declaration kind. def.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:408. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Definition9.2.461 definition
  • def QuantumBlockEncoding.CubicStatePreparation.hardModeExactStallWindow : 
    def QuantumBlockEncoding.CubicStatePreparation.hardModeExactStallWindow :
      
    Number of consecutive cycles without a closed leaf before the first escalation. 
Definition9.2.47
uses 0used by 0L∃∀N

Plain-English reading. This definition gives the library's named construction or computation for “hard mode construction stall window”. Number of consecutive cycles without an improving certified or finite candidate before the next Hard Mode level is considered.

Formal status. Compiled declaration in the default ASPBE import surface; its kind and displayed Lean type determine how it may be used.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Number of consecutive cycles without an improving certified or finite candidate before the next Hard Mode level is considered.

Declaration kind. def.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:414. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Definition9.2.471 definition
  • def QuantumBlockEncoding.CubicStatePreparation.hardModeConstructionStallWindow :
      
    def QuantumBlockEncoding.CubicStatePreparation.hardModeConstructionStallWindow :
      
    Number of consecutive cycles without an improving certified or finite
    candidate before the next Hard Mode level is considered.
    
Definition9.2.48
uses 0used by 0L∃∀N

Plain-English reading. This definition gives the library's named construction or computation for “hard mode level cycle budget”. Per-level cycle budgets before the upper panel must explicitly review progress.

Formal status. Compiled declaration in the default ASPBE import surface; its kind and displayed Lean type determine how it may be used.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Per-level cycle budgets before the upper panel must explicitly review progress.

Declaration kind. def.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:417. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Definition9.2.481 definition
  • def QuantumBlockEncoding.CubicStatePreparation.hardModeLevelCycleBudget :
      List 
    def QuantumBlockEncoding.CubicStatePreparation.hardModeLevelCycleBudget :
      List 
    Per-level cycle budgets before the upper panel must explicitly review progress. 
Definition9.2.49
uses 0used by 0L∃∀N

Plain-English reading. This definition gives the library's named construction or computation for “relaxed epsilon ladder”. Scenario 2 epsilon ladder.

Formal status. Compiled declaration in the default ASPBE import surface; its kind and displayed Lean type determine how it may be used.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Scenario 2 epsilon ladder. The first entry is the user-requested tolerance. Later entries are relaxed exploratory waypoints used only if the exact or requested-epsilon search stalls; a relaxed waypoint is not a substitute for a certificate at 'requestedEpsilon'.

Declaration kind. def.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:425. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Definition9.2.491 definition
  • def QuantumBlockEncoding.CubicStatePreparation.relaxedEpsilonLadder : List 
    def QuantumBlockEncoding.CubicStatePreparation.relaxedEpsilonLadder :
      List 
    Scenario 2 epsilon ladder.  The first entry is the user-requested tolerance.
    Later entries are relaxed exploratory waypoints used only if the exact or
    requested-epsilon search stalls; a relaxed waypoint is not a substitute for a
    certificate at `requestedEpsilon`.
    
Theorem9.2.50
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “relaxed epsilon ladder starts with requested”; the hypotheses and conclusion in the code panel fix its exact scope.

Formal status. Compiled theorem in the default ASPBE import surface; the displayed Lean signature is the authoritative claim.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. The source declaration has no docstring. The reader cue above is generated from its kind and name and does not replace the Lean signature.

Declaration kind. theorem.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:428. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem9.2.501 theorem
  • theorem QuantumBlockEncoding.CubicStatePreparation.relaxedEpsilonLadder_startsWithRequested :
      QuantumBlockEncoding.CubicStatePreparation.relaxedEpsilonLadder.head? =
        some QuantumBlockEncoding.CubicStatePreparation.requestedEpsilon
    theorem QuantumBlockEncoding.CubicStatePreparation.relaxedEpsilonLadder_startsWithRequested :
      QuantumBlockEncoding.CubicStatePreparation.relaxedEpsilonLadder.head? =
        some
          QuantumBlockEncoding.CubicStatePreparation.requestedEpsilon
Theorem9.2.51
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “hard mode schedules have four levels”; the hypotheses and conclusion in the code panel fix its exact scope.

Formal status. Compiled theorem in the default ASPBE import surface; the displayed Lean signature is the authoritative claim.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. The source declaration has no docstring. The reader cue above is generated from its kind and name and does not replace the Lean signature.

Declaration kind. theorem.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:432. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem9.2.511 theorem
  • theorem QuantumBlockEncoding.CubicStatePreparation.hardModeSchedules_have_four_levels :
      QuantumBlockEncoding.CubicStatePreparation.hardModeUpperAgentSchedule.length =
          4 
        QuantumBlockEncoding.CubicStatePreparation.hardModeMiddleAgentSchedule.length =
            4 
          QuantumBlockEncoding.CubicStatePreparation.hardModeLowerAgentSchedule.length =
              4 
            QuantumBlockEncoding.CubicStatePreparation.hardModeLevelCycleBudget.length =
              4
    theorem QuantumBlockEncoding.CubicStatePreparation.hardModeSchedules_have_four_levels :
      QuantumBlockEncoding.CubicStatePreparation.hardModeUpperAgentSchedule.length =
          4 
        QuantumBlockEncoding.CubicStatePreparation.hardModeMiddleAgentSchedule.length =
            4 
          QuantumBlockEncoding.CubicStatePreparation.hardModeLowerAgentSchedule.length =
              4 
            QuantumBlockEncoding.CubicStatePreparation.hardModeLevelCycleBudget.length =
              4
Theorem9.2.52
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “hard mode lower agent schedule final”; the hypotheses and conclusion in the code panel fix its exact scope.

Formal status. Compiled theorem in the default ASPBE import surface; the displayed Lean signature is the authoritative claim.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. The source declaration has no docstring. The reader cue above is generated from its kind and name and does not replace the Lean signature.

Declaration kind. theorem.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:439. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem9.2.521 theorem
  • theorem QuantumBlockEncoding.CubicStatePreparation.hardModeLowerAgentSchedule_final :
      QuantumBlockEncoding.CubicStatePreparation.hardModeLowerAgentSchedule.getLast? =
        some 6
    theorem QuantumBlockEncoding.CubicStatePreparation.hardModeLowerAgentSchedule_final :
      QuantumBlockEncoding.CubicStatePreparation.hardModeLowerAgentSchedule.getLast? =
        some 6
Definition9.2.53
uses 0used by 0L∃∀N

Plain-English reading. This definition gives the library's named construction or computation for “initial expected phase”. Current expected phase.

Formal status. Compiled declaration in the default ASPBE import surface; its kind and displayed Lean type determine how it may be used.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Current expected phase. This is a planning declaration, not a proof of impossibility: it records that exact finite gate synthesis should not consume the full budget before approximate arithmetic/state-preparation search starts.

Declaration kind. def.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:448. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Definition9.2.531 definition
  • def QuantumBlockEncoding.CubicStatePreparation.initialExpectedPhase :
      QuantumBlockEncoding.BlockEncodingSearchPhase
    def QuantumBlockEncoding.CubicStatePreparation.initialExpectedPhase :
      QuantumBlockEncoding.BlockEncodingSearchPhase
    Current expected phase.  This is a planning declaration, not a proof of
    impossibility: it records that exact finite gate synthesis should not consume
    the full budget before approximate arithmetic/state-preparation search starts.
    
Theorem9.2.54
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “grid size pos”; the hypotheses and conclusion in the code panel fix its exact scope.

Formal status. Compiled theorem in the default ASPBE import surface; the displayed Lean signature is the authoritative claim.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. The source declaration has no docstring. The reader cue above is generated from its kind and name and does not replace the Lean signature.

Declaration kind. theorem.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:451. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem9.2.541 theorem
  • theorem QuantumBlockEncoding.CubicStatePreparation.gridSize_pos (n : ) :
      0 < QuantumBlockEncoding.gridSize n
    theorem QuantumBlockEncoding.CubicStatePreparation.gridSize_pos
      (n : ) :
      0 < QuantumBlockEncoding.gridSize n
Theorem9.2.55
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “cubic operator first column”; the hypotheses and conclusion in the code panel fix its exact scope.

Formal status. Compiled theorem in the default ASPBE import surface; the displayed Lean signature is the authoritative claim.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. The source declaration has no docstring. The reader cue above is generated from its kind and name and does not replace the Lean signature.

Declaration kind. theorem.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:454. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem9.2.551 theorem
  • theorem QuantumBlockEncoding.CubicStatePreparation.cubicOperator_first_column
      (n : ) (row : Fin (QuantumBlockEncoding.gridSize n)) :
      QuantumBlockEncoding.CubicStatePreparation.cubicOperator n row
          0,  =
        QuantumBlockEncoding.CubicStatePreparation.cubicAmplitude n row
    theorem QuantumBlockEncoding.CubicStatePreparation.cubicOperator_first_column
      (n : )
      (row :
        Fin
          (QuantumBlockEncoding.gridSize n)) :
      QuantumBlockEncoding.CubicStatePreparation.cubicOperator
          n row 0,  =
        QuantumBlockEncoding.CubicStatePreparation.cubicAmplitude
          n row
Theorem9.2.56
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “cubic operator only first column”; the hypotheses and conclusion in the code panel fix its exact scope.

Formal status. Compiled theorem in the default ASPBE import surface; the displayed Lean signature is the authoritative claim.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. The source declaration has no docstring. The reader cue above is generated from its kind and name and does not replace the Lean signature.

Declaration kind. theorem.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:458. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem9.2.561 theorem
  • theorem QuantumBlockEncoding.CubicStatePreparation.cubicOperator_only_first_column
      (n : ) (row col : Fin (QuantumBlockEncoding.gridSize n))
      (h : col  0) :
      QuantumBlockEncoding.CubicStatePreparation.cubicOperator n row col = 0
    theorem QuantumBlockEncoding.CubicStatePreparation.cubicOperator_only_first_column
      (n : )
      (row col :
        Fin (QuantumBlockEncoding.gridSize n))
      (h : col  0) :
      QuantumBlockEncoding.CubicStatePreparation.cubicOperator
          n row col =
        0
Definition9.2.57
uses 0used by 0L∃∀N

Plain-English reading. This definition gives the library's named construction or computation for “rank one clean block contract”. Entrywise clean-block contract for a rank-one cubic candidate.

Formal status. Compiled declaration in the default ASPBE import surface; its kind and displayed Lean type determine how it may be used.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Entrywise clean-block contract for a rank-one cubic candidate. The first field states the scaled clean first column. The second field states that all other input columns vanish in the clean block. This is a semantic obligation for a future unitary/circuit proof, not a proof that the current oracle labels already realize the contract.

Declaration kind. def.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:471. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Definition9.2.571 definition
  • def QuantumBlockEncoding.CubicStatePreparation.rankOneCleanBlockContract
      (n : ) (alpha : )
      (block :
        QuantumBlockEncoding.Matrix (QuantumBlockEncoding.gridSize n)
          (QuantumBlockEncoding.gridSize n) ) :
      Prop
    def QuantumBlockEncoding.CubicStatePreparation.rankOneCleanBlockContract
      (n : ) (alpha : )
      (block :
        QuantumBlockEncoding.Matrix
          (QuantumBlockEncoding.gridSize n)
          (QuantumBlockEncoding.gridSize n)
          ) :
      Prop
    Entrywise clean-block contract for a rank-one cubic candidate.
    
    The first field states the scaled clean first column.  The second field states
    that all other input columns vanish in the clean block.  This is a semantic
    obligation for a future unitary/circuit proof, not a proof that the current
    oracle labels already realize the contract.
    
Definition9.2.58
uses 0used by 0L∃∀N

Plain-English reading. This definition gives the library's named construction or computation for “arithmetic rank one cubic clean block contract”. Candidate-specific clean-block contract for the repaired rank-one route.

Formal status. Compiled declaration in the default ASPBE import surface; its kind and displayed Lean type determine how it may be used.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Candidate-specific clean-block contract for the repaired rank-one route.

Declaration kind. def.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:478. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Definition9.2.581 definition
  • def QuantumBlockEncoding.CubicStatePreparation.arithmeticRankOneCubicCleanBlockContract
      (n : )
      (block :
        QuantumBlockEncoding.Matrix (QuantumBlockEncoding.gridSize n)
          (QuantumBlockEncoding.gridSize n) ) :
      Prop
    def QuantumBlockEncoding.CubicStatePreparation.arithmeticRankOneCubicCleanBlockContract
      (n : )
      (block :
        QuantumBlockEncoding.Matrix
          (QuantumBlockEncoding.gridSize n)
          (QuantumBlockEncoding.gridSize n)
          ) :
      Prop
    Candidate-specific clean-block contract for the repaired rank-one route. 
Theorem9.2.59
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “rank one clean block contract pointwise eq”; the hypotheses and conclusion in the code panel fix its exact scope. The rank-one clean-block contract is exactly the target matrix, entry by entry, after multiplying by its normalizer.

Formal status. Compiled theorem in the default ASPBE import surface; the displayed Lean signature is the authoritative claim.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. The rank-one clean-block contract is exactly the target matrix, entry by entry, after multiplying by its normalizer.

Declaration kind. theorem.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:486. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem9.2.591 theorem
  • theorem QuantumBlockEncoding.CubicStatePreparation.rankOneCleanBlockContract_pointwise_eq
      {n : } {alpha : }
      {block :
        QuantumBlockEncoding.Matrix (QuantumBlockEncoding.gridSize n)
          (QuantumBlockEncoding.gridSize n) }
      (h :
        QuantumBlockEncoding.CubicStatePreparation.rankOneCleanBlockContract
          n alpha block) :
      QuantumBlockEncoding.Matrix.PointwiseEq
        (fun row col => alpha * block row col)
        (QuantumBlockEncoding.CubicStatePreparation.cubicOperator n)
    theorem QuantumBlockEncoding.CubicStatePreparation.rankOneCleanBlockContract_pointwise_eq
      {n : } {alpha : }
      {block :
        QuantumBlockEncoding.Matrix
          (QuantumBlockEncoding.gridSize n)
          (QuantumBlockEncoding.gridSize n) }
      (h :
        QuantumBlockEncoding.CubicStatePreparation.rankOneCleanBlockContract
          n alpha block) :
      QuantumBlockEncoding.Matrix.PointwiseEq
        (fun row col => alpha * block row col)
        (QuantumBlockEncoding.CubicStatePreparation.cubicOperator
          n)
    The rank-one clean-block contract is exactly the target matrix, entry by entry,
    after multiplying by its normalizer.
    
Theorem9.2.60
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “arithmetic rank one cubic clean block contract pointwise eq”; the hypotheses and conclusion in the code panel fix its exact scope. Candidate-specific bridge from the repaired wrapper's clean-block contract to the fixed cubic target.

Formal status. Compiled theorem in the default ASPBE import surface; the displayed Lean signature is the authoritative claim.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Candidate-specific bridge from the repaired wrapper's clean-block contract to the fixed cubic target.

Declaration kind. theorem.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:506. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem9.2.601 theorem
  • theorem QuantumBlockEncoding.CubicStatePreparation.arithmeticRankOneCubicCleanBlockContract_pointwise_eq
      {n : }
      {block :
        QuantumBlockEncoding.Matrix (QuantumBlockEncoding.gridSize n)
          (QuantumBlockEncoding.gridSize n) }
      (h :
        QuantumBlockEncoding.CubicStatePreparation.arithmeticRankOneCubicCleanBlockContract
          n block) :
      QuantumBlockEncoding.Matrix.PointwiseEq
        (fun row col =>
          QuantumBlockEncoding.CubicStatePreparation.arithmeticRankOneCubicNormalizer
              n *
            block row col)
        (QuantumBlockEncoding.CubicStatePreparation.cubicOperator n)
    theorem QuantumBlockEncoding.CubicStatePreparation.arithmeticRankOneCubicCleanBlockContract_pointwise_eq
      {n : }
      {block :
        QuantumBlockEncoding.Matrix
          (QuantumBlockEncoding.gridSize n)
          (QuantumBlockEncoding.gridSize n) }
      (h :
        QuantumBlockEncoding.CubicStatePreparation.arithmeticRankOneCubicCleanBlockContract
          n block) :
      QuantumBlockEncoding.Matrix.PointwiseEq
        (fun row col =>
          QuantumBlockEncoding.CubicStatePreparation.arithmeticRankOneCubicNormalizer
              n *
            block row col)
        (QuantumBlockEncoding.CubicStatePreparation.cubicOperator
          n)
    Candidate-specific bridge from the repaired wrapper's clean-block contract to
    the fixed cubic target.
    
Definition9.2.61
uses 0used by 0L∃∀N

Plain-English reading. This definition gives the library's named construction or computation for “hadamard counting cubic clean block contract”. Candidate-specific clean-block contract for the Hadamard-counting route.

Formal status. Compiled declaration in the default ASPBE import surface; its kind and displayed Lean type determine how it may be used.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Candidate-specific clean-block contract for the Hadamard-counting route.

Declaration kind. def.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:515. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Definition9.2.611 definition
  • def QuantumBlockEncoding.CubicStatePreparation.hadamardCountingCubicCleanBlockContract
      (n : )
      (block :
        QuantumBlockEncoding.Matrix (QuantumBlockEncoding.gridSize n)
          (QuantumBlockEncoding.gridSize n) ) :
      Prop
    def QuantumBlockEncoding.CubicStatePreparation.hadamardCountingCubicCleanBlockContract
      (n : )
      (block :
        QuantumBlockEncoding.Matrix
          (QuantumBlockEncoding.gridSize n)
          (QuantumBlockEncoding.gridSize n)
          ) :
      Prop
    Candidate-specific clean-block contract for the Hadamard-counting route. 
Theorem9.2.62
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “hadamard counting cubic clean block contract pointwise eq”; the hypotheses and conclusion in the code panel fix its exact scope. Candidate-specific bridge from the Hadamard-counting clean-block contract to the fixed cubic target.

Formal status. Compiled theorem in the default ASPBE import surface; the displayed Lean signature is the authoritative claim.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Candidate-specific bridge from the Hadamard-counting clean-block contract to the fixed cubic target.

Declaration kind. theorem.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:523. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem9.2.621 theorem
  • theorem QuantumBlockEncoding.CubicStatePreparation.hadamardCountingCubicCleanBlockContract_pointwise_eq
      {n : }
      {block :
        QuantumBlockEncoding.Matrix (QuantumBlockEncoding.gridSize n)
          (QuantumBlockEncoding.gridSize n) }
      (h :
        QuantumBlockEncoding.CubicStatePreparation.hadamardCountingCubicCleanBlockContract
          n block) :
      QuantumBlockEncoding.Matrix.PointwiseEq
        (fun row col =>
          QuantumBlockEncoding.CubicStatePreparation.hadamardCountingCubicNormalizer
              n *
            block row col)
        (QuantumBlockEncoding.CubicStatePreparation.cubicOperator n)
    theorem QuantumBlockEncoding.CubicStatePreparation.hadamardCountingCubicCleanBlockContract_pointwise_eq
      {n : }
      {block :
        QuantumBlockEncoding.Matrix
          (QuantumBlockEncoding.gridSize n)
          (QuantumBlockEncoding.gridSize n) }
      (h :
        QuantumBlockEncoding.CubicStatePreparation.hadamardCountingCubicCleanBlockContract
          n block) :
      QuantumBlockEncoding.Matrix.PointwiseEq
        (fun row col =>
          QuantumBlockEncoding.CubicStatePreparation.hadamardCountingCubicNormalizer
              n *
            block row col)
        (QuantumBlockEncoding.CubicStatePreparation.cubicOperator
          n)
    Candidate-specific bridge from the Hadamard-counting clean-block contract to
    the fixed cubic target.
    
Theorem9.2.63
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “rat cube sq eq sixth”; the hypotheses and conclusion in the code panel fix its exact scope.

Formal status. Compiled theorem in the default ASPBE import surface; the displayed Lean signature is the authoritative claim.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. The source declaration has no docstring. The reader cue above is generated from its kind and name and does not replace the Lean signature.

Declaration kind. theorem.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:531. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem9.2.631 theorem
  • theorem QuantumBlockEncoding.CubicStatePreparation.rat_cube_sq_eq_sixth
      (x : ) : (x ^ 3) ^ 2 = x ^ 6
    theorem QuantumBlockEncoding.CubicStatePreparation.rat_cube_sq_eq_sixth
      (x : ) : (x ^ 3) ^ 2 = x ^ 6
Theorem9.2.64
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “cubic amplitude sq eq grid point sixth”; the hypotheses and conclusion in the code panel fix its exact scope.

Formal status. Compiled theorem in the default ASPBE import surface; the displayed Lean signature is the authoritative claim.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. The source declaration has no docstring. The reader cue above is generated from its kind and name and does not replace the Lean signature.

Declaration kind. theorem.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:538. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem9.2.641 theorem
  • theorem QuantumBlockEncoding.CubicStatePreparation.cubicAmplitude_sq_eq_gridPoint_sixth
      (n : ) (j : Fin (QuantumBlockEncoding.gridSize n)) :
      QuantumBlockEncoding.CubicStatePreparation.cubicAmplitude n j ^ 2 =
        QuantumBlockEncoding.CubicStatePreparation.gridPoint n j ^ 6
    theorem QuantumBlockEncoding.CubicStatePreparation.cubicAmplitude_sq_eq_gridPoint_sixth
      (n : )
      (j :
        Fin
          (QuantumBlockEncoding.gridSize n)) :
      QuantumBlockEncoding.CubicStatePreparation.cubicAmplitude
            n j ^
          2 =
        QuantumBlockEncoding.CubicStatePreparation.gridPoint
            n j ^
          6
Theorem9.2.65
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “cubic norm sq sixth power fold”; the hypotheses and conclusion in the code panel fix its exact scope.

Formal status. Compiled theorem in the default ASPBE import surface; the displayed Lean signature is the authoritative claim.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. The source declaration has no docstring. The reader cue above is generated from its kind and name and does not replace the Lean signature.

Declaration kind. theorem.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:543. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem9.2.651 theorem
  • theorem QuantumBlockEncoding.CubicStatePreparation.cubicNormSq_sixthPowerFold
      (n : ) :
      QuantumBlockEncoding.CubicStatePreparation.cubicNormSq n =
        List.foldl
          (fun acc j =>
            acc +
              QuantumBlockEncoding.CubicStatePreparation.gridPoint n j ^ 6)
          0 (List.finRange (QuantumBlockEncoding.gridSize n))
    theorem QuantumBlockEncoding.CubicStatePreparation.cubicNormSq_sixthPowerFold
      (n : ) :
      QuantumBlockEncoding.CubicStatePreparation.cubicNormSq
          n =
        List.foldl
          (fun acc j =>
            acc +
              QuantumBlockEncoding.CubicStatePreparation.gridPoint
                  n j ^
                6)
          0
          (List.finRange
            (QuantumBlockEncoding.gridSize n))
Theorem9.2.66
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “grid size rat ne zero”; the hypotheses and conclusion in the code panel fix its exact scope. The rational grid dimension is nonzero, for denominator side conditions.

Formal status. Compiled theorem in the default ASPBE import surface; the displayed Lean signature is the authoritative claim.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. The rational grid dimension is nonzero, for denominator side conditions.

Declaration kind. theorem.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:550. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem9.2.661 theorem
  • theorem QuantumBlockEncoding.CubicStatePreparation.gridSize_rat_ne_zero
      (n : ) : (QuantumBlockEncoding.gridSize n)  0
    theorem QuantumBlockEncoding.CubicStatePreparation.gridSize_rat_ne_zero
      (n : ) :
      (QuantumBlockEncoding.gridSize n)  0
    The rational grid dimension is nonzero, for denominator side conditions. 
Theorem9.2.67
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “grid size rat pos”; the hypotheses and conclusion in the code panel fix its exact scope. The rational grid dimension is positive.

Formal status. Compiled theorem in the default ASPBE import surface; the displayed Lean signature is the authoritative claim.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. The rational grid dimension is positive.

Declaration kind. theorem.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:555. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem9.2.671 theorem
  • theorem QuantumBlockEncoding.CubicStatePreparation.gridSize_rat_pos (n : ) :
      0 < (QuantumBlockEncoding.gridSize n)
    theorem QuantumBlockEncoding.CubicStatePreparation.gridSize_rat_pos
      (n : ) :
      0 < (QuantumBlockEncoding.gridSize n)
    The rational grid dimension is positive. 
Theorem9.2.68
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “rat div cube div eq”; the hypotheses and conclusion in the code panel fix its exact scope. Core rational normalization for the Hadamard-counting path ratio.

Formal status. Compiled theorem in the default ASPBE import surface; the displayed Lean signature is the authoritative claim.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Core rational normalization for the Hadamard-counting path ratio.

Declaration kind. theorem.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:560. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem9.2.681 theorem
  • theorem QuantumBlockEncoding.CubicStatePreparation.rat_div_cube_div_eq
      (a b : ) : (a / b) ^ 3 / b = a ^ 3 / b ^ 4
    theorem QuantumBlockEncoding.CubicStatePreparation.rat_div_cube_div_eq
      (a b : ) :
      (a / b) ^ 3 / b = a ^ 3 / b ^ 4
    Core rational normalization for the Hadamard-counting path ratio. 
Theorem9.2.69
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “cubic amplitude div conservative normalizer eq”; the hypotheses and conclusion in the code panel fix its exact scope. Arithmetic bridge for the Hadamard-counting path formula.

Formal status. Compiled theorem in the default ASPBE import surface; the displayed Lean signature is the authoritative claim.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Arithmetic bridge for the Hadamard-counting path formula. After scaling by 'alpha = conservativeNormalizer n = gridSize n', the candidate clean-block entry 'j^3 / gridSize^4' recovers the cubic target amplitude.

Declaration kind. theorem.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:571. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem9.2.691 theorem
  • theorem QuantumBlockEncoding.CubicStatePreparation.cubicAmplitude_div_conservativeNormalizer_eq
      (n : ) (j : Fin (QuantumBlockEncoding.gridSize n)) :
      QuantumBlockEncoding.CubicStatePreparation.cubicAmplitude n j /
          QuantumBlockEncoding.CubicStatePreparation.conservativeNormalizer
            n =
        j ^ 3 / (QuantumBlockEncoding.gridSize n) ^ 4
    theorem QuantumBlockEncoding.CubicStatePreparation.cubicAmplitude_div_conservativeNormalizer_eq
      (n : )
      (j :
        Fin
          (QuantumBlockEncoding.gridSize n)) :
      QuantumBlockEncoding.CubicStatePreparation.cubicAmplitude
            n j /
          QuantumBlockEncoding.CubicStatePreparation.conservativeNormalizer
            n =
        j ^ 3 /
          (QuantumBlockEncoding.gridSize n) ^
            4
    Arithmetic bridge for the Hadamard-counting path formula.
    
    After scaling by `alpha = conservativeNormalizer n = gridSize n`, the candidate
    clean-block entry `j^3 / gridSize^4` recovers the cubic target amplitude.
    
Theorem9.2.70
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “grid size three mul eq cube”; the hypotheses and conclusion in the code panel fix its exact scope. Path-register capacity identity for the Hadamard-counting route.

Formal status. Compiled theorem in the default ASPBE import surface; the displayed Lean signature is the authoritative claim.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Path-register capacity identity for the Hadamard-counting route.

Declaration kind. theorem.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:579. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem9.2.701 theorem
  • theorem QuantumBlockEncoding.CubicStatePreparation.gridSize_three_mul_eq_cube
      (n : ) :
      QuantumBlockEncoding.gridSize (3 * n) =
        QuantumBlockEncoding.gridSize n ^ 3
    theorem QuantumBlockEncoding.CubicStatePreparation.gridSize_three_mul_eq_cube
      (n : ) :
      QuantumBlockEncoding.gridSize (3 * n) =
        QuantumBlockEncoding.gridSize n ^ 3
    Path-register capacity identity for the Hadamard-counting route. 
Theorem9.2.71
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “grid size four mul eq fourth”; the hypotheses and conclusion in the code panel fix its exact scope. Four-register path-space identity for the Hadamard-counting denominator.

Formal status. Compiled theorem in the default ASPBE import surface; the displayed Lean signature is the authoritative claim.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Four-register path-space identity for the Hadamard-counting denominator.

Declaration kind. theorem.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:585. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem9.2.711 theorem
  • theorem QuantumBlockEncoding.CubicStatePreparation.gridSize_four_mul_eq_fourth
      (n : ) :
      QuantumBlockEncoding.gridSize (4 * n) =
        QuantumBlockEncoding.gridSize n ^ 4
    theorem QuantumBlockEncoding.CubicStatePreparation.gridSize_four_mul_eq_fourth
      (n : ) :
      QuantumBlockEncoding.gridSize (4 * n) =
        QuantumBlockEncoding.gridSize n ^ 4
    Four-register path-space identity for the Hadamard-counting denominator. 
Theorem9.2.72
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “hadamard counting cubic threshold count p fin range”; the hypotheses and conclusion in the code panel fix its exact scope. Reusable threshold count over 'List.finRange'.

Formal status. Compiled theorem in the default ASPBE import surface; the displayed Lean signature is the authoritative claim.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Reusable threshold count over 'List.finRange'. If the threshold 'k' fits in an 'm'-element register, exactly 'k' entries of 'List.finRange m' have value strictly below 'k'.

Declaration kind. theorem.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:596. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem9.2.721 theorem
  • theorem QuantumBlockEncoding.CubicStatePreparation.hadamardCountingCubic_thresholdCountP_finRange
      (m k : ) (hk : k  m) :
      List.countP (fun t => decide (t < k)) (List.finRange m) = k
    theorem QuantumBlockEncoding.CubicStatePreparation.hadamardCountingCubic_thresholdCountP_finRange
      (m k : ) (hk : k  m) :
      List.countP (fun t => decide (t < k))
          (List.finRange m) =
        k
    Reusable threshold count over `List.finRange`.
    
    If the threshold `k` fits in an `m`-element register, exactly `k` entries of
    `List.finRange m` have value strictly below `k`.
    
Theorem9.2.73
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “hadamard counting cubic threshold filter length”; the hypotheses and conclusion in the code panel fix its exact scope.

Formal status. Compiled theorem in the default ASPBE import surface; the displayed Lean signature is the authoritative claim.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. The source declaration has no docstring. The reader cue above is generated from its kind and name and does not replace the Lean signature.

Declaration kind. theorem.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:625. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem9.2.731 theorem
  • theorem QuantumBlockEncoding.CubicStatePreparation.hadamardCountingCubic_thresholdFilterLength
      (m k : ) (hk : k  m) :
      (List.filter (fun t => decide (t < k)) (List.finRange m)).length = k
    theorem QuantumBlockEncoding.CubicStatePreparation.hadamardCountingCubic_thresholdFilterLength
      (m k : ) (hk : k  m) :
      (List.filter (fun t => decide (t < k))
            (List.finRange m)).length =
        k
Theorem9.2.74
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “hadamard counting cubic threshold le path capacity”; the hypotheses and conclusion in the code panel fix its exact scope. The cubic threshold for row 'j' fits in the '3*n'-qubit path register.

Formal status. Compiled theorem in the default ASPBE import surface; the displayed Lean signature is the authoritative claim.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. The cubic threshold for row 'j' fits in the '3*n'-qubit path register.

Declaration kind. theorem.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:632. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem9.2.741 theorem
  • theorem QuantumBlockEncoding.CubicStatePreparation.hadamardCountingCubic_threshold_le_pathCapacity
      (n : ) (j : Fin (QuantumBlockEncoding.gridSize n)) :
      j ^ 3  QuantumBlockEncoding.gridSize (3 * n)
    theorem QuantumBlockEncoding.CubicStatePreparation.hadamardCountingCubic_threshold_le_pathCapacity
      (n : )
      (j :
        Fin
          (QuantumBlockEncoding.gridSize n)) :
      j ^ 3 
        QuantumBlockEncoding.gridSize (3 * n)
    The cubic threshold for row `j` fits in the `3*n`-qubit path register. 
Theorem9.2.75
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “hadamard counting cubic threshold path count”; the hypotheses and conclusion in the code panel fix its exact scope. Symbolic accepted-path count for the Hadamard-counting threshold register.

Formal status. Compiled theorem in the default ASPBE import surface; the displayed Lean signature is the authoritative claim.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Symbolic accepted-path count for the Hadamard-counting threshold register. For fixed output row 'j', the '3*n'-qubit threshold register contributes exactly 'j.val ^ 3' accepted values.

Declaration kind. theorem.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:645. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem9.2.751 theorem
  • theorem QuantumBlockEncoding.CubicStatePreparation.hadamardCountingCubic_thresholdPathCount
      (n : ) (j : Fin (QuantumBlockEncoding.gridSize n)) :
      (List.filter (fun t => decide (t < j ^ 3))
            (List.finRange
              (QuantumBlockEncoding.gridSize (3 * n)))).length =
        j ^ 3
    theorem QuantumBlockEncoding.CubicStatePreparation.hadamardCountingCubic_thresholdPathCount
      (n : )
      (j :
        Fin
          (QuantumBlockEncoding.gridSize n)) :
      (List.filter
            (fun t => decide (t < j ^ 3))
            (List.finRange
              (QuantumBlockEncoding.gridSize
                (3 * n)))).length =
        j ^ 3
    Symbolic accepted-path count for the Hadamard-counting threshold register.
    
    For fixed output row `j`, the `3*n`-qubit threshold register contributes
    exactly `j.val ^ 3` accepted values.
    
Theorem9.2.76
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “grid point nonneg”; the hypotheses and conclusion in the code panel fix its exact scope.

Formal status. Compiled theorem in the default ASPBE import surface; the displayed Lean signature is the authoritative claim.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. The source declaration has no docstring. The reader cue above is generated from its kind and name and does not replace the Lean signature.

Declaration kind. theorem.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:653. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem9.2.761 theorem
  • theorem QuantumBlockEncoding.CubicStatePreparation.gridPoint_nonneg (n : )
      (j : Fin (QuantumBlockEncoding.gridSize n)) :
      0  QuantumBlockEncoding.CubicStatePreparation.gridPoint n j
    theorem QuantumBlockEncoding.CubicStatePreparation.gridPoint_nonneg
      (n : )
      (j :
        Fin
          (QuantumBlockEncoding.gridSize n)) :
      0 
        QuantumBlockEncoding.CubicStatePreparation.gridPoint
          n j
Theorem9.2.77
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “grid point lt one”; the hypotheses and conclusion in the code panel fix its exact scope.

Formal status. Compiled theorem in the default ASPBE import surface; the displayed Lean signature is the authoritative claim.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. The source declaration has no docstring. The reader cue above is generated from its kind and name and does not replace the Lean signature.

Declaration kind. theorem.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:662. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem9.2.771 theorem
  • theorem QuantumBlockEncoding.CubicStatePreparation.gridPoint_lt_one (n : )
      (j : Fin (QuantumBlockEncoding.gridSize n)) :
      QuantumBlockEncoding.CubicStatePreparation.gridPoint n j < 1
    theorem QuantumBlockEncoding.CubicStatePreparation.gridPoint_lt_one
      (n : )
      (j :
        Fin
          (QuantumBlockEncoding.gridSize n)) :
      QuantumBlockEncoding.CubicStatePreparation.gridPoint
          n j <
        1
Theorem9.2.78
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “grid point le one”; the hypotheses and conclusion in the code panel fix its exact scope.

Formal status. Compiled theorem in the default ASPBE import surface; the displayed Lean signature is the authoritative claim.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. The source declaration has no docstring. The reader cue above is generated from its kind and name and does not replace the Lean signature.

Declaration kind. theorem.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:669. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem9.2.781 theorem
  • theorem QuantumBlockEncoding.CubicStatePreparation.gridPoint_le_one (n : )
      (j : Fin (QuantumBlockEncoding.gridSize n)) :
      QuantumBlockEncoding.CubicStatePreparation.gridPoint n j  1
    theorem QuantumBlockEncoding.CubicStatePreparation.gridPoint_le_one
      (n : )
      (j :
        Fin
          (QuantumBlockEncoding.gridSize n)) :
      QuantumBlockEncoding.CubicStatePreparation.gridPoint
          n j 
        1
Theorem9.2.79
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “rat pow le one of nonneg le one”; the hypotheses and conclusion in the code panel fix its exact scope.

Formal status. Compiled theorem in the default ASPBE import surface; the displayed Lean signature is the authoritative claim.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. The source declaration has no docstring. The reader cue above is generated from its kind and name and does not replace the Lean signature.

Declaration kind. theorem.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:673. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem9.2.791 theorem
  • theorem QuantumBlockEncoding.CubicStatePreparation.rat_pow_le_one_of_nonneg_le_one
      (x : ) (k : ) (hx0 : 0  x) (hx1 : x  1) : x ^ k  1
    theorem QuantumBlockEncoding.CubicStatePreparation.rat_pow_le_one_of_nonneg_le_one
      (x : ) (k : ) (hx0 : 0  x)
      (hx1 : x  1) : x ^ k  1
Theorem9.2.80
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “cubic amplitude sq le one”; the hypotheses and conclusion in the code panel fix its exact scope.

Formal status. Compiled theorem in the default ASPBE import surface; the displayed Lean signature is the authoritative claim.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. The source declaration has no docstring. The reader cue above is generated from its kind and name and does not replace the Lean signature.

Declaration kind. theorem.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:687. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem9.2.801 theorem
  • theorem QuantumBlockEncoding.CubicStatePreparation.cubicAmplitude_sq_le_one
      (n : ) (j : Fin (QuantumBlockEncoding.gridSize n)) :
      QuantumBlockEncoding.CubicStatePreparation.cubicAmplitude n j ^ 2  1
    theorem QuantumBlockEncoding.CubicStatePreparation.cubicAmplitude_sq_le_one
      (n : )
      (j :
        Fin
          (QuantumBlockEncoding.gridSize n)) :
      QuantumBlockEncoding.CubicStatePreparation.cubicAmplitude
            n j ^
          2 
        1
Theorem9.2.81
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “foldl add le add length”; the hypotheses and conclusion in the code panel fix its exact scope.

Formal status. Compiled theorem in the default ASPBE import surface; the displayed Lean signature is the authoritative claim.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. The source declaration has no docstring. The reader cue above is generated from its kind and name and does not replace the Lean signature.

Declaration kind. theorem.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:693. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem9.2.811 theorem
  • theorem QuantumBlockEncoding.CubicStatePreparation.foldl_add_le_add_length.{u}
      {α : Type u} (xs : List α) (f : α  ) (h :  x  xs, f x  1)
      (acc : ) :
      List.foldl (fun acc x => acc + f x) acc xs  acc + xs.length
    theorem QuantumBlockEncoding.CubicStatePreparation.foldl_add_le_add_length.{u}
      {α : Type u} (xs : List α) (f : α  )
      (h :  x  xs, f x  1) (acc : ) :
      List.foldl (fun acc x => acc + f x) acc
          xs 
        acc + xs.length
Theorem9.2.82
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “cubic norm sq le grid size”; the hypotheses and conclusion in the code panel fix its exact scope.

Formal status. Compiled theorem in the default ASPBE import surface; the displayed Lean signature is the authoritative claim.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. The source declaration has no docstring. The reader cue above is generated from its kind and name and does not replace the Lean signature.

Declaration kind. theorem.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:719. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem9.2.821 theorem
  • theorem QuantumBlockEncoding.CubicStatePreparation.cubicNormSq_le_gridSize
      (n : ) :
      QuantumBlockEncoding.CubicStatePreparation.cubicNormSq n 
        (QuantumBlockEncoding.gridSize n)
    theorem QuantumBlockEncoding.CubicStatePreparation.cubicNormSq_le_gridSize
      (n : ) :
      QuantumBlockEncoding.CubicStatePreparation.cubicNormSq
          n 
        (QuantumBlockEncoding.gridSize n)
Theorem9.2.83
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “grid size rat le sq”; the hypotheses and conclusion in the code panel fix its exact scope.

Formal status. Compiled theorem in the default ASPBE import surface; the displayed Lean signature is the authoritative claim.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. The source declaration has no docstring. The reader cue above is generated from its kind and name and does not replace the Lean signature.

Declaration kind. theorem.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:731. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem9.2.831 theorem
  • theorem QuantumBlockEncoding.CubicStatePreparation.gridSize_rat_le_sq (n : ) :
      (QuantumBlockEncoding.gridSize n) 
        (QuantumBlockEncoding.gridSize n) ^ 2
    theorem QuantumBlockEncoding.CubicStatePreparation.gridSize_rat_le_sq
      (n : ) :
      (QuantumBlockEncoding.gridSize n) 
        (QuantumBlockEncoding.gridSize n) ^ 2
Theorem9.2.84
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “cubic norm sq le conservative normalizer sq”; the hypotheses and conclusion in the code panel fix its exact scope.

Formal status. Compiled theorem in the default ASPBE import surface; the displayed Lean signature is the authoritative claim.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. The source declaration has no docstring. The reader cue above is generated from its kind and name and does not replace the Lean signature.

Declaration kind. theorem.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:743. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem9.2.841 theorem
  • theorem QuantumBlockEncoding.CubicStatePreparation.cubicNormSq_le_conservativeNormalizer_sq
      (n : ) :
      QuantumBlockEncoding.CubicStatePreparation.cubicNormSq n 
        QuantumBlockEncoding.CubicStatePreparation.conservativeNormalizer
            n ^
          2
    theorem QuantumBlockEncoding.CubicStatePreparation.cubicNormSq_le_conservativeNormalizer_sq
      (n : ) :
      QuantumBlockEncoding.CubicStatePreparation.cubicNormSq
          n 
        QuantumBlockEncoding.CubicStatePreparation.conservativeNormalizer
            n ^
          2
Theorem9.2.85
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “cubic norm sq le arithmetic cubic normalizer sq”; the hypotheses and conclusion in the code panel fix its exact scope. Candidate-specific normalizer bridge for the first arithmetic route.

Formal status. Compiled theorem in the default ASPBE import surface; the displayed Lean signature is the authoritative claim.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Candidate-specific normalizer bridge for the first arithmetic route. This does not certify the candidate unitary; it only records that the route's current choice 'alpha = arithmeticCubicNormalizer n' inherits the compiled conservative norm bound.

Declaration kind. theorem.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:754. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem9.2.851 theorem
  • theorem QuantumBlockEncoding.CubicStatePreparation.cubicNormSq_le_arithmeticCubicNormalizer_sq
      (n : ) :
      QuantumBlockEncoding.CubicStatePreparation.cubicNormSq n 
        QuantumBlockEncoding.CubicStatePreparation.arithmeticCubicNormalizer
            n ^
          2
    theorem QuantumBlockEncoding.CubicStatePreparation.cubicNormSq_le_arithmeticCubicNormalizer_sq
      (n : ) :
      QuantumBlockEncoding.CubicStatePreparation.cubicNormSq
          n 
        QuantumBlockEncoding.CubicStatePreparation.arithmeticCubicNormalizer
            n ^
          2
    Candidate-specific normalizer bridge for the first arithmetic route.  This does
    not certify the candidate unitary; it only records that the route's current
    choice `alpha = arithmeticCubicNormalizer n` inherits the compiled conservative
    norm bound.
    
Theorem9.2.86
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “cubic norm sq le hadamard counting cubic normalizer sq”; the hypotheses and conclusion in the code panel fix its exact scope. Candidate-specific normalizer bridge for the Hadamard-counting route.

Formal status. Compiled theorem in the default ASPBE import surface; the displayed Lean signature is the authoritative claim.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Candidate-specific normalizer bridge for the Hadamard-counting route. This does not certify the Hadamard-sandwich semantics; it only records that the route's normalizer inherits the compiled conservative norm bound.

Declaration kind. theorem.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:764. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem9.2.861 theorem
  • theorem QuantumBlockEncoding.CubicStatePreparation.cubicNormSq_le_hadamardCountingCubicNormalizer_sq
      (n : ) :
      QuantumBlockEncoding.CubicStatePreparation.cubicNormSq n 
        QuantumBlockEncoding.CubicStatePreparation.hadamardCountingCubicNormalizer
            n ^
          2
    theorem QuantumBlockEncoding.CubicStatePreparation.cubicNormSq_le_hadamardCountingCubicNormalizer_sq
      (n : ) :
      QuantumBlockEncoding.CubicStatePreparation.cubicNormSq
          n 
        QuantumBlockEncoding.CubicStatePreparation.hadamardCountingCubicNormalizer
            n ^
          2
    Candidate-specific normalizer bridge for the Hadamard-counting route.  This
    does not certify the Hadamard-sandwich semantics; it only records that the
    route's normalizer inherits the compiled conservative norm bound.
    
Theorem9.2.87
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “cubic norm sq n 1”; the hypotheses and conclusion in the code panel fix its exact scope.

Formal status. Compiled theorem in the default ASPBE import surface; the displayed Lean signature is the authoritative claim.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. The source declaration has no docstring. The reader cue above is generated from its kind and name and does not replace the Lean signature.

Declaration kind. theorem.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:769. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem9.2.871 theorem
  • theorem QuantumBlockEncoding.CubicStatePreparation.cubicNormSq_n1 :
      QuantumBlockEncoding.CubicStatePreparation.cubicNormSq 1 = 1 / 64
    theorem QuantumBlockEncoding.CubicStatePreparation.cubicNormSq_n1 :
      QuantumBlockEncoding.CubicStatePreparation.cubicNormSq
          1 =
        1 / 64
Theorem9.2.88
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “cubic norm sq n 2”; the hypotheses and conclusion in the code panel fix its exact scope.

Formal status. Compiled theorem in the default ASPBE import surface; the displayed Lean signature is the authoritative claim.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. The source declaration has no docstring. The reader cue above is generated from its kind and name and does not replace the Lean signature.

Declaration kind. theorem.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:773. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem9.2.881 theorem
  • theorem QuantumBlockEncoding.CubicStatePreparation.cubicNormSq_n2 :
      QuantumBlockEncoding.CubicStatePreparation.cubicNormSq 2 = 397 / 2048
    theorem QuantumBlockEncoding.CubicStatePreparation.cubicNormSq_n2 :
      QuantumBlockEncoding.CubicStatePreparation.cubicNormSq
          2 =
        397 / 2048
Theorem9.2.89
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “cubic norm sq n 3”; the hypotheses and conclusion in the code panel fix its exact scope.

Formal status. Compiled theorem in the default ASPBE import surface; the displayed Lean signature is the authoritative claim.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. The source declaration has no docstring. The reader cue above is generated from its kind and name and does not replace the Lean signature.

Declaration kind. theorem.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:777. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem9.2.891 theorem
  • theorem QuantumBlockEncoding.CubicStatePreparation.cubicNormSq_n3 :
      QuantumBlockEncoding.CubicStatePreparation.cubicNormSq 3 =
        46205 / 65536
    theorem QuantumBlockEncoding.CubicStatePreparation.cubicNormSq_n3 :
      QuantumBlockEncoding.CubicStatePreparation.cubicNormSq
          3 =
        46205 / 65536
Definition9.2.90
uses 0used by 0L∃∀N

Plain-English reading. This definition gives the library's named construction or computation for “task id”. Task identifier used by the retrieval and verifier ledgers.

Formal status. Compiled declaration in the default ASPBE import surface; its kind and displayed Lean type determine how it may be used.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Task identifier used by the retrieval and verifier ledgers.

Declaration kind. def.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:786. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Definition9.2.901 definition
  • def QuantumBlockEncoding.CubicDiagonalOracle.taskId : String
    def QuantumBlockEncoding.CubicDiagonalOracle.taskId :
      String
    Task identifier used by the retrieval and verifier ledgers. 
Definition9.2.91
uses 0used by 0L∃∀N

Plain-English reading. This definition gives the library's named construction or computation for “cubic diagonal operator”. The diagonal cubic oracle target 'D_n[row,col] = (row/2^n)^3' if 'row=col', else zero.

Formal status. Compiled declaration in the default ASPBE import surface; its kind and displayed Lean type determine how it may be used.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. The diagonal cubic oracle target 'D_n[row,col] = (row/2^n)^3' if 'row=col', else zero.

Declaration kind. def.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:789. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Definition9.2.911 definition
  • def QuantumBlockEncoding.CubicDiagonalOracle.cubicDiagonalOperator (n : ) :
      QuantumBlockEncoding.Matrix (QuantumBlockEncoding.gridSize n)
        (QuantumBlockEncoding.gridSize n) 
    def QuantumBlockEncoding.CubicDiagonalOracle.cubicDiagonalOperator
      (n : ) :
      QuantumBlockEncoding.Matrix
        (QuantumBlockEncoding.gridSize n)
        (QuantumBlockEncoding.gridSize n) 
    The diagonal cubic oracle target `D_n[row,col] = (row/2^n)^3` if `row=col`, else zero. 
Definition9.2.92
uses 0used by 0L∃∀N

Plain-English reading. This definition gives the library's named construction or computation for “exact normalizer”. Exact normalizer for the diagonal target at the primitive amplitude-oracle tier.

Formal status. Compiled declaration in the default ASPBE import surface; its kind and displayed Lean type determine how it may be used.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Exact normalizer for the diagonal target at the primitive amplitude-oracle tier.

Declaration kind. def.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:795. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Definition9.2.921 definition
  • def QuantumBlockEncoding.CubicDiagonalOracle.exactNormalizer (_n : ) : 
    def QuantumBlockEncoding.CubicDiagonalOracle.exactNormalizer
      (_n : ) : 
    Exact normalizer for the diagonal target at the primitive amplitude-oracle tier. 
Definition9.2.93
uses 0used by 0L∃∀N

Plain-English reading. This definition gives the library's named construction or computation for “cubic diagonal target”. Operator-first target record for the diagonal cubic oracle.

Formal status. Compiled declaration in the default ASPBE import surface; its kind and displayed Lean type determine how it may be used.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Operator-first target record for the diagonal cubic oracle.

Declaration kind. def.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:798. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Definition9.2.931 definition
  • def QuantumBlockEncoding.CubicDiagonalOracle.cubicDiagonalTarget (n : ) :
      QuantumBlockEncoding.QueryOperatorTarget 
        (QuantumBlockEncoding.gridSize n) (QuantumBlockEncoding.gridSize n)
    def QuantumBlockEncoding.CubicDiagonalOracle.cubicDiagonalTarget
      (n : ) :
      QuantumBlockEncoding.QueryOperatorTarget
         (QuantumBlockEncoding.gridSize n)
        (QuantumBlockEncoding.gridSize n)
    Operator-first target record for the diagonal cubic oracle. 
Definition9.2.94
uses 0used by 0L∃∀N

Plain-English reading. This definition gives the library's named construction or computation for “linear diagonal operator”. Hinted linear diagonal target 'O_0[row,col] = row/2^n' if 'row=col', else zero.

Formal status. Compiled declaration in the default ASPBE import surface; its kind and displayed Lean type determine how it may be used.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Hinted linear diagonal target 'O_0[row,col] = row/2^n' if 'row=col', else zero. This is the input operator for the task-local QSVT consumer route. It is only the target matrix; a block-encoding circuit for this matrix is a separate proof obligation.

Declaration kind. def.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:819. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Definition9.2.941 definition
  • def QuantumBlockEncoding.CubicDiagonalOracle.linearDiagonalOperator
      (n : ) :
      QuantumBlockEncoding.Matrix (QuantumBlockEncoding.gridSize n)
        (QuantumBlockEncoding.gridSize n) 
    def QuantumBlockEncoding.CubicDiagonalOracle.linearDiagonalOperator
      (n : ) :
      QuantumBlockEncoding.Matrix
        (QuantumBlockEncoding.gridSize n)
        (QuantumBlockEncoding.gridSize n) 
    Hinted linear diagonal target `O_0[row,col] = row/2^n` if `row=col`, else zero.
    
    This is the input operator for the task-local QSVT consumer route.  It is only
    the target matrix; a block-encoding circuit for this matrix is a separate proof
    obligation.
    
Definition9.2.95
uses 0used by 0L∃∀N

Plain-English reading. This definition gives the library's named construction or computation for “linear diagonal target”. Operator-first target record for the hinted linear diagonal input 'O_0'.

Formal status. Compiled declaration in the default ASPBE import surface; its kind and displayed Lean type determine how it may be used.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Operator-first target record for the hinted linear diagonal input 'O_0'.

Declaration kind. def.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:825. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Definition9.2.951 definition
  • def QuantumBlockEncoding.CubicDiagonalOracle.linearDiagonalTarget (n : ) :
      QuantumBlockEncoding.QueryOperatorTarget 
        (QuantumBlockEncoding.gridSize n) (QuantumBlockEncoding.gridSize n)
    def QuantumBlockEncoding.CubicDiagonalOracle.linearDiagonalTarget
      (n : ) :
      QuantumBlockEncoding.QueryOperatorTarget
         (QuantumBlockEncoding.gridSize n)
        (QuantumBlockEncoding.gridSize n)
    Operator-first target record for the hinted linear diagonal input `O_0`. 
Definition9.2.96
uses 0used by 0L∃∀N

Plain-English reading. This definition gives the library's named construction or computation for “linear diagonal clean block contract”. Clean-block contract for the hinted linear diagonal input target.

Formal status. Compiled declaration in the default ASPBE import surface; its kind and displayed Lean type determine how it may be used.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Clean-block contract for the hinted linear diagonal input target.

Declaration kind. def.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:840. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Definition9.2.961 definition
  • def QuantumBlockEncoding.CubicDiagonalOracle.linearDiagonalCleanBlockContract
      (n : )
      (block :
        QuantumBlockEncoding.Matrix (QuantumBlockEncoding.gridSize n)
          (QuantumBlockEncoding.gridSize n) ) :
      Prop
    def QuantumBlockEncoding.CubicDiagonalOracle.linearDiagonalCleanBlockContract
      (n : )
      (block :
        QuantumBlockEncoding.Matrix
          (QuantumBlockEncoding.gridSize n)
          (QuantumBlockEncoding.gridSize n)
          ) :
      Prop
    Clean-block contract for the hinted linear diagonal input target. 
Theorem9.2.97
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “linear diagonal clean block contract pointwise eq”; the hypotheses and conclusion in the code panel fix its exact scope.

Formal status. Compiled theorem in the default ASPBE import surface; the displayed Lean signature is the authoritative claim.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. The source declaration has no docstring. The reader cue above is generated from its kind and name and does not replace the Lean signature.

Declaration kind. theorem.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:846. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem9.2.971 theorem
  • theorem QuantumBlockEncoding.CubicDiagonalOracle.linearDiagonalCleanBlockContract_pointwise_eq
      (n : )
      (block :
        QuantumBlockEncoding.Matrix (QuantumBlockEncoding.gridSize n)
          (QuantumBlockEncoding.gridSize n) )
      (h :
        QuantumBlockEncoding.CubicDiagonalOracle.linearDiagonalCleanBlockContract
          n block) :
      block.PointwiseEq
        (QuantumBlockEncoding.CubicDiagonalOracle.linearDiagonalOperator n)
    theorem QuantumBlockEncoding.CubicDiagonalOracle.linearDiagonalCleanBlockContract_pointwise_eq
      (n : )
      (block :
        QuantumBlockEncoding.Matrix
          (QuantumBlockEncoding.gridSize n)
          (QuantumBlockEncoding.gridSize n) )
      (h :
        QuantumBlockEncoding.CubicDiagonalOracle.linearDiagonalCleanBlockContract
          n block) :
      block.PointwiseEq
        (QuantumBlockEncoding.CubicDiagonalOracle.linearDiagonalOperator
          n)
Theorem9.2.98
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “linear diagonal clean block eq target”; the hypotheses and conclusion in the code panel fix its exact scope.

Formal status. Compiled theorem in the default ASPBE import surface; the displayed Lean signature is the authoritative claim.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. The source declaration has no docstring. The reader cue above is generated from its kind and name and does not replace the Lean signature.

Declaration kind. theorem.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:853. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem9.2.981 theorem
  • theorem QuantumBlockEncoding.CubicDiagonalOracle.linearDiagonalCleanBlock_eq_target
      (n : )
      (block :
        QuantumBlockEncoding.Matrix (QuantumBlockEncoding.gridSize n)
          (QuantumBlockEncoding.gridSize n) )
      (h :
        QuantumBlockEncoding.CubicDiagonalOracle.linearDiagonalCleanBlockContract
          n block) :
      block.PointwiseEq
        (QuantumBlockEncoding.CubicDiagonalOracle.linearDiagonalTarget
            n).operator
    theorem QuantumBlockEncoding.CubicDiagonalOracle.linearDiagonalCleanBlock_eq_target
      (n : )
      (block :
        QuantumBlockEncoding.Matrix
          (QuantumBlockEncoding.gridSize n)
          (QuantumBlockEncoding.gridSize n) )
      (h :
        QuantumBlockEncoding.CubicDiagonalOracle.linearDiagonalCleanBlockContract
          n block) :
      block.PointwiseEq
        (QuantumBlockEncoding.CubicDiagonalOracle.linearDiagonalTarget
            n).operator
Definition9.2.99
uses 0used by 0L∃∀N

Plain-English reading. This definition gives the library's named construction or computation for “linear diagonal exact clean block from pointwise”. Package a supplied clean-block equality for the hinted linear diagonal target as an 'ExactCleanBlock' payload.

Formal status. Compiled declaration in the default ASPBE import surface; its kind and displayed Lean type determine how it may be used.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Package a supplied clean-block equality for the hinted linear diagonal target as an 'ExactCleanBlock' payload. This is semantic glue only. The caller still owns the unitary proof, cleanup proof, concrete circuit, and resource tuple for the matrix 'U'.

Declaration kind. def.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:867. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Definition9.2.991 definition
  • def QuantumBlockEncoding.CubicDiagonalOracle.linearDiagonalExactCleanBlockFromPointwise
      {n total : } (U : QuantumBlockEncoding.Matrix total total )
      (embed : Fin (QuantumBlockEncoding.gridSize n)  Fin total)
      (h :
        (QuantumBlockEncoding.BlockEncodingClassics.cleanBlockBy embed
              U).PointwiseEq
          (QuantumBlockEncoding.CubicDiagonalOracle.linearDiagonalOperator
            n)) :
      QuantumBlockEncoding.BlockEncodingClassics.ExactCleanBlock
        (QuantumBlockEncoding.gridSize n) total
    def QuantumBlockEncoding.CubicDiagonalOracle.linearDiagonalExactCleanBlockFromPointwise
      {n total : }
      (U :
        QuantumBlockEncoding.Matrix total
          total )
      (embed :
        Fin
            (QuantumBlockEncoding.gridSize
              n) 
          Fin total)
      (h :
        (QuantumBlockEncoding.BlockEncodingClassics.cleanBlockBy
              embed U).PointwiseEq
          (QuantumBlockEncoding.CubicDiagonalOracle.linearDiagonalOperator
            n)) :
      QuantumBlockEncoding.BlockEncodingClassics.ExactCleanBlock
        (QuantumBlockEncoding.gridSize n)
        total
    Package a supplied clean-block equality for the hinted linear diagonal target
    as an `ExactCleanBlock` payload.
    
    This is semantic glue only.  The caller still owns the unitary proof, cleanup
    proof, concrete circuit, and resource tuple for the matrix `U`.
    
Theorem9.2.100
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “linear diagonal exact clean block from pointwise clean eq target”; the hypotheses and conclusion in the code panel fix its exact scope.

Formal status. Compiled theorem in the default ASPBE import surface; the displayed Lean signature is the authoritative claim.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. The source declaration has no docstring. The reader cue above is generated from its kind and name and does not replace the Lean signature.

Declaration kind. theorem.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:881. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem9.2.1001 theorem
  • theorem QuantumBlockEncoding.CubicDiagonalOracle.linearDiagonalExactCleanBlockFromPointwise_clean_eq_target
      {n total : } (U : QuantumBlockEncoding.Matrix total total )
      (embed : Fin (QuantumBlockEncoding.gridSize n)  Fin total)
      (h :
        (QuantumBlockEncoding.BlockEncodingClassics.cleanBlockBy embed
              U).PointwiseEq
          (QuantumBlockEncoding.CubicDiagonalOracle.linearDiagonalOperator
            n)) :
      (QuantumBlockEncoding.CubicDiagonalOracle.linearDiagonalExactCleanBlockFromPointwise
              U embed h).clean.PointwiseEq
        (QuantumBlockEncoding.CubicDiagonalOracle.linearDiagonalTarget
            n).operator
    theorem QuantumBlockEncoding.CubicDiagonalOracle.linearDiagonalExactCleanBlockFromPointwise_clean_eq_target
      {n total : }
      (U :
        QuantumBlockEncoding.Matrix total
          total )
      (embed :
        Fin
            (QuantumBlockEncoding.gridSize
              n) 
          Fin total)
      (h :
        (QuantumBlockEncoding.BlockEncodingClassics.cleanBlockBy
              embed U).PointwiseEq
          (QuantumBlockEncoding.CubicDiagonalOracle.linearDiagonalOperator
            n)) :
      (QuantumBlockEncoding.CubicDiagonalOracle.linearDiagonalExactCleanBlockFromPointwise
              U embed h).clean.PointwiseEq
        (QuantumBlockEncoding.CubicDiagonalOracle.linearDiagonalTarget
            n).operator
Definition9.2.101
uses 0used by 0L∃∀N

Plain-English reading. This record groups the data and proof fields needed for “linear diagonal input be contract”. A proposition-valued field is a requirement until a constructor supplies it. Interface for a concrete block encoding of the hinted linear diagonal input.

Formal status. Data contract in the default import surface; proposition-valued fields are obligations, not automatically established facts.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Interface for a concrete block encoding of the hinted linear diagonal input. This names the fields a backend must supply before the exact clean-block payload can be used as a real input certificate. It is not itself a backend: the cleanup and resource propositions must describe the chosen circuit family.

Declaration kind. structure.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:904. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Definition9.2.1011 definition
  • structure(11 fields)defined in QuantumBlockEncoding/CubicStatePreparation.lean
    complete
    structure QuantumBlockEncoding.CubicDiagonalOracle.LinearDiagonalInputBEContract
      (n total : ) : Type
    structure QuantumBlockEncoding.CubicDiagonalOracle.LinearDiagonalInputBEContract
      (n total : ) : Type
    Interface for a concrete block encoding of the hinted linear diagonal input.
    
    This names the fields a backend must supply before the exact clean-block
    payload can be used as a real input certificate.  It is not itself a backend:
    the cleanup and resource propositions must describe the chosen circuit family.
    

    Fields

    U : QuantumBlockEncoding.Matrix total total 
    embed : Fin (QuantumBlockEncoding.gridSize n)  Fin total
    unitaryProof : QuantumBlockEncoding.BlockEncodingClassics.IsRationalOrthogonal self.U
    cleanupStatement : Prop
    cleanupDescription : String
    cleanupProof : self.cleanupStatement
    cleanBlockProof : (QuantumBlockEncoding.BlockEncodingClassics.cleanBlockBy self.embed self.U).PointwiseEq
      (QuantumBlockEncoding.CubicDiagonalOracle.linearDiagonalOperator n)
    normalizerProof : (QuantumBlockEncoding.CubicDiagonalOracle.linearDiagonalTarget n).normalizer = 1
    resource : QuantumBlockEncoding.Resource
    resourceStatement : Prop
    resourceProof : self.resourceStatement
Definition9.2.102
uses 0used by 0L∃∀N

Plain-English reading. This definition gives the library's named construction or computation for “exact payload”. Extract the reusable exact clean-block payload from a concrete linear-diagonal input contract.

Formal status. Compiled declaration in the default ASPBE import surface; its kind and displayed Lean type determine how it may be used.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Extract the reusable exact clean-block payload from a concrete linear-diagonal input contract.

Declaration kind. def.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:926. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Definition9.2.1021 definition
  • def QuantumBlockEncoding.CubicDiagonalOracle.LinearDiagonalInputBEContract.exactPayload
      {n total : }
      (cert :
        QuantumBlockEncoding.CubicDiagonalOracle.LinearDiagonalInputBEContract
          n total) :
      QuantumBlockEncoding.BlockEncodingClassics.ExactCleanBlock
        (QuantumBlockEncoding.gridSize n) total
    def QuantumBlockEncoding.CubicDiagonalOracle.LinearDiagonalInputBEContract.exactPayload
      {n total : }
      (cert :
        QuantumBlockEncoding.CubicDiagonalOracle.LinearDiagonalInputBEContract
          n total) :
      QuantumBlockEncoding.BlockEncodingClassics.ExactCleanBlock
        (QuantumBlockEncoding.gridSize n)
        total
    Extract the reusable exact clean-block payload from a concrete linear-diagonal
    input contract.
    
Theorem9.2.103
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “clean eq target”; the hypotheses and conclusion in the code panel fix its exact scope. The extracted clean block equals the hinted linear diagonal target.

Formal status. Compiled theorem in the default ASPBE import surface; the displayed Lean signature is the authoritative claim.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. The extracted clean block equals the hinted linear diagonal target.

Declaration kind. theorem.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:932. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem9.2.1031 theorem
  • theorem QuantumBlockEncoding.CubicDiagonalOracle.LinearDiagonalInputBEContract.clean_eq_target
      {n total : }
      (cert :
        QuantumBlockEncoding.CubicDiagonalOracle.LinearDiagonalInputBEContract
          n total) :
      cert.exactPayload.clean.PointwiseEq
        (QuantumBlockEncoding.CubicDiagonalOracle.linearDiagonalTarget
            n).operator
    theorem QuantumBlockEncoding.CubicDiagonalOracle.LinearDiagonalInputBEContract.clean_eq_target
      {n total : }
      (cert :
        QuantumBlockEncoding.CubicDiagonalOracle.LinearDiagonalInputBEContract
          n total) :
      cert.exactPayload.clean.PointwiseEq
        (QuantumBlockEncoding.CubicDiagonalOracle.linearDiagonalTarget
            n).operator
    The extracted clean block equals the hinted linear diagonal target. 
Definition9.2.104
uses 0used by 0L∃∀N

Plain-English reading. This definition gives the library's named construction or computation for “householder zero”. Clean basis index for the 8-dimensional rational Householder signal block.

Formal status. Compiled declaration in the default ASPBE import surface; its kind and displayed Lean type determine how it may be used.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Clean basis index for the 8-dimensional rational Householder signal block.

Declaration kind. def.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:944. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Definition9.2.1041 definition
  • def QuantumBlockEncoding.CubicDiagonalOracle.householderZero : Fin 8
    def QuantumBlockEncoding.CubicDiagonalOracle.householderZero :
      Fin 8
    Clean basis index for the 8-dimensional rational Householder signal block. 
Definition9.2.105
uses 0used by 0L∃∀N

Plain-English reading. This definition gives the library's named construction or computation for “dot 8”. Explicit rational dot product for the 8-dimensional Householder support leaf.

Formal status. Compiled declaration in the default ASPBE import surface; its kind and displayed Lean type determine how it may be used.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Explicit rational dot product for the 8-dimensional Householder support leaf.

Declaration kind. def.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:947. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Definition9.2.1051 definition
  • def QuantumBlockEncoding.CubicDiagonalOracle.dot8 (u v : Fin 8  ) : 
    def QuantumBlockEncoding.CubicDiagonalOracle.dot8
      (u v : Fin 8  ) : 
    Explicit rational dot product for the 8-dimensional Householder support leaf. 
Definition9.2.106
uses 0used by 0L∃∀N

Plain-English reading. This definition gives the library's named construction or computation for “householder 8 e 0 minus”. Vector 'e_0 - v' used in the rational Householder reflection.

Formal status. Compiled declaration in the default ASPBE import surface; its kind and displayed Lean type determine how it may be used.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Vector 'e_0 - v' used in the rational Householder reflection.

Declaration kind. def.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:952. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Definition9.2.1061 definition
  • def QuantumBlockEncoding.CubicDiagonalOracle.householder8E0Minus
      (v : Fin 8  ) : Fin 8  
    def QuantumBlockEncoding.CubicDiagonalOracle.householder8E0Minus
      (v : Fin 8  ) : Fin 8  
    Vector `e_0 - v` used in the rational Householder reflection. 
Definition9.2.107
uses 0used by 0L∃∀N

Plain-English reading. This definition gives the library's named construction or computation for “householder 8”. Rational 8-by-8 Householder block used by the hinted 'O_0' backend route.

Formal status. Compiled declaration in the default ASPBE import surface; its kind and displayed Lean type determine how it may be used.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Rational 8-by-8 Householder block used by the hinted 'O_0' backend route. The later backend still has to supply rational unit-vector completions for the grid values and prove orthogonality of this block family.

Declaration kind. def.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:961. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Definition9.2.1071 definition
  • def QuantumBlockEncoding.CubicDiagonalOracle.householder8 (v : Fin 8  ) :
      QuantumBlockEncoding.Matrix 8 8 
    def QuantumBlockEncoding.CubicDiagonalOracle.householder8
      (v : Fin 8  ) :
      QuantumBlockEncoding.Matrix 8 8 
    Rational 8-by-8 Householder block used by the hinted `O_0` backend route.
    
    The later backend still has to supply rational unit-vector completions for the
    grid values and prove orthogonality of this block family.
    
Theorem9.2.108
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “householder 8 e 0 minus norm sq”; the hypotheses and conclusion in the code panel fix its exact scope. Norm identity for 'e_0 - v' under the rational unit-vector hypothesis.

Formal status. Compiled theorem in the default ASPBE import surface; the displayed Lean signature is the authoritative claim.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Norm identity for 'e_0 - v' under the rational unit-vector hypothesis.

Declaration kind. theorem.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:968. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem9.2.1081 theorem
  • theorem QuantumBlockEncoding.CubicDiagonalOracle.householder8E0Minus_normSq
      (v : Fin 8  )
      (hunit : QuantumBlockEncoding.CubicDiagonalOracle.dot8 v v = 1) :
      QuantumBlockEncoding.CubicDiagonalOracle.dot8
          (QuantumBlockEncoding.CubicDiagonalOracle.householder8E0Minus v)
          (QuantumBlockEncoding.CubicDiagonalOracle.householder8E0Minus v) =
        2 * (1 - v QuantumBlockEncoding.CubicDiagonalOracle.householderZero)
    theorem QuantumBlockEncoding.CubicDiagonalOracle.householder8E0Minus_normSq
      (v : Fin 8  )
      (hunit :
        QuantumBlockEncoding.CubicDiagonalOracle.dot8
            v v =
          1) :
      QuantumBlockEncoding.CubicDiagonalOracle.dot8
          (QuantumBlockEncoding.CubicDiagonalOracle.householder8E0Minus
            v)
          (QuantumBlockEncoding.CubicDiagonalOracle.householder8E0Minus
            v) =
        2 *
          (1 -
            v
              QuantumBlockEncoding.CubicDiagonalOracle.householderZero)
    Norm identity for `e_0 - v` under the rational unit-vector hypothesis. 
Theorem9.2.109
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “householder 8 e 0 minus norm sq ne zero”; the hypotheses and conclusion in the code panel fix its exact scope. The Householder denominator is nonzero when the clean coordinate is not one.

Formal status. Compiled theorem in the default ASPBE import surface; the displayed Lean signature is the authoritative claim.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. The Householder denominator is nonzero when the clean coordinate is not one.

Declaration kind. theorem.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:977. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem9.2.1091 theorem
  • theorem QuantumBlockEncoding.CubicDiagonalOracle.householder8E0Minus_normSq_ne_zero
      (v : Fin 8  )
      (hunit : QuantumBlockEncoding.CubicDiagonalOracle.dot8 v v = 1)
      (hnot :
        v QuantumBlockEncoding.CubicDiagonalOracle.householderZero  1) :
      QuantumBlockEncoding.CubicDiagonalOracle.dot8
          (QuantumBlockEncoding.CubicDiagonalOracle.householder8E0Minus v)
          (QuantumBlockEncoding.CubicDiagonalOracle.householder8E0Minus v) 
        0
    theorem QuantumBlockEncoding.CubicDiagonalOracle.householder8E0Minus_normSq_ne_zero
      (v : Fin 8  )
      (hunit :
        QuantumBlockEncoding.CubicDiagonalOracle.dot8
            v v =
          1)
      (hnot :
        v
            QuantumBlockEncoding.CubicDiagonalOracle.householderZero 
          1) :
      QuantumBlockEncoding.CubicDiagonalOracle.dot8
          (QuantumBlockEncoding.CubicDiagonalOracle.householder8E0Minus
            v)
          (QuantumBlockEncoding.CubicDiagonalOracle.householder8E0Minus
            v) 
        0
    The Householder denominator is nonzero when the clean coordinate is not one. 
Theorem9.2.110
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “householder 8 clean entry”; the hypotheses and conclusion in the code panel fix its exact scope. Active leaf 'HINT-HOUSEHOLDER8-CLEAN-ENTRY': the clean entry of the rational Householder block is the first coordinate of the supplied unit vector.

Formal status. Compiled theorem in the default ASPBE import surface; the displayed Lean signature is the authoritative claim.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Active leaf 'HINT-HOUSEHOLDER8-CLEAN-ENTRY': the clean entry of the rational Householder block is the first coordinate of the supplied unit vector.

Declaration kind. theorem.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:989. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem9.2.1101 theorem
  • theorem QuantumBlockEncoding.CubicDiagonalOracle.householder8_clean_entry
      (v : Fin 8  )
      (hunit : QuantumBlockEncoding.CubicDiagonalOracle.dot8 v v = 1)
      (hnot :
        v QuantumBlockEncoding.CubicDiagonalOracle.householderZero  1) :
      QuantumBlockEncoding.CubicDiagonalOracle.householder8 v
          QuantumBlockEncoding.CubicDiagonalOracle.householderZero
          QuantumBlockEncoding.CubicDiagonalOracle.householderZero =
        v QuantumBlockEncoding.CubicDiagonalOracle.householderZero
    theorem QuantumBlockEncoding.CubicDiagonalOracle.householder8_clean_entry
      (v : Fin 8  )
      (hunit :
        QuantumBlockEncoding.CubicDiagonalOracle.dot8
            v v =
          1)
      (hnot :
        v
            QuantumBlockEncoding.CubicDiagonalOracle.householderZero 
          1) :
      QuantumBlockEncoding.CubicDiagonalOracle.householder8
          v
          QuantumBlockEncoding.CubicDiagonalOracle.householderZero
          QuantumBlockEncoding.CubicDiagonalOracle.householderZero =
        v
          QuantumBlockEncoding.CubicDiagonalOracle.householderZero
    Active leaf `HINT-HOUSEHOLDER8-CLEAN-ENTRY`: the clean entry of the rational
    Householder block is the first coordinate of the supplied unit vector.
    
Theorem9.2.111
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “householder 8 is rational orthogonal”; the hypotheses and conclusion in the code panel fix its exact scope. Active leaf 'HINT-HOUSEHOLDER8-ORTHO': the rational 8-dimensional Householder block is orthogonal whenever the input vector has 'dot8 v v = 1' and does not equal the clean basis vector.

Formal status. Compiled theorem in the default ASPBE import surface; the displayed Lean signature is the authoritative claim.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Active leaf 'HINT-HOUSEHOLDER8-ORTHO': the rational 8-dimensional Householder block is orthogonal whenever the input vector has 'dot8 v v = 1' and does not equal the clean basis vector.

Declaration kind. theorem.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:1132. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem9.2.1111 theorem
  • theorem QuantumBlockEncoding.CubicDiagonalOracle.householder8_isRationalOrthogonal
      (v : Fin 8  )
      (hunit : QuantumBlockEncoding.CubicDiagonalOracle.dot8 v v = 1)
      (hnot :
        v QuantumBlockEncoding.CubicDiagonalOracle.householderZero  1) :
      QuantumBlockEncoding.BlockEncodingClassics.IsRationalOrthogonal
        (QuantumBlockEncoding.CubicDiagonalOracle.householder8 v)
    theorem QuantumBlockEncoding.CubicDiagonalOracle.householder8_isRationalOrthogonal
      (v : Fin 8  )
      (hunit :
        QuantumBlockEncoding.CubicDiagonalOracle.dot8
            v v =
          1)
      (hnot :
        v
            QuantumBlockEncoding.CubicDiagonalOracle.householderZero 
          1) :
      QuantumBlockEncoding.BlockEncodingClassics.IsRationalOrthogonal
        (QuantumBlockEncoding.CubicDiagonalOracle.householder8
          v)
    Active leaf `HINT-HOUSEHOLDER8-ORTHO`: the rational 8-dimensional Householder
    block is orthogonal whenever the input vector has `dot8 v v = 1` and does not
    equal the clean basis vector.
    
Definition9.2.112
uses 0used by 0L∃∀N

Plain-English reading. This definition gives the library's named construction or computation for “controlled householder 8 system index”. System component for the task-local 'ancilla × system' direct-sum matrix.

Formal status. Compiled declaration in the default ASPBE import surface; its kind and displayed Lean type determine how it may be used.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. System component for the task-local 'ancilla × system' direct-sum matrix.

Declaration kind. def.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:1146. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Definition9.2.1121 definition
  • def QuantumBlockEncoding.CubicDiagonalOracle.controlledHouseholder8SystemIndex
      (n : ) (idx : Fin (8 * QuantumBlockEncoding.gridSize n)) :
      Fin (QuantumBlockEncoding.gridSize n)
    def QuantumBlockEncoding.CubicDiagonalOracle.controlledHouseholder8SystemIndex
      (n : )
      (idx :
        Fin
          (8 *
            QuantumBlockEncoding.gridSize
              n)) :
      Fin (QuantumBlockEncoding.gridSize n)
    System component for the task-local `ancilla × system` direct-sum matrix. 
Definition9.2.113
uses 0used by 0L∃∀N

Plain-English reading. This definition gives the library's named construction or computation for “controlled householder 8 ancilla index”. Ancilla component for the task-local 'ancilla × system' direct-sum matrix.

Formal status. Compiled declaration in the default ASPBE import surface; its kind and displayed Lean type determine how it may be used.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Ancilla component for the task-local 'ancilla × system' direct-sum matrix.

Declaration kind. def.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:1151. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Definition9.2.1131 definition
  • def QuantumBlockEncoding.CubicDiagonalOracle.controlledHouseholder8AncillaIndex
      (n : ) (idx : Fin (8 * QuantumBlockEncoding.gridSize n)) : Fin 8
    def QuantumBlockEncoding.CubicDiagonalOracle.controlledHouseholder8AncillaIndex
      (n : )
      (idx :
        Fin
          (8 *
            QuantumBlockEncoding.gridSize
              n)) :
      Fin 8
    Ancilla component for the task-local `ancilla × system` direct-sum matrix. 
Definition9.2.114
uses 0used by 0L∃∀N

Plain-English reading. This definition gives the library's named construction or computation for “controlled householder 8 embed”. Clean embedding for the controlled Householder direct sum.

Formal status. Compiled declaration in the default ASPBE import surface; its kind and displayed Lean type determine how it may be used.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Clean embedding for the controlled Householder direct sum.

Declaration kind. def.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:1160. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Definition9.2.1141 definition
  • def QuantumBlockEncoding.CubicDiagonalOracle.controlledHouseholder8Embed
      (n : ) :
      Fin (QuantumBlockEncoding.gridSize n) 
        Fin (8 * QuantumBlockEncoding.gridSize n)
    def QuantumBlockEncoding.CubicDiagonalOracle.controlledHouseholder8Embed
      (n : ) :
      Fin (QuantumBlockEncoding.gridSize n) 
        Fin
          (8 *
            QuantumBlockEncoding.gridSize n)
    Clean embedding for the controlled Householder direct sum. 
Definition9.2.115
uses 0used by 0L∃∀N

Plain-English reading. This definition gives the library's named construction or computation for “controlled householder 8 direct sum”. Task-local controlled direct sum of supplied Householder blocks over system branches.

Formal status. Compiled declaration in the default ASPBE import surface; its kind and displayed Lean type determine how it may be used.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Task-local controlled direct sum of supplied Householder blocks over system branches.

Declaration kind. def.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:1165. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Definition9.2.1151 definition
  • def QuantumBlockEncoding.CubicDiagonalOracle.controlledHouseholder8DirectSum
      (n : ) (v : Fin (QuantumBlockEncoding.gridSize n)  Fin 8  ) :
      QuantumBlockEncoding.Matrix (8 * QuantumBlockEncoding.gridSize n)
        (8 * QuantumBlockEncoding.gridSize n) 
    def QuantumBlockEncoding.CubicDiagonalOracle.controlledHouseholder8DirectSum
      (n : )
      (v :
        Fin
            (QuantumBlockEncoding.gridSize
              n) 
          Fin 8  ) :
      QuantumBlockEncoding.Matrix
        (8 * QuantumBlockEncoding.gridSize n)
        (8 * QuantumBlockEncoding.gridSize n)
        
    Task-local controlled direct sum of supplied Householder blocks over system branches. 
Theorem9.2.116
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “controlled householder 8 branch nontrivial of clean”; the hypotheses and conclusion in the code panel fix its exact scope. Grid branches for the linear diagonal input never have clean Householder coordinate equal to one.

Formal status. Compiled theorem in the default ASPBE import surface; the displayed Lean signature is the authoritative claim.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Grid branches for the linear diagonal input never have clean Householder coordinate equal to one.

Declaration kind. theorem.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:1268. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem9.2.1161 theorem
  • theorem QuantumBlockEncoding.CubicDiagonalOracle.controlledHouseholder8_branchNontrivial_of_clean
      (n : ) (v : Fin (QuantumBlockEncoding.gridSize n)  Fin 8  )
      (branchClean :
         (j : Fin (QuantumBlockEncoding.gridSize n)),
          v j QuantumBlockEncoding.CubicDiagonalOracle.householderZero =
            QuantumBlockEncoding.CubicStatePreparation.gridPoint n j)
      (j : Fin (QuantumBlockEncoding.gridSize n)) :
      v j QuantumBlockEncoding.CubicDiagonalOracle.householderZero  1
    theorem QuantumBlockEncoding.CubicDiagonalOracle.controlledHouseholder8_branchNontrivial_of_clean
      (n : )
      (v :
        Fin
            (QuantumBlockEncoding.gridSize
              n) 
          Fin 8  )
      (branchClean :
        
          (j :
            Fin
              (QuantumBlockEncoding.gridSize
                n)),
          v j
              QuantumBlockEncoding.CubicDiagonalOracle.householderZero =
            QuantumBlockEncoding.CubicStatePreparation.gridPoint
              n j)
      (j :
        Fin
          (QuantumBlockEncoding.gridSize n)) :
      v j
          QuantumBlockEncoding.CubicDiagonalOracle.householderZero 
        1
    Grid branches for the linear diagonal input never have clean Householder
    coordinate equal to one.
    
Theorem9.2.117
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “controlled householder 8 direct sum clean entry”; the hypotheses and conclusion in the code panel fix its exact scope. Active leaf 'HINT-CONTROLLED-DIRECT-SUM': the clean block of the controlled Householder direct sum is the hinted linear diagonal operator.

Formal status. Compiled theorem in the default ASPBE import surface; the displayed Lean signature is the authoritative claim.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Active leaf 'HINT-CONTROLLED-DIRECT-SUM': the clean block of the controlled Householder direct sum is the hinted linear diagonal operator.

Declaration kind. theorem.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:1286. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem9.2.1171 theorem
  • theorem QuantumBlockEncoding.CubicDiagonalOracle.controlledHouseholder8DirectSum_clean_entry
      (n : ) (v : Fin (QuantumBlockEncoding.gridSize n)  Fin 8  )
      (branchUnit :
         (j : Fin (QuantumBlockEncoding.gridSize n)),
          QuantumBlockEncoding.CubicDiagonalOracle.dot8 (v j) (v j) = 1)
      (branchClean :
         (j : Fin (QuantumBlockEncoding.gridSize n)),
          v j QuantumBlockEncoding.CubicDiagonalOracle.householderZero =
            QuantumBlockEncoding.CubicStatePreparation.gridPoint n j)
      (branchNontrivial :
         (j : Fin (QuantumBlockEncoding.gridSize n)),
          v j QuantumBlockEncoding.CubicDiagonalOracle.householderZero 
            1) :
      (QuantumBlockEncoding.BlockEncodingClassics.cleanBlockBy
            (QuantumBlockEncoding.CubicDiagonalOracle.controlledHouseholder8Embed
              n)
            (QuantumBlockEncoding.CubicDiagonalOracle.controlledHouseholder8DirectSum
              n v)).PointwiseEq
        (QuantumBlockEncoding.CubicDiagonalOracle.linearDiagonalOperator n)
    theorem QuantumBlockEncoding.CubicDiagonalOracle.controlledHouseholder8DirectSum_clean_entry
      (n : )
      (v :
        Fin
            (QuantumBlockEncoding.gridSize
              n) 
          Fin 8  )
      (branchUnit :
        
          (j :
            Fin
              (QuantumBlockEncoding.gridSize
                n)),
          QuantumBlockEncoding.CubicDiagonalOracle.dot8
              (v j) (v j) =
            1)
      (branchClean :
        
          (j :
            Fin
              (QuantumBlockEncoding.gridSize
                n)),
          v j
              QuantumBlockEncoding.CubicDiagonalOracle.householderZero =
            QuantumBlockEncoding.CubicStatePreparation.gridPoint
              n j)
      (branchNontrivial :
        
          (j :
            Fin
              (QuantumBlockEncoding.gridSize
                n)),
          v j
              QuantumBlockEncoding.CubicDiagonalOracle.householderZero 
            1) :
      (QuantumBlockEncoding.BlockEncodingClassics.cleanBlockBy
            (QuantumBlockEncoding.CubicDiagonalOracle.controlledHouseholder8Embed
              n)
            (QuantumBlockEncoding.CubicDiagonalOracle.controlledHouseholder8DirectSum
              n v)).PointwiseEq
        (QuantumBlockEncoding.CubicDiagonalOracle.linearDiagonalOperator
          n)
    Active leaf `HINT-CONTROLLED-DIRECT-SUM`: the clean block of the controlled
    Householder direct sum is the hinted linear diagonal operator.
    
Theorem9.2.118
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “controlled householder 8 direct sum column inner eq identity of system ne”; the hypotheses and conclusion in the code panel fix its exact scope. Column-inner bridge for the controlled Householder direct sum in the cross-branch case.

Formal status. Compiled theorem in the default ASPBE import surface; the displayed Lean signature is the authoritative claim.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Column-inner bridge for the controlled Householder direct sum in the cross-branch case. This is a support leaf for 'HINT-CONTROLLED-DIRECT-SUM-ORTHO': if two columns belong to different system branches, every path contribution through the block-diagonal direct sum vanishes, so the column inner product agrees with the off-diagonal identity entry.

Declaration kind. theorem.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:1360. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem9.2.1181 theorem
  • theorem QuantumBlockEncoding.CubicDiagonalOracle.controlledHouseholder8DirectSum_columnInner_eq_identity_of_system_ne
      (n : ) (v : Fin (QuantumBlockEncoding.gridSize n)  Fin 8  )
      (i j : Fin (8 * QuantumBlockEncoding.gridSize n))
      (hsys :
        QuantumBlockEncoding.CubicDiagonalOracle.controlledHouseholder8SystemIndex
            n i 
          QuantumBlockEncoding.CubicDiagonalOracle.controlledHouseholder8SystemIndex
            n j) :
      QuantumBlockEncoding.BlockEncodingClassics.columnInner
          (QuantumBlockEncoding.CubicDiagonalOracle.controlledHouseholder8DirectSum
            n v)
          i j =
        QuantumBlockEncoding.Matrix.identity
          (8 * QuantumBlockEncoding.gridSize n)  i j
    theorem QuantumBlockEncoding.CubicDiagonalOracle.controlledHouseholder8DirectSum_columnInner_eq_identity_of_system_ne
      (n : )
      (v :
        Fin
            (QuantumBlockEncoding.gridSize
              n) 
          Fin 8  )
      (i j :
        Fin
          (8 *
            QuantumBlockEncoding.gridSize n))
      (hsys :
        QuantumBlockEncoding.CubicDiagonalOracle.controlledHouseholder8SystemIndex
            n i 
          QuantumBlockEncoding.CubicDiagonalOracle.controlledHouseholder8SystemIndex
            n j) :
      QuantumBlockEncoding.BlockEncodingClassics.columnInner
          (QuantumBlockEncoding.CubicDiagonalOracle.controlledHouseholder8DirectSum
            n v)
          i j =
        QuantumBlockEncoding.Matrix.identity
          (8 *
            QuantumBlockEncoding.gridSize n)
           i j
    Column-inner bridge for the controlled Householder direct sum in the
    cross-branch case.
    
    This is a support leaf for `HINT-CONTROLLED-DIRECT-SUM-ORTHO`: if two columns
    belong to different system branches, every path contribution through the
    block-diagonal direct sum vanishes, so the column inner product agrees with the
    off-diagonal identity entry.
    
Theorem9.2.119
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “controlled householder 8 direct sum column inner eq branch”; the hypotheses and conclusion in the code panel fix its exact scope. Support leaf 'CDS-COL-FOLD': inside one decoded system branch, the column inner product of the controlled direct sum is the column inner product of that branch's Householder block.

Formal status. Compiled theorem in the default ASPBE import surface; the displayed Lean signature is the authoritative claim.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Support leaf 'CDS-COL-FOLD': inside one decoded system branch, the column inner product of the controlled direct sum is the column inner product of that branch's Householder block.

Declaration kind. theorem.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:1799. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem9.2.1191 theorem
  • theorem QuantumBlockEncoding.CubicDiagonalOracle.controlledHouseholder8DirectSum_columnInner_eq_branch
      (n : ) (v : Fin (QuantumBlockEncoding.gridSize n)  Fin 8  )
      (i j : Fin (8 * QuantumBlockEncoding.gridSize n))
      (hsys :
        QuantumBlockEncoding.CubicDiagonalOracle.controlledHouseholder8SystemIndex
            n i =
          QuantumBlockEncoding.CubicDiagonalOracle.controlledHouseholder8SystemIndex
            n j) :
      QuantumBlockEncoding.BlockEncodingClassics.columnInner
          (QuantumBlockEncoding.CubicDiagonalOracle.controlledHouseholder8DirectSum
            n v)
          i j =
        QuantumBlockEncoding.BlockEncodingClassics.columnInner
          (QuantumBlockEncoding.CubicDiagonalOracle.householder8
            (v
              (QuantumBlockEncoding.CubicDiagonalOracle.controlledHouseholder8SystemIndex
                n i)))
          (QuantumBlockEncoding.CubicDiagonalOracle.controlledHouseholder8AncillaIndex
            n i)
          (QuantumBlockEncoding.CubicDiagonalOracle.controlledHouseholder8AncillaIndex
            n j)
    theorem QuantumBlockEncoding.CubicDiagonalOracle.controlledHouseholder8DirectSum_columnInner_eq_branch
      (n : )
      (v :
        Fin
            (QuantumBlockEncoding.gridSize
              n) 
          Fin 8  )
      (i j :
        Fin
          (8 *
            QuantumBlockEncoding.gridSize n))
      (hsys :
        QuantumBlockEncoding.CubicDiagonalOracle.controlledHouseholder8SystemIndex
            n i =
          QuantumBlockEncoding.CubicDiagonalOracle.controlledHouseholder8SystemIndex
            n j) :
      QuantumBlockEncoding.BlockEncodingClassics.columnInner
          (QuantumBlockEncoding.CubicDiagonalOracle.controlledHouseholder8DirectSum
            n v)
          i j =
        QuantumBlockEncoding.BlockEncodingClassics.columnInner
          (QuantumBlockEncoding.CubicDiagonalOracle.householder8
            (v
              (QuantumBlockEncoding.CubicDiagonalOracle.controlledHouseholder8SystemIndex
                n i)))
          (QuantumBlockEncoding.CubicDiagonalOracle.controlledHouseholder8AncillaIndex
            n i)
          (QuantumBlockEncoding.CubicDiagonalOracle.controlledHouseholder8AncillaIndex
            n j)
    Support leaf `CDS-COL-FOLD`: inside one decoded system branch, the column inner
    product of the controlled direct sum is the column inner product of that
    branch's Householder block.
    
Theorem9.2.120
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “controlled householder 8 direct sum row inner eq branch”; the hypotheses and conclusion in the code panel fix its exact scope. Support leaf 'CDS-ROW-FOLD': inside one decoded system branch, the row inner product of the controlled direct sum is the row inner product of that branch's Householder block.

Formal status. Compiled theorem in the default ASPBE import surface; the displayed Lean signature is the authoritative claim.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Support leaf 'CDS-ROW-FOLD': inside one decoded system branch, the row inner product of the controlled direct sum is the row inner product of that branch's Householder block.

Declaration kind. theorem.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:1918. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem9.2.1201 theorem
  • theorem QuantumBlockEncoding.CubicDiagonalOracle.controlledHouseholder8DirectSum_rowInner_eq_branch
      (n : ) (v : Fin (QuantumBlockEncoding.gridSize n)  Fin 8  )
      (i j : Fin (8 * QuantumBlockEncoding.gridSize n))
      (hsys :
        QuantumBlockEncoding.CubicDiagonalOracle.controlledHouseholder8SystemIndex
            n i =
          QuantumBlockEncoding.CubicDiagonalOracle.controlledHouseholder8SystemIndex
            n j) :
      QuantumBlockEncoding.BlockEncodingClassics.rowInner
          (QuantumBlockEncoding.CubicDiagonalOracle.controlledHouseholder8DirectSum
            n v)
          i j =
        QuantumBlockEncoding.BlockEncodingClassics.rowInner
          (QuantumBlockEncoding.CubicDiagonalOracle.householder8
            (v
              (QuantumBlockEncoding.CubicDiagonalOracle.controlledHouseholder8SystemIndex
                n i)))
          (QuantumBlockEncoding.CubicDiagonalOracle.controlledHouseholder8AncillaIndex
            n i)
          (QuantumBlockEncoding.CubicDiagonalOracle.controlledHouseholder8AncillaIndex
            n j)
    theorem QuantumBlockEncoding.CubicDiagonalOracle.controlledHouseholder8DirectSum_rowInner_eq_branch
      (n : )
      (v :
        Fin
            (QuantumBlockEncoding.gridSize
              n) 
          Fin 8  )
      (i j :
        Fin
          (8 *
            QuantumBlockEncoding.gridSize n))
      (hsys :
        QuantumBlockEncoding.CubicDiagonalOracle.controlledHouseholder8SystemIndex
            n i =
          QuantumBlockEncoding.CubicDiagonalOracle.controlledHouseholder8SystemIndex
            n j) :
      QuantumBlockEncoding.BlockEncodingClassics.rowInner
          (QuantumBlockEncoding.CubicDiagonalOracle.controlledHouseholder8DirectSum
            n v)
          i j =
        QuantumBlockEncoding.BlockEncodingClassics.rowInner
          (QuantumBlockEncoding.CubicDiagonalOracle.householder8
            (v
              (QuantumBlockEncoding.CubicDiagonalOracle.controlledHouseholder8SystemIndex
                n i)))
          (QuantumBlockEncoding.CubicDiagonalOracle.controlledHouseholder8AncillaIndex
            n i)
          (QuantumBlockEncoding.CubicDiagonalOracle.controlledHouseholder8AncillaIndex
            n j)
    Support leaf `CDS-ROW-FOLD`: inside one decoded system branch, the row inner
    product of the controlled direct sum is the row inner product of that branch's
    Householder block.
    
Theorem9.2.121
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “controlled householder 8 direct sum row inner eq identity of system ne”; the hypotheses and conclusion in the code panel fix its exact scope. Row-inner bridge for the controlled Householder direct sum in the cross-branch case.

Formal status. Compiled theorem in the default ASPBE import surface; the displayed Lean signature is the authoritative claim.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Row-inner bridge for the controlled Householder direct sum in the cross-branch case. This completes the branch split needed by 'controlledHouseholder8DirectSum_isRationalOrthogonal': if two rows belong to different decoded system branches, no summation path can hit both blocks.

Declaration kind. theorem.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:1972. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem9.2.1211 theorem
  • theorem QuantumBlockEncoding.CubicDiagonalOracle.controlledHouseholder8DirectSum_rowInner_eq_identity_of_system_ne
      (n : ) (v : Fin (QuantumBlockEncoding.gridSize n)  Fin 8  )
      (i j : Fin (8 * QuantumBlockEncoding.gridSize n))
      (hsys :
        QuantumBlockEncoding.CubicDiagonalOracle.controlledHouseholder8SystemIndex
            n i 
          QuantumBlockEncoding.CubicDiagonalOracle.controlledHouseholder8SystemIndex
            n j) :
      QuantumBlockEncoding.BlockEncodingClassics.rowInner
          (QuantumBlockEncoding.CubicDiagonalOracle.controlledHouseholder8DirectSum
            n v)
          i j =
        QuantumBlockEncoding.Matrix.identity
          (8 * QuantumBlockEncoding.gridSize n)  i j
    theorem QuantumBlockEncoding.CubicDiagonalOracle.controlledHouseholder8DirectSum_rowInner_eq_identity_of_system_ne
      (n : )
      (v :
        Fin
            (QuantumBlockEncoding.gridSize
              n) 
          Fin 8  )
      (i j :
        Fin
          (8 *
            QuantumBlockEncoding.gridSize n))
      (hsys :
        QuantumBlockEncoding.CubicDiagonalOracle.controlledHouseholder8SystemIndex
            n i 
          QuantumBlockEncoding.CubicDiagonalOracle.controlledHouseholder8SystemIndex
            n j) :
      QuantumBlockEncoding.BlockEncodingClassics.rowInner
          (QuantumBlockEncoding.CubicDiagonalOracle.controlledHouseholder8DirectSum
            n v)
          i j =
        QuantumBlockEncoding.Matrix.identity
          (8 *
            QuantumBlockEncoding.gridSize n)
           i j
    Row-inner bridge for the controlled Householder direct sum in the cross-branch
    case.
    
    This completes the branch split needed by
    `controlledHouseholder8DirectSum_isRationalOrthogonal`: if two rows belong to
    different decoded system branches, no summation path can hit both blocks.
    
Theorem9.2.122
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “controlled householder 8 direct sum is rational orthogonal”; the hypotheses and conclusion in the code panel fix its exact scope. Active leaf 'HINT-CONTROLLED-DIRECT-SUM-ORTHO': branchwise rational orthogonality for the controlled direct sum of supplied 8-dimensional Householder blocks.

Formal status. Compiled theorem in the default ASPBE import surface; the displayed Lean signature is the authoritative claim.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Active leaf 'HINT-CONTROLLED-DIRECT-SUM-ORTHO': branchwise rational orthogonality for the controlled direct sum of supplied 8-dimensional Householder blocks.

Declaration kind. theorem.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:2012. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem9.2.1221 theorem
  • theorem QuantumBlockEncoding.CubicDiagonalOracle.controlledHouseholder8DirectSum_isRationalOrthogonal
      (n : ) (v : Fin (QuantumBlockEncoding.gridSize n)  Fin 8  )
      (branchUnit :
         (j : Fin (QuantumBlockEncoding.gridSize n)),
          QuantumBlockEncoding.CubicDiagonalOracle.dot8 (v j) (v j) = 1)
      (branchNontrivial :
         (j : Fin (QuantumBlockEncoding.gridSize n)),
          v j QuantumBlockEncoding.CubicDiagonalOracle.householderZero 
            1) :
      QuantumBlockEncoding.BlockEncodingClassics.IsRationalOrthogonal
        (QuantumBlockEncoding.CubicDiagonalOracle.controlledHouseholder8DirectSum
          n v)
    theorem QuantumBlockEncoding.CubicDiagonalOracle.controlledHouseholder8DirectSum_isRationalOrthogonal
      (n : )
      (v :
        Fin
            (QuantumBlockEncoding.gridSize
              n) 
          Fin 8  )
      (branchUnit :
        
          (j :
            Fin
              (QuantumBlockEncoding.gridSize
                n)),
          QuantumBlockEncoding.CubicDiagonalOracle.dot8
              (v j) (v j) =
            1)
      (branchNontrivial :
        
          (j :
            Fin
              (QuantumBlockEncoding.gridSize
                n)),
          v j
              QuantumBlockEncoding.CubicDiagonalOracle.householderZero 
            1) :
      QuantumBlockEncoding.BlockEncodingClassics.IsRationalOrthogonal
        (QuantumBlockEncoding.CubicDiagonalOracle.controlledHouseholder8DirectSum
          n v)
    Active leaf `HINT-CONTROLLED-DIRECT-SUM-ORTHO`: branchwise rational
    orthogonality for the controlled direct sum of supplied 8-dimensional
    Householder blocks.
    
Definition9.2.123
uses 0used by 0L∃∀N

Plain-English reading. This definition gives the library's named construction or computation for “linear diagonal rational completion”. Branch-vector completion contract for the rational Householder backend of the hinted linear diagonal input 'O_0'.

Formal status. Compiled declaration in the default ASPBE import surface; its kind and displayed Lean type determine how it may be used.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Branch-vector completion contract for the rational Householder backend of the hinted linear diagonal input 'O_0'. This predicate records only the supplied vector family needed by the compiled Householder direct-sum support. Existence for every grid point remains blocked on the cited four-squares obligation.

Declaration kind. def.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:2061. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Definition9.2.1231 definition
  • def QuantumBlockEncoding.CubicDiagonalOracle.LinearDiagonalRationalCompletion
      (n : ) : Prop
    def QuantumBlockEncoding.CubicDiagonalOracle.LinearDiagonalRationalCompletion
      (n : ) : Prop
    Branch-vector completion contract for the rational Householder backend of
    the hinted linear diagonal input `O_0`.
    
    This predicate records only the supplied vector family needed by the compiled
    Householder direct-sum support.  Existence for every grid point remains blocked
    on the cited four-squares obligation.
    
Definition9.2.124
uses 0used by 0L∃∀N

Plain-English reading. This definition gives the library's named construction or computation for “linear diagonal four square branch vector”. Branch vector obtained from a four-square completion of the residual '(2^n)^2 - j^2'.

Formal status. Compiled declaration in the default ASPBE import surface; its kind and displayed Lean type determine how it may be used.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Branch vector obtained from a four-square completion of the residual '(2^n)^2 - j^2'. The first coordinate is the grid value 'j / 2^n'; the next four coordinates carry the rationalized square witnesses.

Declaration kind. def.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:2074. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Definition9.2.1241 definition
  • def QuantumBlockEncoding.CubicDiagonalOracle.linearDiagonalFourSquareBranchVector
      (n : ) (j : Fin (QuantumBlockEncoding.gridSize n)) (a b c d : ) :
      Fin 8  
    def QuantumBlockEncoding.CubicDiagonalOracle.linearDiagonalFourSquareBranchVector
      (n : )
      (j :
        Fin (QuantumBlockEncoding.gridSize n))
      (a b c d : ) : Fin 8  
    Branch vector obtained from a four-square completion of the residual
    `(2^n)^2 - j^2`.
    
    The first coordinate is the grid value `j / 2^n`; the next four coordinates
    carry the rationalized square witnesses.
    
Theorem9.2.125
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “linear diagonal four square branch vector clean”; the hypotheses and conclusion in the code panel fix its exact scope.

Formal status. Compiled theorem in the default ASPBE import surface; the displayed Lean signature is the authoritative claim.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. The source declaration has no docstring. The reader cue above is generated from its kind and name and does not replace the Lean signature.

Declaration kind. theorem.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:2084. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem9.2.1251 theorem
  • theorem QuantumBlockEncoding.CubicDiagonalOracle.linearDiagonalFourSquareBranchVector_clean
      (n : ) (j : Fin (QuantumBlockEncoding.gridSize n)) (a b c d : ) :
      QuantumBlockEncoding.CubicDiagonalOracle.linearDiagonalFourSquareBranchVector
          n j a b c d
          QuantumBlockEncoding.CubicDiagonalOracle.householderZero =
        QuantumBlockEncoding.CubicStatePreparation.gridPoint n j
    theorem QuantumBlockEncoding.CubicDiagonalOracle.linearDiagonalFourSquareBranchVector_clean
      (n : )
      (j :
        Fin (QuantumBlockEncoding.gridSize n))
      (a b c d : ) :
      QuantumBlockEncoding.CubicDiagonalOracle.linearDiagonalFourSquareBranchVector
          n j a b c d
          QuantumBlockEncoding.CubicDiagonalOracle.householderZero =
        QuantumBlockEncoding.CubicStatePreparation.gridPoint
          n j
Theorem9.2.126
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “linear diagonal four square branch vector unit”; the hypotheses and conclusion in the code panel fix its exact scope.

Formal status. Compiled theorem in the default ASPBE import surface; the displayed Lean signature is the authoritative claim.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. The source declaration has no docstring. The reader cue above is generated from its kind and name and does not replace the Lean signature.

Declaration kind. theorem.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:2091. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem9.2.1261 theorem
  • theorem QuantumBlockEncoding.CubicDiagonalOracle.linearDiagonalFourSquareBranchVector_unit
      (n : ) (j : Fin (QuantumBlockEncoding.gridSize n)) (a b c d : )
      (hsq :
        QuantumBlockEncoding.gridSize n ^ 2 =
          j ^ 2 + a ^ 2 + b ^ 2 + c ^ 2 + d ^ 2) :
      QuantumBlockEncoding.CubicDiagonalOracle.dot8
          (QuantumBlockEncoding.CubicDiagonalOracle.linearDiagonalFourSquareBranchVector
            n j a b c d)
          (QuantumBlockEncoding.CubicDiagonalOracle.linearDiagonalFourSquareBranchVector
            n j a b c d) =
        1
    theorem QuantumBlockEncoding.CubicDiagonalOracle.linearDiagonalFourSquareBranchVector_unit
      (n : )
      (j :
        Fin (QuantumBlockEncoding.gridSize n))
      (a b c d : )
      (hsq :
        QuantumBlockEncoding.gridSize n ^ 2 =
          j ^ 2 + a ^ 2 + b ^ 2 + c ^ 2 +
            d ^ 2) :
      QuantumBlockEncoding.CubicDiagonalOracle.dot8
          (QuantumBlockEncoding.CubicDiagonalOracle.linearDiagonalFourSquareBranchVector
            n j a b c d)
          (QuantumBlockEncoding.CubicDiagonalOracle.linearDiagonalFourSquareBranchVector
            n j a b c d) =
        1
Theorem9.2.127
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “linear diagonal rational completion of four square witnesses”; the hypotheses and conclusion in the code panel fix its exact scope. Adapter from explicit four-square witnesses to the rational-completion predicate.

Formal status. Compiled theorem in the default ASPBE import surface; the displayed Lean signature is the authoritative claim.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Adapter from explicit four-square witnesses to the rational-completion predicate. This is the local consumer of the still-external 'Nat.sum_four_squares' dependency; it does not prove that the witnesses exist.

Declaration kind. theorem.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:2114. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem9.2.1271 theorem
  • theorem QuantumBlockEncoding.CubicDiagonalOracle.linearDiagonalRationalCompletion_of_fourSquareWitnesses
      (n : ) (a b c d : Fin (QuantumBlockEncoding.gridSize n)  )
      (hsq :
         (j : Fin (QuantumBlockEncoding.gridSize n)),
          QuantumBlockEncoding.gridSize n ^ 2 =
            j ^ 2 + a j ^ 2 + b j ^ 2 + c j ^ 2 + d j ^ 2) :
      QuantumBlockEncoding.CubicDiagonalOracle.LinearDiagonalRationalCompletion
        n
    theorem QuantumBlockEncoding.CubicDiagonalOracle.linearDiagonalRationalCompletion_of_fourSquareWitnesses
      (n : )
      (a b c d :
        Fin
            (QuantumBlockEncoding.gridSize
              n) 
          )
      (hsq :
        
          (j :
            Fin
              (QuantumBlockEncoding.gridSize
                n)),
          QuantumBlockEncoding.gridSize n ^
              2 =
            j ^ 2 + a j ^ 2 + b j ^ 2 +
                c j ^ 2 +
              d j ^ 2) :
      QuantumBlockEncoding.CubicDiagonalOracle.LinearDiagonalRationalCompletion
        n
    Adapter from explicit four-square witnesses to the rational-completion
    predicate.  This is the local consumer of the still-external
    `Nat.sum_four_squares` dependency; it does not prove that the witnesses exist.
    
Theorem9.2.128
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “linear diagonal rational completion exists”; the hypotheses and conclusion in the code panel fix its exact scope. Every dyadic grid value has an unconditional rational unit-vector completion.

Formal status. Compiled theorem in the default ASPBE import surface; the displayed Lean signature is the authoritative claim.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Every dyadic grid value has an unconditional rational unit-vector completion. The only number-theoretic ingredient is Lagrange's four-square theorem applied to 'gridSize n ^ 2 - j.val ^ 2'.

Declaration kind. theorem.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:2134. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem9.2.1281 theorem
  • theorem QuantumBlockEncoding.CubicDiagonalOracle.linearDiagonalRationalCompletion_exists
      (n : ) :
      QuantumBlockEncoding.CubicDiagonalOracle.LinearDiagonalRationalCompletion
        n
    theorem QuantumBlockEncoding.CubicDiagonalOracle.linearDiagonalRationalCompletion_exists
      (n : ) :
      QuantumBlockEncoding.CubicDiagonalOracle.LinearDiagonalRationalCompletion
        n
    Every dyadic grid value has an unconditional rational unit-vector completion.
    The only number-theoretic ingredient is Lagrange's four-square theorem applied
    to `gridSize n ^ 2 - j.val ^ 2`.
    
Theorem9.2.129
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “linear diagonal rational completion branch data”; the hypotheses and conclusion in the code panel fix its exact scope. Adapter leaf for 'HINT-O0-RATIONAL-COMPLETION': a rational-completion witness also supplies the nontrivial clean-coordinate side condition needed by the Householder block.

Formal status. Compiled theorem in the default ASPBE import surface; the displayed Lean signature is the authoritative claim.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Adapter leaf for 'HINT-O0-RATIONAL-COMPLETION': a rational-completion witness also supplies the nontrivial clean-coordinate side condition needed by the Householder block.

Declaration kind. theorem.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:2156. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem9.2.1291 theorem
  • theorem QuantumBlockEncoding.CubicDiagonalOracle.linearDiagonalRationalCompletion_branchData
      (n : )
      (h :
        QuantumBlockEncoding.CubicDiagonalOracle.LinearDiagonalRationalCompletion
          n) :
       v,
        (∀ (j : Fin (QuantumBlockEncoding.gridSize n)),
            QuantumBlockEncoding.CubicDiagonalOracle.dot8 (v j) (v j) = 1) 
          (∀ (j : Fin (QuantumBlockEncoding.gridSize n)),
              v j QuantumBlockEncoding.CubicDiagonalOracle.householderZero =
                QuantumBlockEncoding.CubicStatePreparation.gridPoint n j) 
             (j : Fin (QuantumBlockEncoding.gridSize n)),
              v j QuantumBlockEncoding.CubicDiagonalOracle.householderZero 
                1
    theorem QuantumBlockEncoding.CubicDiagonalOracle.linearDiagonalRationalCompletion_branchData
      (n : )
      (h :
        QuantumBlockEncoding.CubicDiagonalOracle.LinearDiagonalRationalCompletion
          n) :
       v,
        (∀
            (j :
              Fin
                (QuantumBlockEncoding.gridSize
                  n)),
            QuantumBlockEncoding.CubicDiagonalOracle.dot8
                (v j) (v j) =
              1) 
          (∀
              (j :
                Fin
                  (QuantumBlockEncoding.gridSize
                    n)),
              v j
                  QuantumBlockEncoding.CubicDiagonalOracle.householderZero =
                QuantumBlockEncoding.CubicStatePreparation.gridPoint
                  n j) 
            
              (j :
                Fin
                  (QuantumBlockEncoding.gridSize
                    n)),
              v j
                  QuantumBlockEncoding.CubicDiagonalOracle.householderZero 
                1
    Adapter leaf for `HINT-O0-RATIONAL-COMPLETION`: a rational-completion witness
    also supplies the nontrivial clean-coordinate side condition needed by the
    Householder block.
    
Theorem9.2.130
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “linear diagonal rational completion backend support”; the hypotheses and conclusion in the code panel fix its exact scope. A rational-completion witness supplies the clean-block equality and rational orthogonality facts for the controlled Householder direct sum.

Formal status. Compiled theorem in the default ASPBE import surface; the displayed Lean signature is the authoritative claim.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. A rational-completion witness supplies the clean-block equality and rational orthogonality facts for the controlled Householder direct sum. This still does not package a complete 'LinearDiagonalInputBEContract': cleanup integration, normalizer/resource fields, and a concrete existence theorem are separate proof obligations.

Declaration kind. theorem.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:2176. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem9.2.1301 theorem
  • theorem QuantumBlockEncoding.CubicDiagonalOracle.linearDiagonalRationalCompletion_backendSupport
      (n : )
      (h :
        QuantumBlockEncoding.CubicDiagonalOracle.LinearDiagonalRationalCompletion
          n) :
       v,
        (QuantumBlockEncoding.BlockEncodingClassics.cleanBlockBy
                (QuantumBlockEncoding.CubicDiagonalOracle.controlledHouseholder8Embed
                  n)
                (QuantumBlockEncoding.CubicDiagonalOracle.controlledHouseholder8DirectSum
                  n v)).PointwiseEq
            (QuantumBlockEncoding.CubicDiagonalOracle.linearDiagonalOperator
              n) 
          QuantumBlockEncoding.BlockEncodingClassics.IsRationalOrthogonal
            (QuantumBlockEncoding.CubicDiagonalOracle.controlledHouseholder8DirectSum
              n v)
    theorem QuantumBlockEncoding.CubicDiagonalOracle.linearDiagonalRationalCompletion_backendSupport
      (n : )
      (h :
        QuantumBlockEncoding.CubicDiagonalOracle.LinearDiagonalRationalCompletion
          n) :
       v,
        (QuantumBlockEncoding.BlockEncodingClassics.cleanBlockBy
                (QuantumBlockEncoding.CubicDiagonalOracle.controlledHouseholder8Embed
                  n)
                (QuantumBlockEncoding.CubicDiagonalOracle.controlledHouseholder8DirectSum
                  n v)).PointwiseEq
            (QuantumBlockEncoding.CubicDiagonalOracle.linearDiagonalOperator
              n) 
          QuantumBlockEncoding.BlockEncodingClassics.IsRationalOrthogonal
            (QuantumBlockEncoding.CubicDiagonalOracle.controlledHouseholder8DirectSum
              n v)
    A rational-completion witness supplies the clean-block equality and rational
    orthogonality facts for the controlled Householder direct sum.
    
    This still does not package a complete `LinearDiagonalInputBEContract`: cleanup
    integration, normalizer/resource fields, and a concrete existence theorem are
    separate proof obligations.
    
Definition9.2.131
uses 0used by 0L∃∀N

Plain-English reading. This definition gives the library's named construction or computation for “linear diagonal householder circuit”. Oracle-label circuit for the proved rational Householder realization of 'O_0'.

Formal status. Compiled declaration in the default ASPBE import surface; its kind and displayed Lean type determine how it may be used.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Oracle-label circuit for the proved rational Householder realization of 'O_0'.

Declaration kind. def.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:2198. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Definition9.2.1311 definition
  • def QuantumBlockEncoding.CubicDiagonalOracle.linearDiagonalHouseholderCircuit
      (_n : ) : QuantumBlockEncoding.Circuit
    def QuantumBlockEncoding.CubicDiagonalOracle.linearDiagonalHouseholderCircuit
      (_n : ) : QuantumBlockEncoding.Circuit
    Oracle-label circuit for the proved rational Householder realization of `O_0`. 
Definition9.2.132
uses 0used by 0L∃∀N

Plain-English reading. This definition gives the library's named construction or computation for “linear diagonal householder resource”.

Formal status. Compiled declaration in the default ASPBE import surface; its kind and displayed Lean type determine how it may be used.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. The source declaration has no docstring. The reader cue above is generated from its kind and name and does not replace the Lean signature.

Declaration kind. def.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:2201. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Definition9.2.1321 definition
  • def QuantumBlockEncoding.CubicDiagonalOracle.linearDiagonalHouseholderResource
      (n : ) : QuantumBlockEncoding.Resource
    def QuantumBlockEncoding.CubicDiagonalOracle.linearDiagonalHouseholderResource
      (n : ) : QuantumBlockEncoding.Resource
Theorem9.2.133
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “linear diagonal householder resource eq”; the hypotheses and conclusion in the code panel fix its exact scope.

Formal status. Compiled theorem in the default ASPBE import surface; the displayed Lean signature is the authoritative claim.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. The source declaration has no docstring. The reader cue above is generated from its kind and name and does not replace the Lean signature.

Declaration kind. theorem.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:2204. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem9.2.1331 theorem
  • theorem QuantumBlockEncoding.CubicDiagonalOracle.linearDiagonalHouseholderResource_eq
      (n : ) :
      QuantumBlockEncoding.CubicDiagonalOracle.linearDiagonalHouseholderResource
          n =
        QuantumBlockEncoding.Resource.ofCountsWithDepth 0 0 1 0 1
    theorem QuantumBlockEncoding.CubicDiagonalOracle.linearDiagonalHouseholderResource_eq
      (n : ) :
      QuantumBlockEncoding.CubicDiagonalOracle.linearDiagonalHouseholderResource
          n =
        QuantumBlockEncoding.Resource.ofCountsWithDepth
          0 0 1 0 1
Definition9.2.134
uses 0used by 0L∃∀N

Plain-English reading. This definition gives the library's named construction or computation for “linear diagonal householder input be contract”. Unconditional exact matrix-level block encoding of the hinted input 'O_0'.

Formal status. Compiled declaration in the default ASPBE import surface; its kind and displayed Lean type determine how it may be used.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Unconditional exact matrix-level block encoding of the hinted input 'O_0'. Unlike the earlier interface-only payload, this certificate contains the concrete controlled Householder matrix, its rational orthogonality theorem, the clean-block theorem, the exact normalizer, and an auditable oracle-label resource equality.

Declaration kind. def.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:2217. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Definition9.2.1341 definition
  • def QuantumBlockEncoding.CubicDiagonalOracle.linearDiagonalHouseholderInputBEContract
      (n : ) :
      QuantumBlockEncoding.CubicDiagonalOracle.LinearDiagonalInputBEContract
        n (8 * QuantumBlockEncoding.gridSize n)
    def QuantumBlockEncoding.CubicDiagonalOracle.linearDiagonalHouseholderInputBEContract
      (n : ) :
      QuantumBlockEncoding.CubicDiagonalOracle.LinearDiagonalInputBEContract
        n
        (8 * QuantumBlockEncoding.gridSize n)
    Unconditional exact matrix-level block encoding of the hinted input `O_0`.
    
    Unlike the earlier interface-only payload, this certificate contains the
    concrete controlled Householder matrix, its rational orthogonality theorem,
    the clean-block theorem, the exact normalizer, and an auditable oracle-label
    resource equality.
    
Theorem9.2.135
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “linear diagonal householder input be contract clean eq target”; the hypotheses and conclusion in the code panel fix its exact scope.

Formal status. Compiled theorem in the default ASPBE import surface; the displayed Lean signature is the authoritative claim.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. The source declaration has no docstring. The reader cue above is generated from its kind and name and does not replace the Lean signature.

Declaration kind. theorem.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:2248. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem9.2.1351 theorem
  • theorem QuantumBlockEncoding.CubicDiagonalOracle.linearDiagonalHouseholderInputBEContract_clean_eq_target
      (n : ) :
      (QuantumBlockEncoding.CubicDiagonalOracle.linearDiagonalHouseholderInputBEContract
                n).exactPayload.clean.PointwiseEq
        (QuantumBlockEncoding.CubicDiagonalOracle.linearDiagonalTarget
            n).operator
    theorem QuantumBlockEncoding.CubicDiagonalOracle.linearDiagonalHouseholderInputBEContract_clean_eq_target
      (n : ) :
      (QuantumBlockEncoding.CubicDiagonalOracle.linearDiagonalHouseholderInputBEContract
                n).exactPayload.clean.PointwiseEq
        (QuantumBlockEncoding.CubicDiagonalOracle.linearDiagonalTarget
            n).operator
Theorem9.2.136
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “linear diagonal householder input be contract complete”; the hypotheses and conclusion in the code panel fix its exact scope. Root certificate for the hinted input operator 'O_0'.

Formal status. Compiled theorem in the default ASPBE import surface; the displayed Lean signature is the authoritative claim.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Root certificate for the hinted input operator 'O_0'. This theorem exposes all matrix-level facts needed by a downstream polynomial consumer in one place, so the harness does not reopen the four-square, Householder, cleanup, normalizer, or resource leaves after they have compiled.

Declaration kind. theorem.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:2261. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem9.2.1361 theorem
  • theorem QuantumBlockEncoding.CubicDiagonalOracle.linearDiagonalHouseholderInputBEContract_complete
      (n : ) :
      QuantumBlockEncoding.BlockEncodingClassics.IsRationalOrthogonal
          (QuantumBlockEncoding.CubicDiagonalOracle.linearDiagonalHouseholderInputBEContract
              n).U 
        (QuantumBlockEncoding.BlockEncodingClassics.cleanBlockBy
                (QuantumBlockEncoding.CubicDiagonalOracle.linearDiagonalHouseholderInputBEContract
                    n).embed
                (QuantumBlockEncoding.CubicDiagonalOracle.linearDiagonalHouseholderInputBEContract
                    n).U).PointwiseEq
            (QuantumBlockEncoding.CubicDiagonalOracle.linearDiagonalTarget
                n).operator 
          (QuantumBlockEncoding.CubicDiagonalOracle.linearDiagonalTarget
                  n).normalizer =
              1 
            (QuantumBlockEncoding.CubicDiagonalOracle.linearDiagonalHouseholderInputBEContract
                  n).resource =
              QuantumBlockEncoding.Resource.ofCountsWithDepth 0 0 1 0 1
    theorem QuantumBlockEncoding.CubicDiagonalOracle.linearDiagonalHouseholderInputBEContract_complete
      (n : ) :
      QuantumBlockEncoding.BlockEncodingClassics.IsRationalOrthogonal
          (QuantumBlockEncoding.CubicDiagonalOracle.linearDiagonalHouseholderInputBEContract
              n).U 
        (QuantumBlockEncoding.BlockEncodingClassics.cleanBlockBy
                (QuantumBlockEncoding.CubicDiagonalOracle.linearDiagonalHouseholderInputBEContract
                    n).embed
                (QuantumBlockEncoding.CubicDiagonalOracle.linearDiagonalHouseholderInputBEContract
                    n).U).PointwiseEq
            (QuantumBlockEncoding.CubicDiagonalOracle.linearDiagonalTarget
                n).operator 
          (QuantumBlockEncoding.CubicDiagonalOracle.linearDiagonalTarget
                  n).normalizer =
              1 
            (QuantumBlockEncoding.CubicDiagonalOracle.linearDiagonalHouseholderInputBEContract
                  n).resource =
              QuantumBlockEncoding.Resource.ofCountsWithDepth
                0 0 1 0 1
    Root certificate for the hinted input operator `O_0`.  This theorem exposes
    all matrix-level facts needed by a downstream polynomial consumer in one
    place, so the harness does not reopen the four-square, Householder, cleanup,
    normalizer, or resource leaves after they have compiled.
    
Definition9.2.137
uses 0used by 0L∃∀N

Plain-English reading. This definition gives the library's named construction or computation for “approx diagonal operator”. Supplied diagonal matrix for the first Scenario 2 approximate route.

Formal status. Compiled declaration in the default ASPBE import surface; its kind and displayed Lean type determine how it may be used.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Supplied diagonal matrix for the first Scenario 2 approximate route. The function 'q' is only a proposed rational diagonal value. Approximation to the cubic target and the operator-norm bridge remain separate obligations.

Declaration kind. def.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:2284. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Definition9.2.1371 definition
  • def QuantumBlockEncoding.CubicDiagonalOracle.approxDiagonalOperator (n : )
      (q : Fin (QuantumBlockEncoding.gridSize n)  ) :
      QuantumBlockEncoding.Matrix (QuantumBlockEncoding.gridSize n)
        (QuantumBlockEncoding.gridSize n) 
    def QuantumBlockEncoding.CubicDiagonalOracle.approxDiagonalOperator
      (n : )
      (q :
        Fin
            (QuantumBlockEncoding.gridSize
              n) 
          ) :
      QuantumBlockEncoding.Matrix
        (QuantumBlockEncoding.gridSize n)
        (QuantumBlockEncoding.gridSize n) 
    Supplied diagonal matrix for the first Scenario 2 approximate route.
    
    The function `q` is only a proposed rational diagonal value.  Approximation to
    the cubic target and the operator-norm bridge remain separate obligations.
    
Definition9.2.138
uses 0used by 0L∃∀N

Plain-English reading. This definition gives the library's named construction or computation for “rat abs”. Task-local rational absolute value used before a project norm API exists.

Formal status. Compiled declaration in the default ASPBE import surface; its kind and displayed Lean type determine how it may be used.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Task-local rational absolute value used before a project norm API exists.

Declaration kind. def.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:2289. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Definition9.2.1381 definition
  • def QuantumBlockEncoding.CubicDiagonalOracle.ratAbs (x : ) : 
    def QuantumBlockEncoding.CubicDiagonalOracle.ratAbs
      (x : ) : 
    Task-local rational absolute value used before a project norm API exists. 
Definition9.2.139
uses 0used by 0L∃∀N

Plain-English reading. This definition gives the library's named construction or computation for “is diagonal rat matrix”. Project-local rational matrices whose off-diagonal entries are zero.

Formal status. Compiled declaration in the default ASPBE import surface; its kind and displayed Lean type determine how it may be used.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Project-local rational matrices whose off-diagonal entries are zero.

Declaration kind. def.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:2292. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Definition9.2.1391 definition
  • def QuantumBlockEncoding.CubicDiagonalOracle.IsDiagonalRatMatrix (dim : )
      (A : QuantumBlockEncoding.Matrix dim dim ) : Prop
    def QuantumBlockEncoding.CubicDiagonalOracle.IsDiagonalRatMatrix
      (dim : )
      (A :
        QuantumBlockEncoding.Matrix dim dim
          ) :
      Prop
    Project-local rational matrices whose off-diagonal entries are zero. 
Definition9.2.140
uses 0used by 0L∃∀N

Plain-English reading. This record groups the data and proof fields needed for “diagonal rat operator norm bridge”. A proposition-valued field is a requirement until a constructor supplies it. Typed contract for the missing rational-matrix operator-norm bridge.

Formal status. Data contract in the default import surface; proposition-valued fields are obligations, not automatically established facts.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Typed contract for the missing rational-matrix operator-norm bridge. This structure is deliberately conditional: it does not assert that the bridge is already available in this repository. A future Mathlib-backed proof or a human-accepted external contract must supply this record before an approximate block-encoding certificate may consume the norm bound.

Declaration kind. structure.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:2303. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Definition9.2.1401 definition
  • complete
    structure QuantumBlockEncoding.CubicDiagonalOracle.DiagonalRatOperatorNormBridge
      (dim : ) : Type
    structure QuantumBlockEncoding.CubicDiagonalOracle.DiagonalRatOperatorNormBridge
      (dim : ) : Type
    Typed contract for the missing rational-matrix operator-norm bridge.
    
    This structure is deliberately conditional: it does not assert that the bridge
    is already available in this repository.  A future Mathlib-backed proof or a
    human-accepted external contract must supply this record before an approximate
    block-encoding certificate may consume the norm bound.
    

    Fields

    opNormErrorAtMost : QuantumBlockEncoding.Matrix dim dim   QuantumBlockEncoding.Matrix dim dim     Prop
    diagonal_entrywise_error_operatorNorm_le :  (A B : QuantumBlockEncoding.Matrix dim dim ) (epsilon : ),
      QuantumBlockEncoding.CubicDiagonalOracle.IsDiagonalRatMatrix dim A 
        QuantumBlockEncoding.CubicDiagonalOracle.IsDiagonalRatMatrix dim B 
          0  epsilon 
            (∀ (j : Fin dim), QuantumBlockEncoding.CubicDiagonalOracle.ratAbs (A j j - B j j)  epsilon) 
              self.opNormErrorAtMost A B epsilon
Definition9.2.141
uses 0used by 0L∃∀N

Plain-English reading. This definition gives the library's named construction or computation for “rat squared euclidean norm”. Squared Euclidean norm on project-local finite rational vectors.

Formal status. Compiled declaration in the default ASPBE import surface; its kind and displayed Lean type determine how it may be used.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Squared Euclidean norm on project-local finite rational vectors.

Declaration kind. def.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:2314. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Definition9.2.1411 definition
  • def QuantumBlockEncoding.CubicDiagonalOracle.ratSquaredEuclideanNorm
      {dim : } (v : Fin dim  ) : 
    def QuantumBlockEncoding.CubicDiagonalOracle.ratSquaredEuclideanNorm
      {dim : } (v : Fin dim  ) : 
    Squared Euclidean norm on project-local finite rational vectors. 
Definition9.2.142
uses 0used by 0L∃∀N

Plain-English reading. This definition gives the library's named construction or computation for “rat matrix error action”. Action of the matrix error 'A - B' on a finite rational vector.

Formal status. Compiled declaration in the default ASPBE import surface; its kind and displayed Lean type determine how it may be used.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Action of the matrix error 'A - B' on a finite rational vector.

Declaration kind. def.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:2318. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Definition9.2.1421 definition
  • def QuantumBlockEncoding.CubicDiagonalOracle.ratMatrixErrorAction {dim : }
      (A B : QuantumBlockEncoding.Matrix dim dim ) (v : Fin dim  ) :
      Fin dim  
    def QuantumBlockEncoding.CubicDiagonalOracle.ratMatrixErrorAction
      {dim : }
      (A B :
        QuantumBlockEncoding.Matrix dim dim )
      (v : Fin dim  ) : Fin dim  
    Action of the matrix error `A - B` on a finite rational vector. 
Definition9.2.143
uses 0used by 0L∃∀N

Plain-English reading. This definition gives the library's named construction or computation for “rat euclidean operator norm error at most”. Non-vacuous squared Euclidean induced operator-norm error semantics.

Formal status. Compiled declaration in the default ASPBE import surface; its kind and displayed Lean type determine how it may be used.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Non-vacuous squared Euclidean induced operator-norm error semantics. For nonnegative 'epsilon', this states '||(A-B)v||₂² ≤ ||epsilon v||₂²' for every rational vector 'v'. Squared norms avoid introducing square roots while retaining the finite-dimensional Euclidean operator-norm statement.

Declaration kind. def.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:2331. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Definition9.2.1431 definition
  • def QuantumBlockEncoding.CubicDiagonalOracle.ratEuclideanOperatorNormErrorAtMost
      {dim : } (A B : QuantumBlockEncoding.Matrix dim dim )
      (epsilon : ) : Prop
    def QuantumBlockEncoding.CubicDiagonalOracle.ratEuclideanOperatorNormErrorAtMost
      {dim : }
      (A B :
        QuantumBlockEncoding.Matrix dim dim )
      (epsilon : ) : Prop
    Non-vacuous squared Euclidean induced operator-norm error semantics.
    
    For nonnegative `epsilon`, this states `||(A-B)v||₂² ≤ ||epsilon v||₂²`
    for every rational vector `v`.  Squared norms avoid introducing square roots
    while retaining the finite-dimensional Euclidean operator-norm statement.
    
Theorem9.2.144
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “rat matrix error action eq diagonal”; the hypotheses and conclusion in the code panel fix its exact scope.

Formal status. Compiled theorem in the default ASPBE import surface; the displayed Lean signature is the authoritative claim.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. The source declaration has no docstring. The reader cue above is generated from its kind and name and does not replace the Lean signature.

Declaration kind. theorem.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:2453. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem9.2.1441 theorem
  • theorem QuantumBlockEncoding.CubicDiagonalOracle.ratMatrixErrorAction_eq_diagonal
      {dim : } (A B : QuantumBlockEncoding.Matrix dim dim )
      (v : Fin dim  ) (row : Fin dim)
      (hA :
        QuantumBlockEncoding.CubicDiagonalOracle.IsDiagonalRatMatrix dim A)
      (hB :
        QuantumBlockEncoding.CubicDiagonalOracle.IsDiagonalRatMatrix dim
          B) :
      QuantumBlockEncoding.CubicDiagonalOracle.ratMatrixErrorAction A B v
          row =
        (A row row - B row row) * v row
    theorem QuantumBlockEncoding.CubicDiagonalOracle.ratMatrixErrorAction_eq_diagonal
      {dim : }
      (A B :
        QuantumBlockEncoding.Matrix dim dim )
      (v : Fin dim  ) (row : Fin dim)
      (hA :
        QuantumBlockEncoding.CubicDiagonalOracle.IsDiagonalRatMatrix
          dim A)
      (hB :
        QuantumBlockEncoding.CubicDiagonalOracle.IsDiagonalRatMatrix
          dim B) :
      QuantumBlockEncoding.CubicDiagonalOracle.ratMatrixErrorAction
          A B v row =
        (A row row - B row row) * v row
Theorem9.2.145
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “rat abs nonneg”; the hypotheses and conclusion in the code panel fix its exact scope.

Formal status. Compiled theorem in the default ASPBE import surface; the displayed Lean signature is the authoritative claim.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. The source declaration has no docstring. The reader cue above is generated from its kind and name and does not replace the Lean signature.

Declaration kind. theorem.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:2468. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem9.2.1451 theorem
  • theorem QuantumBlockEncoding.CubicDiagonalOracle.ratAbs_nonneg (x : ) :
      0  QuantumBlockEncoding.CubicDiagonalOracle.ratAbs x
    theorem QuantumBlockEncoding.CubicDiagonalOracle.ratAbs_nonneg
      (x : ) :
      0 
        QuantumBlockEncoding.CubicDiagonalOracle.ratAbs
          x
Theorem9.2.146
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “rat mul self eq rat abs mul self”; the hypotheses and conclusion in the code panel fix its exact scope.

Formal status. Compiled theorem in the default ASPBE import surface; the displayed Lean signature is the authoritative claim.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. The source declaration has no docstring. The reader cue above is generated from its kind and name and does not replace the Lean signature.

Declaration kind. theorem.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:2472. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem9.2.1461 theorem
  • theorem QuantumBlockEncoding.CubicDiagonalOracle.rat_mul_self_eq_ratAbs_mul_self
      (x : ) :
      x * x =
        QuantumBlockEncoding.CubicDiagonalOracle.ratAbs x *
          QuantumBlockEncoding.CubicDiagonalOracle.ratAbs x
    theorem QuantumBlockEncoding.CubicDiagonalOracle.rat_mul_self_eq_ratAbs_mul_self
      (x : ) :
      x * x =
        QuantumBlockEncoding.CubicDiagonalOracle.ratAbs
            x *
          QuantumBlockEncoding.CubicDiagonalOracle.ratAbs
            x
Theorem9.2.147
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “rat mul self nonneg”; the hypotheses and conclusion in the code panel fix its exact scope.

Formal status. Compiled theorem in the default ASPBE import surface; the displayed Lean signature is the authoritative claim.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. The source declaration has no docstring. The reader cue above is generated from its kind and name and does not replace the Lean signature.

Declaration kind. theorem.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:2477. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem9.2.1471 theorem
  • theorem QuantumBlockEncoding.CubicDiagonalOracle.rat_mul_self_nonneg (x : ) :
      0  x * x
    theorem QuantumBlockEncoding.CubicDiagonalOracle.rat_mul_self_nonneg
      (x : ) : 0  x * x
Theorem9.2.148
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “rat mul self le of abs le”; the hypotheses and conclusion in the code panel fix its exact scope.

Formal status. Compiled theorem in the default ASPBE import surface; the displayed Lean signature is the authoritative claim.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. The source declaration has no docstring. The reader cue above is generated from its kind and name and does not replace the Lean signature.

Declaration kind. theorem.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:2481. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem9.2.1481 theorem
  • theorem QuantumBlockEncoding.CubicDiagonalOracle.rat_mul_self_le_of_abs_le
      (x epsilon : ) (hepsilon : 0  epsilon)
      (habs : QuantumBlockEncoding.CubicDiagonalOracle.ratAbs x  epsilon) :
      x * x  epsilon * epsilon
    theorem QuantumBlockEncoding.CubicDiagonalOracle.rat_mul_self_le_of_abs_le
      (x epsilon : ) (hepsilon : 0  epsilon)
      (habs :
        QuantumBlockEncoding.CubicDiagonalOracle.ratAbs
            x 
          epsilon) :
      x * x  epsilon * epsilon
Theorem9.2.149
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “rat mul self vector le of abs le”; the hypotheses and conclusion in the code panel fix its exact scope.

Formal status. Compiled theorem in the default ASPBE import surface; the displayed Lean signature is the authoritative claim.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. The source declaration has no docstring. The reader cue above is generated from its kind and name and does not replace the Lean signature.

Declaration kind. theorem.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:2499. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem9.2.1491 theorem
  • theorem QuantumBlockEncoding.CubicDiagonalOracle.rat_mul_self_vector_le_of_abs_le
      (x epsilon value : ) (hepsilon : 0  epsilon)
      (habs : QuantumBlockEncoding.CubicDiagonalOracle.ratAbs x  epsilon) :
      x * value * (x * value)  epsilon * value * (epsilon * value)
    theorem QuantumBlockEncoding.CubicDiagonalOracle.rat_mul_self_vector_le_of_abs_le
      (x epsilon value : )
      (hepsilon : 0  epsilon)
      (habs :
        QuantumBlockEncoding.CubicDiagonalOracle.ratAbs
            x 
          epsilon) :
      x * value * (x * value) 
        epsilon * value * (epsilon * value)
Definition9.2.150
uses 0used by 0L∃∀N

Plain-English reading. This definition gives the library's named construction or computation for “rat euclidean diagonal operator norm bridge”. Concrete proof that diagonal entrywise bounds imply the squared Euclidean bound.

Formal status. Compiled declaration in the default ASPBE import surface; its kind and displayed Lean type determine how it may be used.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Concrete proof that diagonal entrywise bounds imply the squared Euclidean bound.

Declaration kind. def.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:2509. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Definition9.2.1501 definition
  • def QuantumBlockEncoding.CubicDiagonalOracle.ratEuclideanDiagonalOperatorNormBridge
      (dim : ) :
      QuantumBlockEncoding.CubicDiagonalOracle.DiagonalRatOperatorNormBridge
        dim
    def QuantumBlockEncoding.CubicDiagonalOracle.ratEuclideanDiagonalOperatorNormBridge
      (dim : ) :
      QuantumBlockEncoding.CubicDiagonalOracle.DiagonalRatOperatorNormBridge
        dim
    Concrete proof that diagonal entrywise bounds imply the squared Euclidean bound. 
Theorem9.2.151
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “rat euclidean operator norm error at most not vacuous”; the hypotheses and conclusion in the code panel fix its exact scope. The local Euclidean error predicate is observably non-vacuous.

Formal status. Compiled theorem in the default ASPBE import surface; the displayed Lean signature is the authoritative claim.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. The local Euclidean error predicate is observably non-vacuous.

Declaration kind. theorem.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:2525. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem9.2.1511 theorem
  • theorem QuantumBlockEncoding.CubicDiagonalOracle.ratEuclideanOperatorNormErrorAtMost_not_vacuous :
      ¬QuantumBlockEncoding.CubicDiagonalOracle.ratEuclideanOperatorNormErrorAtMost
          (QuantumBlockEncoding.Matrix.identity 1 )
          (QuantumBlockEncoding.Matrix.zero 1 1 ) 0
    theorem QuantumBlockEncoding.CubicDiagonalOracle.ratEuclideanOperatorNormErrorAtMost_not_vacuous :
      ¬QuantumBlockEncoding.CubicDiagonalOracle.ratEuclideanOperatorNormErrorAtMost
          (QuantumBlockEncoding.Matrix.identity
            1 )
          (QuantumBlockEncoding.Matrix.zero 1
            1 )
          0
    The local Euclidean error predicate is observably non-vacuous. 
Theorem9.2.152
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “approx diagonal operator is diagonal”; the hypotheses and conclusion in the code panel fix its exact scope. The supplied approximate diagonal matrix has zero off-diagonal entries.

Formal status. Compiled theorem in the default ASPBE import surface; the displayed Lean signature is the authoritative claim.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. The supplied approximate diagonal matrix has zero off-diagonal entries.

Declaration kind. theorem.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:2539. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem9.2.1521 theorem
  • theorem QuantumBlockEncoding.CubicDiagonalOracle.approxDiagonalOperator_isDiagonal
      (n : ) (q : Fin (QuantumBlockEncoding.gridSize n)  ) :
      QuantumBlockEncoding.CubicDiagonalOracle.IsDiagonalRatMatrix
        (QuantumBlockEncoding.gridSize n)
        (QuantumBlockEncoding.CubicDiagonalOracle.approxDiagonalOperator n
          q)
    theorem QuantumBlockEncoding.CubicDiagonalOracle.approxDiagonalOperator_isDiagonal
      (n : )
      (q :
        Fin
            (QuantumBlockEncoding.gridSize
              n) 
          ) :
      QuantumBlockEncoding.CubicDiagonalOracle.IsDiagonalRatMatrix
        (QuantumBlockEncoding.gridSize n)
        (QuantumBlockEncoding.CubicDiagonalOracle.approxDiagonalOperator
          n q)
    The supplied approximate diagonal matrix has zero off-diagonal entries. 
Theorem9.2.153
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “cubic diagonal operator is diagonal”; the hypotheses and conclusion in the code panel fix its exact scope. The exact cubic diagonal target has zero off-diagonal entries.

Formal status. Compiled theorem in the default ASPBE import surface; the displayed Lean signature is the authoritative claim.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. The exact cubic diagonal target has zero off-diagonal entries.

Declaration kind. theorem.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:2546. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem9.2.1531 theorem
  • theorem QuantumBlockEncoding.CubicDiagonalOracle.cubicDiagonalOperator_isDiagonal
      (n : ) :
      QuantumBlockEncoding.CubicDiagonalOracle.IsDiagonalRatMatrix
        (QuantumBlockEncoding.gridSize n)
        (QuantumBlockEncoding.CubicDiagonalOracle.cubicDiagonalOperator n)
    theorem QuantumBlockEncoding.CubicDiagonalOracle.cubicDiagonalOperator_isDiagonal
      (n : ) :
      QuantumBlockEncoding.CubicDiagonalOracle.IsDiagonalRatMatrix
        (QuantumBlockEncoding.gridSize n)
        (QuantumBlockEncoding.CubicDiagonalOracle.cubicDiagonalOperator
          n)
    The exact cubic diagonal target has zero off-diagonal entries. 
Definition9.2.154
uses 0used by 0L∃∀N

Plain-English reading. This definition gives the library's named construction or computation for “approx diagonal entrywise error at most”. Entrywise scalar-error predicate for the Scenario 2 approximate diagonal route.

Formal status. Compiled declaration in the default ASPBE import surface; its kind and displayed Lean type determine how it may be used.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Entrywise scalar-error predicate for the Scenario 2 approximate diagonal route. This is strictly weaker than the open operator-norm bridge: it says only that each supplied diagonal value 'q j' is close to the target cubic amplitude.

Declaration kind. def.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:2558. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Definition9.2.1541 definition
  • def QuantumBlockEncoding.CubicDiagonalOracle.approxDiagonalEntrywiseErrorAtMost
      (n : ) (q : Fin (QuantumBlockEncoding.gridSize n)  )
      (epsilon : ) : Prop
    def QuantumBlockEncoding.CubicDiagonalOracle.approxDiagonalEntrywiseErrorAtMost
      (n : )
      (q :
        Fin
            (QuantumBlockEncoding.gridSize
              n) 
          )
      (epsilon : ) : Prop
    Entrywise scalar-error predicate for the Scenario 2 approximate diagonal route.
    
    This is strictly weaker than the open operator-norm bridge: it says only that
    each supplied diagonal value `q j` is close to the target cubic amplitude.
    
Theorem9.2.155
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “approx diagonal operator entrywise error”; the hypotheses and conclusion in the code panel fix its exact scope. Local entrywise bridge for 'APPROX-DIAG-NORM': diagonal scalar errors transfer to every matrix entry of the supplied diagonal operator.

Formal status. Compiled theorem in the default ASPBE import surface; the displayed Lean signature is the authoritative claim.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Local entrywise bridge for 'APPROX-DIAG-NORM': diagonal scalar errors transfer to every matrix entry of the supplied diagonal operator. This does not prove an operator-norm bound; it is the reusable finite-matrix side of the still-open diagonal norm obligation.

Declaration kind. theorem.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:2570. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem9.2.1551 theorem
  • theorem QuantumBlockEncoding.CubicDiagonalOracle.approxDiagonalOperator_entrywise_error
      (n : ) (q : Fin (QuantumBlockEncoding.gridSize n)  ) (epsilon : )
      (hdiag :
        QuantumBlockEncoding.CubicDiagonalOracle.approxDiagonalEntrywiseErrorAtMost
          n q epsilon)
      (hepsilon : 0  epsilon)
      (row col : Fin (QuantumBlockEncoding.gridSize n)) :
      QuantumBlockEncoding.CubicDiagonalOracle.ratAbs
          (QuantumBlockEncoding.CubicDiagonalOracle.approxDiagonalOperator n
              q row col -
            QuantumBlockEncoding.CubicDiagonalOracle.cubicDiagonalOperator n
              row col) 
        epsilon
    theorem QuantumBlockEncoding.CubicDiagonalOracle.approxDiagonalOperator_entrywise_error
      (n : )
      (q :
        Fin
            (QuantumBlockEncoding.gridSize
              n) 
          )
      (epsilon : )
      (hdiag :
        QuantumBlockEncoding.CubicDiagonalOracle.approxDiagonalEntrywiseErrorAtMost
          n q epsilon)
      (hepsilon : 0  epsilon)
      (row col :
        Fin
          (QuantumBlockEncoding.gridSize n)) :
      QuantumBlockEncoding.CubicDiagonalOracle.ratAbs
          (QuantumBlockEncoding.CubicDiagonalOracle.approxDiagonalOperator
              n q row col -
            QuantumBlockEncoding.CubicDiagonalOracle.cubicDiagonalOperator
              n row col) 
        epsilon
    Local entrywise bridge for `APPROX-DIAG-NORM`: diagonal scalar errors transfer
    to every matrix entry of the supplied diagonal operator.
    
    This does not prove an operator-norm bound; it is the reusable finite-matrix
    side of the still-open diagonal norm obligation.
    
Theorem9.2.156
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “approx diagonal operator operator norm error of contract”; the hypotheses and conclusion in the code panel fix its exact scope. Conditional adapter from the compiled diagonal entrywise theorem to the task-local operator-norm contract.

Formal status. Compiled theorem in the default ASPBE import surface; the displayed Lean signature is the authoritative claim.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Conditional adapter from the compiled diagonal entrywise theorem to the task-local operator-norm contract. This theorem is the narrow QBE-side consumer promised by the proof DAG. It does not close 'DIAGONAL-ENTRYWISE-ERROR-OPNORM' unconditionally; the supplied 'bridge' remains the explicit external/classical obligation.

Declaration kind. theorem.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:2597. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem9.2.1561 theorem
  • theorem QuantumBlockEncoding.CubicDiagonalOracle.approxDiagonalOperator_operatorNorm_error_of_contract
      (n : ) (q : Fin (QuantumBlockEncoding.gridSize n)  ) (epsilon : )
      (bridge :
        QuantumBlockEncoding.CubicDiagonalOracle.DiagonalRatOperatorNormBridge
          (QuantumBlockEncoding.gridSize n))
      (hdiag :
        QuantumBlockEncoding.CubicDiagonalOracle.approxDiagonalEntrywiseErrorAtMost
          n q epsilon)
      (hepsilon : 0  epsilon) :
      bridge.opNormErrorAtMost
        (QuantumBlockEncoding.CubicDiagonalOracle.approxDiagonalOperator n
          q)
        (QuantumBlockEncoding.CubicDiagonalOracle.cubicDiagonalOperator n)
        epsilon
    theorem QuantumBlockEncoding.CubicDiagonalOracle.approxDiagonalOperator_operatorNorm_error_of_contract
      (n : )
      (q :
        Fin
            (QuantumBlockEncoding.gridSize
              n) 
          )
      (epsilon : )
      (bridge :
        QuantumBlockEncoding.CubicDiagonalOracle.DiagonalRatOperatorNormBridge
          (QuantumBlockEncoding.gridSize n))
      (hdiag :
        QuantumBlockEncoding.CubicDiagonalOracle.approxDiagonalEntrywiseErrorAtMost
          n q epsilon)
      (hepsilon : 0  epsilon) :
      bridge.opNormErrorAtMost
        (QuantumBlockEncoding.CubicDiagonalOracle.approxDiagonalOperator
          n q)
        (QuantumBlockEncoding.CubicDiagonalOracle.cubicDiagonalOperator
          n)
        epsilon
    Conditional adapter from the compiled diagonal entrywise theorem to the
    task-local operator-norm contract.
    
    This theorem is the narrow QBE-side consumer promised by the proof DAG.  It
    does not close `DIAGONAL-ENTRYWISE-ERROR-OPNORM` unconditionally; the supplied
    `bridge` remains the explicit external/classical obligation.
    
Theorem9.2.157
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “approx diagonal operator operator norm error”; the hypotheses and conclusion in the code panel fix its exact scope. Unconditional local Euclidean operator-norm bound for the supplied diagonal approximation.

Formal status. Compiled theorem in the default ASPBE import surface; the displayed Lean signature is the authoritative claim.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Unconditional local Euclidean operator-norm bound for the supplied diagonal approximation. This closes the former external bridge gap using the concrete finite rational semantics above.

Declaration kind. theorem.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:2619. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem9.2.1571 theorem
  • theorem QuantumBlockEncoding.CubicDiagonalOracle.approxDiagonalOperator_operatorNorm_error
      (n : ) (q : Fin (QuantumBlockEncoding.gridSize n)  ) (epsilon : )
      (hdiag :
        QuantumBlockEncoding.CubicDiagonalOracle.approxDiagonalEntrywiseErrorAtMost
          n q epsilon)
      (hepsilon : 0  epsilon) :
      QuantumBlockEncoding.CubicDiagonalOracle.ratEuclideanOperatorNormErrorAtMost
        (QuantumBlockEncoding.CubicDiagonalOracle.approxDiagonalOperator n
          q)
        (QuantumBlockEncoding.CubicDiagonalOracle.cubicDiagonalOperator n)
        epsilon
    theorem QuantumBlockEncoding.CubicDiagonalOracle.approxDiagonalOperator_operatorNorm_error
      (n : )
      (q :
        Fin
            (QuantumBlockEncoding.gridSize
              n) 
          )
      (epsilon : )
      (hdiag :
        QuantumBlockEncoding.CubicDiagonalOracle.approxDiagonalEntrywiseErrorAtMost
          n q epsilon)
      (hepsilon : 0  epsilon) :
      QuantumBlockEncoding.CubicDiagonalOracle.ratEuclideanOperatorNormErrorAtMost
        (QuantumBlockEncoding.CubicDiagonalOracle.approxDiagonalOperator
          n q)
        (QuantumBlockEncoding.CubicDiagonalOracle.cubicDiagonalOperator
          n)
        epsilon
    Unconditional local Euclidean operator-norm bound for the supplied diagonal
    approximation.  This closes the former external bridge gap using the concrete
    finite rational semantics above.
    
Definition9.2.158
uses 0used by 0L∃∀N

Plain-English reading. This definition gives the library's named construction or computation for “rational circle branch vector”. Two-coordinate rational unit-circle branch vector for the approximate controlled-Householder route.

Formal status. Compiled declaration in the default ASPBE import surface; its kind and displayed Lean type determine how it may be used.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Two-coordinate rational unit-circle branch vector for the approximate controlled-Householder route.

Declaration kind. def.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:2635. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Definition9.2.1581 definition
  • def QuantumBlockEncoding.CubicDiagonalOracle.rationalCircleBranchVector
      (q r : ) : Fin 8  
    def QuantumBlockEncoding.CubicDiagonalOracle.rationalCircleBranchVector
      (q r : ) : Fin 8  
    Two-coordinate rational unit-circle branch vector for the approximate
    controlled-Householder route.
    
Theorem9.2.159
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “rational circle branch vector clean”; the hypotheses and conclusion in the code panel fix its exact scope.

Formal status. Compiled theorem in the default ASPBE import surface; the displayed Lean signature is the authoritative claim.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. The source declaration has no docstring. The reader cue above is generated from its kind and name and does not replace the Lean signature.

Declaration kind. theorem.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:2641. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem9.2.1591 theorem
  • theorem QuantumBlockEncoding.CubicDiagonalOracle.rationalCircleBranchVector_clean
      (q r : ) :
      QuantumBlockEncoding.CubicDiagonalOracle.rationalCircleBranchVector q
          r QuantumBlockEncoding.CubicDiagonalOracle.householderZero =
        q
    theorem QuantumBlockEncoding.CubicDiagonalOracle.rationalCircleBranchVector_clean
      (q r : ) :
      QuantumBlockEncoding.CubicDiagonalOracle.rationalCircleBranchVector
          q r
          QuantumBlockEncoding.CubicDiagonalOracle.householderZero =
        q
Theorem9.2.160
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “rational circle branch vector unit”; the hypotheses and conclusion in the code panel fix its exact scope.

Formal status. Compiled theorem in the default ASPBE import surface; the displayed Lean signature is the authoritative claim.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. The source declaration has no docstring. The reader cue above is generated from its kind and name and does not replace the Lean signature.

Declaration kind. theorem.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:2645. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem9.2.1601 theorem
  • theorem QuantumBlockEncoding.CubicDiagonalOracle.rationalCircleBranchVector_unit
      (q r : ) (hcircle : q ^ 2 + r ^ 2 = 1) :
      QuantumBlockEncoding.CubicDiagonalOracle.dot8
          (QuantumBlockEncoding.CubicDiagonalOracle.rationalCircleBranchVector
            q r)
          (QuantumBlockEncoding.CubicDiagonalOracle.rationalCircleBranchVector
            q r) =
        1
    theorem QuantumBlockEncoding.CubicDiagonalOracle.rationalCircleBranchVector_unit
      (q r : )
      (hcircle : q ^ 2 + r ^ 2 = 1) :
      QuantumBlockEncoding.CubicDiagonalOracle.dot8
          (QuantumBlockEncoding.CubicDiagonalOracle.rationalCircleBranchVector
            q r)
          (QuantumBlockEncoding.CubicDiagonalOracle.rationalCircleBranchVector
            q r) =
        1
Theorem9.2.161
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “controlled householder 8 direct sum clean entry of branch value”; the hypotheses and conclusion in the code panel fix its exact scope. Approximate-route support leaf 'APPROX-CDS-CLEAN': if each controlled Householder branch has clean coordinate 'q j', then the clean block is the supplied diagonal matrix 'diag(q)'.

Formal status. Compiled theorem in the default ASPBE import surface; the displayed Lean signature is the authoritative claim.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Approximate-route support leaf 'APPROX-CDS-CLEAN': if each controlled Householder branch has clean coordinate 'q j', then the clean block is the supplied diagonal matrix 'diag(q)'. This is not an approximate certificate. It proves only the local clean-block shape for supplied branch vectors.

Declaration kind. theorem.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:2661. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem9.2.1611 theorem
  • theorem QuantumBlockEncoding.CubicDiagonalOracle.controlledHouseholder8DirectSum_clean_entry_of_branchValue
      (n : ) (q : Fin (QuantumBlockEncoding.gridSize n)  )
      (v : Fin (QuantumBlockEncoding.gridSize n)  Fin 8  )
      (branchUnit :
         (j : Fin (QuantumBlockEncoding.gridSize n)),
          QuantumBlockEncoding.CubicDiagonalOracle.dot8 (v j) (v j) = 1)
      (branchClean :
         (j : Fin (QuantumBlockEncoding.gridSize n)),
          v j QuantumBlockEncoding.CubicDiagonalOracle.householderZero =
            q j)
      (branchNontrivial :
         (j : Fin (QuantumBlockEncoding.gridSize n)),
          v j QuantumBlockEncoding.CubicDiagonalOracle.householderZero 
            1) :
      (QuantumBlockEncoding.BlockEncodingClassics.cleanBlockBy
            (QuantumBlockEncoding.CubicDiagonalOracle.controlledHouseholder8Embed
              n)
            (QuantumBlockEncoding.CubicDiagonalOracle.controlledHouseholder8DirectSum
              n v)).PointwiseEq
        (QuantumBlockEncoding.CubicDiagonalOracle.approxDiagonalOperator n
          q)
    theorem QuantumBlockEncoding.CubicDiagonalOracle.controlledHouseholder8DirectSum_clean_entry_of_branchValue
      (n : )
      (q :
        Fin
            (QuantumBlockEncoding.gridSize
              n) 
          )
      (v :
        Fin
            (QuantumBlockEncoding.gridSize
              n) 
          Fin 8  )
      (branchUnit :
        
          (j :
            Fin
              (QuantumBlockEncoding.gridSize
                n)),
          QuantumBlockEncoding.CubicDiagonalOracle.dot8
              (v j) (v j) =
            1)
      (branchClean :
        
          (j :
            Fin
              (QuantumBlockEncoding.gridSize
                n)),
          v j
              QuantumBlockEncoding.CubicDiagonalOracle.householderZero =
            q j)
      (branchNontrivial :
        
          (j :
            Fin
              (QuantumBlockEncoding.gridSize
                n)),
          v j
              QuantumBlockEncoding.CubicDiagonalOracle.householderZero 
            1) :
      (QuantumBlockEncoding.BlockEncodingClassics.cleanBlockBy
            (QuantumBlockEncoding.CubicDiagonalOracle.controlledHouseholder8Embed
              n)
            (QuantumBlockEncoding.CubicDiagonalOracle.controlledHouseholder8DirectSum
              n v)).PointwiseEq
        (QuantumBlockEncoding.CubicDiagonalOracle.approxDiagonalOperator
          n q)
    Approximate-route support leaf `APPROX-CDS-CLEAN`: if each controlled
    Householder branch has clean coordinate `q j`, then the clean block is the
    supplied diagonal matrix `diag(q)`.
    
    This is not an approximate certificate.  It proves only the local clean-block
    shape for supplied branch vectors.
    
Definition9.2.162
uses 0used by 0L∃∀N

Plain-English reading. This definition gives the library's named construction or computation for “cubic diagonal four square branch vector”. Rational branch vector whose clean coordinate is '(j / 2^n)^3'.

Formal status. Compiled declaration in the default ASPBE import surface; its kind and displayed Lean type determine how it may be used.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Rational branch vector whose clean coordinate is '(j / 2^n)^3'.

Declaration kind. def.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:2709. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Definition9.2.1621 definition
  • def QuantumBlockEncoding.CubicDiagonalOracle.cubicDiagonalFourSquareBranchVector
      (n : ) (j : Fin (QuantumBlockEncoding.gridSize n)) (a b c d : ) :
      Fin 8  
    def QuantumBlockEncoding.CubicDiagonalOracle.cubicDiagonalFourSquareBranchVector
      (n : )
      (j :
        Fin (QuantumBlockEncoding.gridSize n))
      (a b c d : ) : Fin 8  
    Rational branch vector whose clean coordinate is `(j / 2^n)^3`. 
Theorem9.2.163
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “cubic diagonal four square branch vector clean”; the hypotheses and conclusion in the code panel fix its exact scope.

Formal status. Compiled theorem in the default ASPBE import surface; the displayed Lean signature is the authoritative claim.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. The source declaration has no docstring. The reader cue above is generated from its kind and name and does not replace the Lean signature.

Declaration kind. theorem.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:2719. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem9.2.1631 theorem
  • theorem QuantumBlockEncoding.CubicDiagonalOracle.cubicDiagonalFourSquareBranchVector_clean
      (n : ) (j : Fin (QuantumBlockEncoding.gridSize n)) (a b c d : ) :
      QuantumBlockEncoding.CubicDiagonalOracle.cubicDiagonalFourSquareBranchVector
          n j a b c d
          QuantumBlockEncoding.CubicDiagonalOracle.householderZero =
        QuantumBlockEncoding.CubicStatePreparation.cubicAmplitude n j
    theorem QuantumBlockEncoding.CubicDiagonalOracle.cubicDiagonalFourSquareBranchVector_clean
      (n : )
      (j :
        Fin (QuantumBlockEncoding.gridSize n))
      (a b c d : ) :
      QuantumBlockEncoding.CubicDiagonalOracle.cubicDiagonalFourSquareBranchVector
          n j a b c d
          QuantumBlockEncoding.CubicDiagonalOracle.householderZero =
        QuantumBlockEncoding.CubicStatePreparation.cubicAmplitude
          n j
Theorem9.2.164
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “cubic diagonal four square branch vector unit”; the hypotheses and conclusion in the code panel fix its exact scope.

Formal status. Compiled theorem in the default ASPBE import surface; the displayed Lean signature is the authoritative claim.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. The source declaration has no docstring. The reader cue above is generated from its kind and name and does not replace the Lean signature.

Declaration kind. theorem.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:2728. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem9.2.1641 theorem
  • theorem QuantumBlockEncoding.CubicDiagonalOracle.cubicDiagonalFourSquareBranchVector_unit
      (n : ) (j : Fin (QuantumBlockEncoding.gridSize n)) (a b c d : )
      (hsq :
        QuantumBlockEncoding.gridSize n ^ 6 =
          j ^ 6 + a ^ 2 + b ^ 2 + c ^ 2 + d ^ 2) :
      QuantumBlockEncoding.CubicDiagonalOracle.dot8
          (QuantumBlockEncoding.CubicDiagonalOracle.cubicDiagonalFourSquareBranchVector
            n j a b c d)
          (QuantumBlockEncoding.CubicDiagonalOracle.cubicDiagonalFourSquareBranchVector
            n j a b c d) =
        1
    theorem QuantumBlockEncoding.CubicDiagonalOracle.cubicDiagonalFourSquareBranchVector_unit
      (n : )
      (j :
        Fin (QuantumBlockEncoding.gridSize n))
      (a b c d : )
      (hsq :
        QuantumBlockEncoding.gridSize n ^ 6 =
          j ^ 6 + a ^ 2 + b ^ 2 + c ^ 2 +
            d ^ 2) :
      QuantumBlockEncoding.CubicDiagonalOracle.dot8
          (QuantumBlockEncoding.CubicDiagonalOracle.cubicDiagonalFourSquareBranchVector
            n j a b c d)
          (QuantumBlockEncoding.CubicDiagonalOracle.cubicDiagonalFourSquareBranchVector
            n j a b c d) =
        1
Definition9.2.165
uses 0used by 0L∃∀N

Plain-English reading. This definition gives the library's named construction or computation for “cubic diagonal rational completion”.

Formal status. Compiled declaration in the default ASPBE import surface; its kind and displayed Lean type determine how it may be used.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. The source declaration has no docstring. The reader cue above is generated from its kind and name and does not replace the Lean signature.

Declaration kind. def.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:2746. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Definition9.2.1651 definition
  • def QuantumBlockEncoding.CubicDiagonalOracle.CubicDiagonalRationalCompletion
      (n : ) : Prop
    def QuantumBlockEncoding.CubicDiagonalOracle.CubicDiagonalRationalCompletion
      (n : ) : Prop
Theorem9.2.166
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “cubic diagonal rational completion of four square witnesses”; the hypotheses and conclusion in the code panel fix its exact scope.

Formal status. Compiled theorem in the default ASPBE import surface; the displayed Lean signature is the authoritative claim.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. The source declaration has no docstring. The reader cue above is generated from its kind and name and does not replace the Lean signature.

Declaration kind. theorem.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:2752. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem9.2.1661 theorem
  • theorem QuantumBlockEncoding.CubicDiagonalOracle.cubicDiagonalRationalCompletion_of_fourSquareWitnesses
      (n : ) (a b c d : Fin (QuantumBlockEncoding.gridSize n)  )
      (hsq :
         (j : Fin (QuantumBlockEncoding.gridSize n)),
          QuantumBlockEncoding.gridSize n ^ 6 =
            j ^ 6 + a j ^ 2 + b j ^ 2 + c j ^ 2 + d j ^ 2) :
      QuantumBlockEncoding.CubicDiagonalOracle.CubicDiagonalRationalCompletion
        n
    theorem QuantumBlockEncoding.CubicDiagonalOracle.cubicDiagonalRationalCompletion_of_fourSquareWitnesses
      (n : )
      (a b c d :
        Fin
            (QuantumBlockEncoding.gridSize
              n) 
          )
      (hsq :
        
          (j :
            Fin
              (QuantumBlockEncoding.gridSize
                n)),
          QuantumBlockEncoding.gridSize n ^
              6 =
            j ^ 6 + a j ^ 2 + b j ^ 2 +
                c j ^ 2 +
              d j ^ 2) :
      QuantumBlockEncoding.CubicDiagonalOracle.CubicDiagonalRationalCompletion
        n
Theorem9.2.167
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “cubic diagonal rational completion exists”; the hypotheses and conclusion in the code panel fix its exact scope.

Formal status. Compiled theorem in the default ASPBE import surface; the displayed Lean signature is the authoritative claim.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. The source declaration has no docstring. The reader cue above is generated from its kind and name and does not replace the Lean signature.

Declaration kind. theorem.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:2767. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem9.2.1671 theorem
  • theorem QuantumBlockEncoding.CubicDiagonalOracle.cubicDiagonalRationalCompletion_exists
      (n : ) :
      QuantumBlockEncoding.CubicDiagonalOracle.CubicDiagonalRationalCompletion
        n
    theorem QuantumBlockEncoding.CubicDiagonalOracle.cubicDiagonalRationalCompletion_exists
      (n : ) :
      QuantumBlockEncoding.CubicDiagonalOracle.CubicDiagonalRationalCompletion
        n
Theorem9.2.168
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “cubic amplitude lt one”; the hypotheses and conclusion in the code panel fix its exact scope.

Formal status. Compiled theorem in the default ASPBE import surface; the displayed Lean signature is the authoritative claim.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. The source declaration has no docstring. The reader cue above is generated from its kind and name and does not replace the Lean signature.

Declaration kind. theorem.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:2784. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem9.2.1681 theorem
  • theorem QuantumBlockEncoding.CubicDiagonalOracle.cubicAmplitude_lt_one (n : )
      (j : Fin (QuantumBlockEncoding.gridSize n)) :
      QuantumBlockEncoding.CubicStatePreparation.cubicAmplitude n j < 1
    theorem QuantumBlockEncoding.CubicDiagonalOracle.cubicAmplitude_lt_one
      (n : )
      (j :
        Fin
          (QuantumBlockEncoding.gridSize n)) :
      QuantumBlockEncoding.CubicStatePreparation.cubicAmplitude
          n j <
        1
Theorem9.2.169
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “cubic diagonal rational completion backend support”; the hypotheses and conclusion in the code panel fix its exact scope.

Formal status. Compiled theorem in the default ASPBE import surface; the displayed Lean signature is the authoritative claim.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. The source declaration has no docstring. The reader cue above is generated from its kind and name and does not replace the Lean signature.

Declaration kind. theorem.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:2800. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem9.2.1691 theorem
  • theorem QuantumBlockEncoding.CubicDiagonalOracle.cubicDiagonalRationalCompletion_backendSupport
      (n : ) :
       v,
        (QuantumBlockEncoding.BlockEncodingClassics.cleanBlockBy
                (QuantumBlockEncoding.CubicDiagonalOracle.controlledHouseholder8Embed
                  n)
                (QuantumBlockEncoding.CubicDiagonalOracle.controlledHouseholder8DirectSum
                  n v)).PointwiseEq
            (QuantumBlockEncoding.CubicDiagonalOracle.cubicDiagonalOperator
              n) 
          QuantumBlockEncoding.BlockEncodingClassics.IsRationalOrthogonal
            (QuantumBlockEncoding.CubicDiagonalOracle.controlledHouseholder8DirectSum
              n v)
    theorem QuantumBlockEncoding.CubicDiagonalOracle.cubicDiagonalRationalCompletion_backendSupport
      (n : ) :
       v,
        (QuantumBlockEncoding.BlockEncodingClassics.cleanBlockBy
                (QuantumBlockEncoding.CubicDiagonalOracle.controlledHouseholder8Embed
                  n)
                (QuantumBlockEncoding.CubicDiagonalOracle.controlledHouseholder8DirectSum
                  n v)).PointwiseEq
            (QuantumBlockEncoding.CubicDiagonalOracle.cubicDiagonalOperator
              n) 
          QuantumBlockEncoding.BlockEncodingClassics.IsRationalOrthogonal
            (QuantumBlockEncoding.CubicDiagonalOracle.controlledHouseholder8DirectSum
              n v)
Definition9.2.170
uses 0used by 0L∃∀N

Plain-English reading. This record groups the data and proof fields needed for “cubic diagonal exact be contract”. A proposition-valued field is a requirement until a constructor supplies it. Strong exact certificate for the cubic target, including orthogonality.

Formal status. Data contract in the default import surface; proposition-valued fields are obligations, not automatically established facts.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Strong exact certificate for the cubic target, including orthogonality.

Declaration kind. structure.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:2828. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Definition9.2.1701 definition
  • complete
    structure QuantumBlockEncoding.CubicDiagonalOracle.CubicDiagonalExactBEContract
      (n total : ) : Type
    structure QuantumBlockEncoding.CubicDiagonalOracle.CubicDiagonalExactBEContract
      (n total : ) : Type
    Strong exact certificate for the cubic target, including orthogonality. 

    Fields

    exactPayload : QuantumBlockEncoding.BlockEncodingClassics.ExactCleanBlock (QuantumBlockEncoding.gridSize n) total
    unitaryProof : QuantumBlockEncoding.BlockEncodingClassics.IsRationalOrthogonal self.exactPayload.U
    normalizerProof : (QuantumBlockEncoding.CubicDiagonalOracle.cubicDiagonalTarget n).normalizer = 1
    cleanupStatement : Prop
    cleanupProof : self.cleanupStatement
    resource : QuantumBlockEncoding.Resource
    resourceStatement : Prop
    resourceProof : self.resourceStatement
Definition9.2.171
uses 0used by 0L∃∀N

Plain-English reading. This definition gives the library's named construction or computation for “cubic diagonal householder exact be contract”.

Formal status. Compiled declaration in the default ASPBE import surface; its kind and displayed Lean type determine how it may be used.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. The source declaration has no docstring. The reader cue above is generated from its kind and name and does not replace the Lean signature.

Declaration kind. def.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:2838. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Definition9.2.1711 definition
  • def QuantumBlockEncoding.CubicDiagonalOracle.cubicDiagonalHouseholderExactBEContract
      (n : ) :
      QuantumBlockEncoding.CubicDiagonalOracle.CubicDiagonalExactBEContract
        n (8 * QuantumBlockEncoding.gridSize n)
    def QuantumBlockEncoding.CubicDiagonalOracle.cubicDiagonalHouseholderExactBEContract
      (n : ) :
      QuantumBlockEncoding.CubicDiagonalOracle.CubicDiagonalExactBEContract
        n
        (8 * QuantumBlockEncoding.gridSize n)
Theorem9.2.172
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “cubic diagonal householder exact be contract clean eq target”; the hypotheses and conclusion in the code panel fix its exact scope.

Formal status. Compiled theorem in the default ASPBE import surface; the displayed Lean signature is the authoritative claim.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. The source declaration has no docstring. The reader cue above is generated from its kind and name and does not replace the Lean signature.

Declaration kind. theorem.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:2867. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem9.2.1721 theorem
  • theorem QuantumBlockEncoding.CubicDiagonalOracle.cubicDiagonalHouseholderExactBEContract_clean_eq_target
      (n : ) :
      (QuantumBlockEncoding.CubicDiagonalOracle.cubicDiagonalHouseholderExactBEContract
                n).exactPayload.clean.PointwiseEq
        (QuantumBlockEncoding.CubicDiagonalOracle.cubicDiagonalTarget
            n).operator
    theorem QuantumBlockEncoding.CubicDiagonalOracle.cubicDiagonalHouseholderExactBEContract_clean_eq_target
      (n : ) :
      (QuantumBlockEncoding.CubicDiagonalOracle.cubicDiagonalHouseholderExactBEContract
                n).exactPayload.clean.PointwiseEq
        (QuantumBlockEncoding.CubicDiagonalOracle.cubicDiagonalTarget
            n).operator
Theorem9.2.173
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “cubic diagonal householder exact be contract complete”; the hypotheses and conclusion in the code panel fix its exact scope. Unconditional exact root certificate for the cubic diagonal operator.

Formal status. Compiled theorem in the default ASPBE import surface; the displayed Lean signature is the authoritative claim.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Unconditional exact root certificate for the cubic diagonal operator. The conjunction deliberately includes the unitary predicate, clean-block target, normalizer, and resource equality; a clean-block-only arithmetic wrapper is not sufficient to close an operator block-encoding task.

Declaration kind. theorem.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:2879. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem9.2.1731 theorem
  • theorem QuantumBlockEncoding.CubicDiagonalOracle.cubicDiagonalHouseholderExactBEContract_complete
      (n : ) :
      QuantumBlockEncoding.BlockEncodingClassics.IsRationalOrthogonal
          (QuantumBlockEncoding.CubicDiagonalOracle.cubicDiagonalHouseholderExactBEContract
                n).exactPayload.U 
        (QuantumBlockEncoding.CubicDiagonalOracle.cubicDiagonalHouseholderExactBEContract
                    n).exactPayload.clean.PointwiseEq
            (QuantumBlockEncoding.CubicDiagonalOracle.cubicDiagonalTarget
                n).operator 
          (QuantumBlockEncoding.CubicDiagonalOracle.cubicDiagonalTarget
                  n).normalizer =
              1 
            (QuantumBlockEncoding.CubicDiagonalOracle.cubicDiagonalHouseholderExactBEContract
                  n).resource =
              QuantumBlockEncoding.Resource.ofCountsWithDepth 0 0 1 0 1
    theorem QuantumBlockEncoding.CubicDiagonalOracle.cubicDiagonalHouseholderExactBEContract_complete
      (n : ) :
      QuantumBlockEncoding.BlockEncodingClassics.IsRationalOrthogonal
          (QuantumBlockEncoding.CubicDiagonalOracle.cubicDiagonalHouseholderExactBEContract
                n).exactPayload.U 
        (QuantumBlockEncoding.CubicDiagonalOracle.cubicDiagonalHouseholderExactBEContract
                    n).exactPayload.clean.PointwiseEq
            (QuantumBlockEncoding.CubicDiagonalOracle.cubicDiagonalTarget
                n).operator 
          (QuantumBlockEncoding.CubicDiagonalOracle.cubicDiagonalTarget
                  n).normalizer =
              1 
            (QuantumBlockEncoding.CubicDiagonalOracle.cubicDiagonalHouseholderExactBEContract
                  n).resource =
              QuantumBlockEncoding.Resource.ofCountsWithDepth
                0 0 1 0 1
    Unconditional exact root certificate for the cubic diagonal operator.  The
    conjunction deliberately includes the unitary predicate, clean-block target,
    normalizer, and resource equality; a clean-block-only arithmetic wrapper is
    not sufficient to close an operator block-encoding task.
    
Theorem9.2.174
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “linear diagonal cube eq cubic diagonal operator”; the hypotheses and conclusion in the code panel fix its exact scope. Target-identification leaf for the hinted route: the project-local matrix cube of 'O_0' is the cubic diagonal target 'D_n'.

Formal status. Compiled theorem in the default ASPBE import surface; the displayed Lean signature is the authoritative claim.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Target-identification leaf for the hinted route: the project-local matrix cube of 'O_0' is the cubic diagonal target 'D_n'.

Declaration kind. theorem.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:3001. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem9.2.1741 theorem
  • theorem QuantumBlockEncoding.CubicDiagonalOracle.linearDiagonal_cube_eq_cubicDiagonalOperator
      (n : ) :
      (((QuantumBlockEncoding.CubicDiagonalOracle.linearDiagonalOperator
                    n).mul
                (QuantumBlockEncoding.CubicDiagonalOracle.linearDiagonalOperator
                  n)).mul
            (QuantumBlockEncoding.CubicDiagonalOracle.linearDiagonalOperator
              n)).PointwiseEq
        (QuantumBlockEncoding.CubicDiagonalOracle.cubicDiagonalOperator n)
    theorem QuantumBlockEncoding.CubicDiagonalOracle.linearDiagonal_cube_eq_cubicDiagonalOperator
      (n : ) :
      (((QuantumBlockEncoding.CubicDiagonalOracle.linearDiagonalOperator
                    n).mul
                (QuantumBlockEncoding.CubicDiagonalOracle.linearDiagonalOperator
                  n)).mul
            (QuantumBlockEncoding.CubicDiagonalOracle.linearDiagonalOperator
              n)).PointwiseEq
        (QuantumBlockEncoding.CubicDiagonalOracle.cubicDiagonalOperator
          n)
    Target-identification leaf for the hinted route:
    the project-local matrix cube of `O_0` is the cubic diagonal target `D_n`.
    
Definition9.2.175
uses 0used by 0L∃∀N

Plain-English reading. This definition gives the library's named construction or computation for “linear diagonal cubic product certificate”. The compiled non-QSVT polynomial consumer for the human hint.

Formal status. Compiled declaration in the default ASPBE import surface; its kind and displayed Lean type determine how it may be used.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. The compiled non-QSVT polynomial consumer for the human hint. It reuses the exact 'O_0' clean-block payload three times through the library's product card.

Declaration kind. def.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:3022. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Definition9.2.1751 definition
  • def QuantumBlockEncoding.CubicDiagonalOracle.linearDiagonalCubicProductCertificate
      (n : ) :
      QuantumBlockEncoding.BlockEncodingClassics.LCUCertificate
        (QuantumBlockEncoding.gridSize n)
    def QuantumBlockEncoding.CubicDiagonalOracle.linearDiagonalCubicProductCertificate
      (n : ) :
      QuantumBlockEncoding.BlockEncodingClassics.LCUCertificate
        (QuantumBlockEncoding.gridSize n)
    The compiled non-QSVT polynomial consumer for the human hint.  It reuses the
    exact `O_0` clean-block payload three times through the library's product card.
    
Theorem9.2.176
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “linear diagonal cubic product certificate target eq”; the hypotheses and conclusion in the code panel fix its exact scope.

Formal status. Compiled theorem in the default ASPBE import surface; the displayed Lean signature is the authoritative claim.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. The source declaration has no docstring. The reader cue above is generated from its kind and name and does not replace the Lean signature.

Declaration kind. theorem.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:3030. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem9.2.1761 theorem
  • theorem QuantumBlockEncoding.CubicDiagonalOracle.linearDiagonalCubicProductCertificate_target_eq
      (n : ) :
      (QuantumBlockEncoding.CubicDiagonalOracle.linearDiagonalCubicProductCertificate
              n).target.PointwiseEq
        (QuantumBlockEncoding.CubicDiagonalOracle.cubicDiagonalTarget
            n).operator
    theorem QuantumBlockEncoding.CubicDiagonalOracle.linearDiagonalCubicProductCertificate_target_eq
      (n : ) :
      (QuantumBlockEncoding.CubicDiagonalOracle.linearDiagonalCubicProductCertificate
              n).target.PointwiseEq
        (QuantumBlockEncoding.CubicDiagonalOracle.cubicDiagonalTarget
            n).operator
Theorem9.2.177
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “linear diagonal cubic product certificate clean eq target”; the hypotheses and conclusion in the code panel fix its exact scope.

Formal status. Compiled theorem in the default ASPBE import surface; the displayed Lean signature is the authoritative claim.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. The source declaration has no docstring. The reader cue above is generated from its kind and name and does not replace the Lean signature.

Declaration kind. theorem.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:3040. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem9.2.1771 theorem
  • theorem QuantumBlockEncoding.CubicDiagonalOracle.linearDiagonalCubicProductCertificate_clean_eq_target
      (n : ) :
      (QuantumBlockEncoding.CubicDiagonalOracle.linearDiagonalCubicProductCertificate
              n).cleanBlock.PointwiseEq
        (QuantumBlockEncoding.CubicDiagonalOracle.cubicDiagonalTarget
            n).operator
    theorem QuantumBlockEncoding.CubicDiagonalOracle.linearDiagonalCubicProductCertificate_clean_eq_target
      (n : ) :
      (QuantumBlockEncoding.CubicDiagonalOracle.linearDiagonalCubicProductCertificate
              n).cleanBlock.PointwiseEq
        (QuantumBlockEncoding.CubicDiagonalOracle.cubicDiagonalTarget
            n).operator
Definition9.2.178
uses 0used by 0L∃∀N

Plain-English reading. This definition gives the library's named construction or computation for “cubic qsvt polynomial”. The polynomial selected by the human-hinted QSVT route.

Formal status. Compiled declaration in the default ASPBE import surface; its kind and displayed Lean type determine how it may be used.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. The polynomial selected by the human-hinted QSVT route.

Declaration kind. def.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:3050. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Definition9.2.1781 definition
  • def QuantumBlockEncoding.CubicDiagonalOracle.cubicQSVTPolynomial (x : ) : 
    def QuantumBlockEncoding.CubicDiagonalOracle.cubicQSVTPolynomial
      (x : ) : 
    The polynomial selected by the human-hinted QSVT route. 
Theorem9.2.179
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “cubic qsvt polynomial grid point abs le one”; the hypotheses and conclusion in the code panel fix its exact scope. The cubic QSVT polynomial is bounded on every spectral value used by 'O_0'.

Formal status. Compiled theorem in the default ASPBE import surface; the displayed Lean signature is the authoritative claim.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. The cubic QSVT polynomial is bounded on every spectral value used by 'O_0'.

Declaration kind. theorem.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:3053. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem9.2.1791 theorem
  • theorem QuantumBlockEncoding.CubicDiagonalOracle.cubicQSVTPolynomial_gridPoint_abs_le_one
      (n : ) (j : Fin (QuantumBlockEncoding.gridSize n)) :
      (QuantumBlockEncoding.CubicDiagonalOracle.cubicQSVTPolynomial
            (QuantumBlockEncoding.CubicStatePreparation.gridPoint n
              j)).abs 
        1
    theorem QuantumBlockEncoding.CubicDiagonalOracle.cubicQSVTPolynomial_gridPoint_abs_le_one
      (n : )
      (j :
        Fin
          (QuantumBlockEncoding.gridSize n)) :
      (QuantumBlockEncoding.CubicDiagonalOracle.cubicQSVTPolynomial
            (QuantumBlockEncoding.CubicStatePreparation.gridPoint
              n j)).abs 
        1
    The cubic QSVT polynomial is bounded on every spectral value used by `O_0`. 
Definition9.2.180
uses 0used by 0L∃∀N

Plain-English reading. This record groups the data and proof fields needed for “cubic qsvt local side conditions”. A proposition-valued field is a requirement until a constructor supplies it. Locally checkable side conditions for the cubic polynomial on the 'O_0' spectrum.

Formal status. Data contract in the default import surface; proposition-valued fields are obligations, not automatically established facts.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Locally checkable side conditions for the cubic polynomial on the 'O_0' spectrum.

Declaration kind. structure.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:3064. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Definition9.2.1801 definition
  • complete
    structure QuantumBlockEncoding.CubicDiagonalOracle.CubicQSVTLocalSideConditions
      (n : ) : Type
    structure QuantumBlockEncoding.CubicDiagonalOracle.CubicQSVTLocalSideConditions
      (n : ) : Type
    Locally checkable side conditions for the cubic polynomial on the `O_0` spectrum. 

    Fields

    degree : 
    degree_eq : self.degree = 3
    oddParity : Bool
    oddParity_eq : self.oddParity = true
    boundedOnInputSpectrum :  (j : Fin (QuantumBlockEncoding.gridSize n)),
      (QuantumBlockEncoding.CubicDiagonalOracle.cubicQSVTPolynomial
            (QuantumBlockEncoding.CubicStatePreparation.gridPoint n j)).abs 
        1
Definition9.2.181
uses 0used by 0L∃∀N

Plain-English reading. This definition gives the library's named construction or computation for “cubic qsvt local side conditions”.

Formal status. Compiled declaration in the default ASPBE import surface; its kind and displayed Lean type determine how it may be used.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. The source declaration has no docstring. The reader cue above is generated from its kind and name and does not replace the Lean signature.

Declaration kind. def.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:3073. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Definition9.2.1811 definition
  • def QuantumBlockEncoding.CubicDiagonalOracle.cubicQSVTLocalSideConditions
      (n : ) :
      QuantumBlockEncoding.CubicDiagonalOracle.CubicQSVTLocalSideConditions
        n
    def QuantumBlockEncoding.CubicDiagonalOracle.cubicQSVTLocalSideConditions
      (n : ) :
      QuantumBlockEncoding.CubicDiagonalOracle.CubicQSVTLocalSideConditions
        n
Definition9.2.182
uses 0used by 0L∃∀N

Plain-English reading. This record groups the data and proof fields needed for “cubic qsvt external semantics”. A proposition-valued field is a requirement until a constructor supplies it. Single external boundary for the hinted route.

Formal status. Data contract in the default import surface; proposition-valued fields are obligations, not automatically established facts.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Single external boundary for the hinted route. The supplier must provide a certified 'O_0' block encoding and the transformed clean block. This interface replaces unconstrained QSVT proof search: all project-local leaves are compiled, while phase synthesis and the QSVT semantic theorem remain one explicit dependency.

Declaration kind. structure.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:3091. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Definition9.2.1821 definition
  • structure(13 fields)defined in QuantumBlockEncoding/CubicStatePreparation.lean
    complete
    structure QuantumBlockEncoding.CubicDiagonalOracle.CubicQSVTExternalSemantics
      (n inputTotal outputTotal : ) : Type
    structure QuantumBlockEncoding.CubicDiagonalOracle.CubicQSVTExternalSemantics
      (n inputTotal outputTotal : ) : Type
    Single external boundary for the hinted route.
    
    The supplier must provide a certified `O_0` block encoding and the transformed
    clean block.  This interface replaces unconstrained QSVT proof search: all
    project-local leaves are compiled, while phase synthesis and the QSVT semantic
    theorem remain one explicit dependency.
    

    Fields

    input : QuantumBlockEncoding.CubicDiagonalOracle.LinearDiagonalInputBEContract n inputTotal
    output : QuantumBlockEncoding.BlockEncodingClassics.ExactCleanBlock (QuantumBlockEncoding.gridSize n) outputTotal
    outputUnitary : QuantumBlockEncoding.BlockEncodingClassics.IsRationalOrthogonal self.output.U
    outputIsCubicTransform : self.output.A.PointwiseEq
      (((QuantumBlockEncoding.CubicDiagonalOracle.linearDiagonalOperator n).mul
            (QuantumBlockEncoding.CubicDiagonalOracle.linearDiagonalOperator n)).mul
        (QuantumBlockEncoding.CubicDiagonalOracle.linearDiagonalOperator n))
    globalPolynomialAdmissibility : Prop
    globalPolynomialAdmissibilityDescription : String
    globalPolynomialAdmissibilityProof : self.globalPolynomialAdmissibility
    cleanupStatement : Prop
    cleanupDescription : String
    cleanupProof : self.cleanupStatement
    resource : QuantumBlockEncoding.Resource
    resourceStatement : Prop
    resourceProof : self.resourceStatement
Theorem9.2.183
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “output eq cubic target”; the hypotheses and conclusion in the code panel fix its exact scope.

Formal status. Compiled theorem in the default ASPBE import surface; the displayed Lean signature is the authoritative claim.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. The source declaration has no docstring. The reader cue above is generated from its kind and name and does not replace the Lean signature.

Declaration kind. theorem.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:3112. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem9.2.1831 theorem
  • theorem QuantumBlockEncoding.CubicDiagonalOracle.CubicQSVTExternalSemantics.output_eq_cubic_target
      {n inputTotal outputTotal : }
      (semantics :
        QuantumBlockEncoding.CubicDiagonalOracle.CubicQSVTExternalSemantics
          n inputTotal outputTotal) :
      semantics.output.A.PointwiseEq
        (QuantumBlockEncoding.CubicDiagonalOracle.cubicDiagonalTarget
            n).operator
    theorem QuantumBlockEncoding.CubicDiagonalOracle.CubicQSVTExternalSemantics.output_eq_cubic_target
      {n inputTotal outputTotal : }
      (semantics :
        QuantumBlockEncoding.CubicDiagonalOracle.CubicQSVTExternalSemantics
          n inputTotal outputTotal) :
      semantics.output.A.PointwiseEq
        (QuantumBlockEncoding.CubicDiagonalOracle.cubicDiagonalTarget
            n).operator
Definition9.2.184
uses 0used by 0L∃∀N

Plain-English reading. This definition gives the library's named construction or computation for “consumer contract”. Instantiate the generic consumer boundary without reopening QSVT search.

Formal status. Compiled declaration in the default ASPBE import surface; its kind and displayed Lean type determine how it may be used.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Instantiate the generic consumer boundary without reopening QSVT search.

Declaration kind. def.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:3120. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Definition9.2.1841 definition
  • def QuantumBlockEncoding.CubicDiagonalOracle.CubicQSVTExternalSemantics.consumerContract
      {n inputTotal outputTotal : }
      (semantics :
        QuantumBlockEncoding.CubicDiagonalOracle.CubicQSVTExternalSemantics
          n inputTotal outputTotal) :
      QuantumBlockEncoding.BlockEncodingClassics.QSVTConsumerContract
        (QuantumBlockEncoding.gridSize n) inputTotal
    def QuantumBlockEncoding.CubicDiagonalOracle.CubicQSVTExternalSemantics.consumerContract
      {n inputTotal outputTotal : }
      (semantics :
        QuantumBlockEncoding.CubicDiagonalOracle.CubicQSVTExternalSemantics
          n inputTotal outputTotal) :
      QuantumBlockEncoding.BlockEncodingClassics.QSVTConsumerContract
        (QuantumBlockEncoding.gridSize n)
        inputTotal
    Instantiate the generic consumer boundary without reopening QSVT search. 
Definition9.2.185
uses 0used by 0L∃∀N

Plain-English reading. This definition gives the library's named construction or computation for “amplitude oracle layout”. One signal qubit and no pure workspace at the oracle-label tier.

Formal status. Compiled declaration in the default ASPBE import surface; its kind and displayed Lean type determine how it may be used.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. One signal qubit and no pure workspace at the oracle-label tier.

Declaration kind. def.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:3138. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Definition9.2.1851 definition
  • def QuantumBlockEncoding.CubicDiagonalOracle.amplitudeOracleLayout (n : ) :
      QuantumBlockEncoding.RegisterLayout
    def QuantumBlockEncoding.CubicDiagonalOracle.amplitudeOracleLayout
      (n : ) :
      QuantumBlockEncoding.RegisterLayout
    One signal qubit and no pure workspace at the oracle-label tier. 
Definition9.2.186
uses 0used by 0L∃∀N

Plain-English reading. This definition gives the library's named construction or computation for “amplitude oracle circuit”. Oracle-level exact diagonal amplitude transcript.

Formal status. Compiled declaration in the default ASPBE import surface; its kind and displayed Lean type determine how it may be used.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Oracle-level exact diagonal amplitude transcript.

Declaration kind. def.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:3144. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Definition9.2.1861 definition
  • def QuantumBlockEncoding.CubicDiagonalOracle.amplitudeOracleCircuit
      (_n : ) : QuantumBlockEncoding.Circuit
    def QuantumBlockEncoding.CubicDiagonalOracle.amplitudeOracleCircuit
      (_n : ) : QuantumBlockEncoding.Circuit
    Oracle-level exact diagonal amplitude transcript. 
Definition9.2.187
uses 0used by 0L∃∀N

Plain-English reading. This definition gives the library's named construction or computation for “amplitude oracle resource”. Resource of the oracle-label diagonal candidate.

Formal status. Compiled declaration in the default ASPBE import surface; its kind and displayed Lean type determine how it may be used.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Resource of the oracle-label diagonal candidate.

Declaration kind. def.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:3148. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Definition9.2.1871 definition
  • def QuantumBlockEncoding.CubicDiagonalOracle.amplitudeOracleResource
      (n : ) : QuantumBlockEncoding.Resource
    def QuantumBlockEncoding.CubicDiagonalOracle.amplitudeOracleResource
      (n : ) : QuantumBlockEncoding.Resource
    Resource of the oracle-label diagonal candidate. 
Definition9.2.188
uses 0used by 0L∃∀N

Plain-English reading. This definition gives the library's named construction or computation for “amplitude oracle cost”. Candidate score for the oracle-label diagonal candidate.

Formal status. Compiled declaration in the default ASPBE import surface; its kind and displayed Lean type determine how it may be used.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Candidate score for the oracle-label diagonal candidate.

Declaration kind. def.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:3152. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Definition9.2.1881 definition
  • def QuantumBlockEncoding.CubicDiagonalOracle.amplitudeOracleCost (n : ) :
      QuantumBlockEncoding.BlockEncodingCost
    def QuantumBlockEncoding.CubicDiagonalOracle.amplitudeOracleCost
      (n : ) :
      QuantumBlockEncoding.BlockEncodingCost
    Candidate score for the oracle-label diagonal candidate. 
Definition9.2.189
uses 0used by 0L∃∀N

Plain-English reading. This definition gives the library's named construction or computation for “amplitude oracle resource tuple”. Tuple in the QBE score order '(gateCount, depth, auxiliaryQubits, oracleCalls)'.

Formal status. Compiled declaration in the default ASPBE import surface; its kind and displayed Lean type determine how it may be used.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Tuple in the QBE score order '(gateCount, depth, auxiliaryQubits, oracleCalls)'.

Declaration kind. def.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:3157. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Definition9.2.1891 definition
  • def QuantumBlockEncoding.CubicDiagonalOracle.amplitudeOracleResourceTuple
      (n : ) :  ×  ×  × 
    def QuantumBlockEncoding.CubicDiagonalOracle.amplitudeOracleResourceTuple
      (n : ) :  ×  ×  × 
    Tuple in the QBE score order `(gateCount, depth, auxiliaryQubits, oracleCalls)`. 
Theorem9.2.190
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “amplitude oracle resource eq”; the hypotheses and conclusion in the code panel fix its exact scope.

Formal status. Compiled theorem in the default ASPBE import surface; the displayed Lean signature is the authoritative claim.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. The source declaration has no docstring. The reader cue above is generated from its kind and name and does not replace the Lean signature.

Declaration kind. theorem.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:3164. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem9.2.1901 theorem
  • theorem QuantumBlockEncoding.CubicDiagonalOracle.amplitudeOracleResource_eq
      (n : ) :
      QuantumBlockEncoding.CubicDiagonalOracle.amplitudeOracleResource n =
        QuantumBlockEncoding.Resource.ofCountsWithDepth 0 0 1 0 1
    theorem QuantumBlockEncoding.CubicDiagonalOracle.amplitudeOracleResource_eq
      (n : ) :
      QuantumBlockEncoding.CubicDiagonalOracle.amplitudeOracleResource
          n =
        QuantumBlockEncoding.Resource.ofCountsWithDepth
          0 0 1 0 1
Theorem9.2.191
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “amplitude oracle resource tuple eq”; the hypotheses and conclusion in the code panel fix its exact scope.

Formal status. Compiled theorem in the default ASPBE import surface; the displayed Lean signature is the authoritative claim.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. The source declaration has no docstring. The reader cue above is generated from its kind and name and does not replace the Lean signature.

Declaration kind. theorem.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:3168. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem9.2.1911 theorem
  • theorem QuantumBlockEncoding.CubicDiagonalOracle.amplitudeOracleResourceTuple_eq
      (n : ) :
      QuantumBlockEncoding.CubicDiagonalOracle.amplitudeOracleResourceTuple
          n =
        (1, 1, 1, 1)
    theorem QuantumBlockEncoding.CubicDiagonalOracle.amplitudeOracleResourceTuple_eq
      (n : ) :
      QuantumBlockEncoding.CubicDiagonalOracle.amplitudeOracleResourceTuple
          n =
        (1, 1, 1, 1)
Definition9.2.192
uses 0used by 0L∃∀N

Plain-English reading. This definition gives the library's named construction or computation for “diagonal clean block contract”. Clean-block contract for the diagonal cubic candidate.

Formal status. Compiled declaration in the default ASPBE import surface; its kind and displayed Lean type determine how it may be used.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Clean-block contract for the diagonal cubic candidate.

Declaration kind. def.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:3175. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Definition9.2.1921 definition
  • def QuantumBlockEncoding.CubicDiagonalOracle.diagonalCleanBlockContract
      (n : )
      (block :
        QuantumBlockEncoding.Matrix (QuantumBlockEncoding.gridSize n)
          (QuantumBlockEncoding.gridSize n) ) :
      Prop
    def QuantumBlockEncoding.CubicDiagonalOracle.diagonalCleanBlockContract
      (n : )
      (block :
        QuantumBlockEncoding.Matrix
          (QuantumBlockEncoding.gridSize n)
          (QuantumBlockEncoding.gridSize n)
          ) :
      Prop
    Clean-block contract for the diagonal cubic candidate. 
Theorem9.2.193
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “diagonal clean block contract pointwise eq”; the hypotheses and conclusion in the code panel fix its exact scope.

Formal status. Compiled theorem in the default ASPBE import surface; the displayed Lean signature is the authoritative claim.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. The source declaration has no docstring. The reader cue above is generated from its kind and name and does not replace the Lean signature.

Declaration kind. theorem.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:3181. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem9.2.1931 theorem
  • theorem QuantumBlockEncoding.CubicDiagonalOracle.diagonalCleanBlockContract_pointwise_eq
      (n : )
      (block :
        QuantumBlockEncoding.Matrix (QuantumBlockEncoding.gridSize n)
          (QuantumBlockEncoding.gridSize n) )
      (h :
        QuantumBlockEncoding.CubicDiagonalOracle.diagonalCleanBlockContract
          n block) :
      block.PointwiseEq
        (QuantumBlockEncoding.CubicDiagonalOracle.cubicDiagonalOperator n)
    theorem QuantumBlockEncoding.CubicDiagonalOracle.diagonalCleanBlockContract_pointwise_eq
      (n : )
      (block :
        QuantumBlockEncoding.Matrix
          (QuantumBlockEncoding.gridSize n)
          (QuantumBlockEncoding.gridSize n) )
      (h :
        QuantumBlockEncoding.CubicDiagonalOracle.diagonalCleanBlockContract
          n block) :
      block.PointwiseEq
        (QuantumBlockEncoding.CubicDiagonalOracle.cubicDiagonalOperator
          n)
Theorem9.2.194
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “primitive oracle clean block eq target”; the hypotheses and conclusion in the code panel fix its exact scope.

Formal status. Compiled theorem in the default ASPBE import surface; the displayed Lean signature is the authoritative claim.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. The source declaration has no docstring. The reader cue above is generated from its kind and name and does not replace the Lean signature.

Declaration kind. theorem.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:3188. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem9.2.1941 theorem
  • theorem QuantumBlockEncoding.CubicDiagonalOracle.primitiveOracleCleanBlock_eq_target
      (n : )
      (block :
        QuantumBlockEncoding.Matrix (QuantumBlockEncoding.gridSize n)
          (QuantumBlockEncoding.gridSize n) )
      (h :
        QuantumBlockEncoding.CubicDiagonalOracle.diagonalCleanBlockContract
          n block) :
      block.PointwiseEq
        (QuantumBlockEncoding.CubicDiagonalOracle.cubicDiagonalTarget
            n).operator
    theorem QuantumBlockEncoding.CubicDiagonalOracle.primitiveOracleCleanBlock_eq_target
      (n : )
      (block :
        QuantumBlockEncoding.Matrix
          (QuantumBlockEncoding.gridSize n)
          (QuantumBlockEncoding.gridSize n) )
      (h :
        QuantumBlockEncoding.CubicDiagonalOracle.diagonalCleanBlockContract
          n block) :
      block.PointwiseEq
        (QuantumBlockEncoding.CubicDiagonalOracle.cubicDiagonalTarget
            n).operator
Theorem9.2.195
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “cubic amplitude le one”; the hypotheses and conclusion in the code panel fix its exact scope. Amplitude range needed by the one-signal diagonal construction.

Formal status. Compiled theorem in the default ASPBE import surface; the displayed Lean signature is the authoritative claim.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Amplitude range needed by the one-signal diagonal construction.

Declaration kind. theorem.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:3196. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem9.2.1951 theorem
  • theorem QuantumBlockEncoding.CubicDiagonalOracle.cubicAmplitude_le_one (n : )
      (j : Fin (QuantumBlockEncoding.gridSize n)) :
      QuantumBlockEncoding.CubicStatePreparation.cubicAmplitude n j  1
    theorem QuantumBlockEncoding.CubicDiagonalOracle.cubicAmplitude_le_one
      (n : )
      (j :
        Fin
          (QuantumBlockEncoding.gridSize n)) :
      QuantumBlockEncoding.CubicStatePreparation.cubicAmplitude
          n j 
        1
    Amplitude range needed by the one-signal diagonal construction. 
Theorem9.2.196
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “cubic amplitude nonneg”; the hypotheses and conclusion in the code panel fix its exact scope.

Formal status. Compiled theorem in the default ASPBE import surface; the displayed Lean signature is the authoritative claim.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. The source declaration has no docstring. The reader cue above is generated from its kind and name and does not replace the Lean signature.

Declaration kind. theorem.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:3203. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem9.2.1961 theorem
  • theorem QuantumBlockEncoding.CubicDiagonalOracle.cubicAmplitude_nonneg (n : )
      (j : Fin (QuantumBlockEncoding.gridSize n)) :
      0  QuantumBlockEncoding.CubicStatePreparation.cubicAmplitude n j
    theorem QuantumBlockEncoding.CubicDiagonalOracle.cubicAmplitude_nonneg
      (n : )
      (j :
        Fin
          (QuantumBlockEncoding.gridSize n)) :
      0 
        QuantumBlockEncoding.CubicStatePreparation.cubicAmplitude
          n j
Definition9.2.197
uses 0used by 0L∃∀N

Plain-English reading. This definition gives the library's named construction or computation for “primitive amplitude oracle dimension”. Full matrix dimension of the unexpanded one-signal primitive oracle.

Formal status. Compiled declaration in the default ASPBE import surface; its kind and displayed Lean type determine how it may be used.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Full matrix dimension of the unexpanded one-signal primitive oracle.

Declaration kind. def.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:3210. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Definition9.2.1971 definition
  • def QuantumBlockEncoding.CubicDiagonalOracle.primitiveAmplitudeOracleDimension
      (n : ) : 
    def QuantumBlockEncoding.CubicDiagonalOracle.primitiveAmplitudeOracleDimension
      (n : ) : 
    Full matrix dimension of the unexpanded one-signal primitive oracle. 
Definition9.2.198
uses 0used by 0L∃∀N

Plain-English reading. This opaque declaration exposes the interface for “primitive amplitude oracle unitary” while keeping its implementation from unfolding automatically. External primitive matrix supplied by the oracle-label tier.

Formal status. Compiled declaration in the default ASPBE import surface; its kind and displayed Lean type determine how it may be used.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. External primitive matrix supplied by the oracle-label tier. This is only a named object for the semantic contract below. The current file does not prove that this opaque matrix is a gate-expanded unitary.

Declaration kind. opaque.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:3219. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Definition9.2.1981 definition
  • opaque QuantumBlockEncoding.CubicDiagonalOracle.primitiveAmplitudeOracleUnitary
      (n : ) :
      QuantumBlockEncoding.Matrix
        (QuantumBlockEncoding.CubicDiagonalOracle.primitiveAmplitudeOracleDimension
          n)
        (QuantumBlockEncoding.CubicDiagonalOracle.primitiveAmplitudeOracleDimension
          n)
        
    opaque QuantumBlockEncoding.CubicDiagonalOracle.primitiveAmplitudeOracleUnitary
      (n : ) :
      QuantumBlockEncoding.Matrix
        (QuantumBlockEncoding.CubicDiagonalOracle.primitiveAmplitudeOracleDimension
          n)
        (QuantumBlockEncoding.CubicDiagonalOracle.primitiveAmplitudeOracleDimension
          n)
        
    External primitive matrix supplied by the oracle-label tier.
    
    This is only a named object for the semantic contract below.  The current file
    does not prove that this opaque matrix is a gate-expanded unitary.
    
Definition9.2.199
uses 0used by 0L∃∀N

Plain-English reading. This opaque declaration exposes the interface for “primitive amplitude oracle is unitary” while keeping its implementation from unfolding automatically. Explicit unitarity obligation for the primitive oracle-label matrix.

Formal status. Compiled declaration in the default ASPBE import surface; its kind and displayed Lean type determine how it may be used.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Explicit unitarity obligation for the primitive oracle-label matrix.

Declaration kind. opaque.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:3224. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Definition9.2.1991 definition
  • opaque QuantumBlockEncoding.CubicDiagonalOracle.primitiveAmplitudeOracleIsUnitary
      (n : )
      (unitary :
        QuantumBlockEncoding.Matrix
          (QuantumBlockEncoding.CubicDiagonalOracle.primitiveAmplitudeOracleDimension
            n)
          (QuantumBlockEncoding.CubicDiagonalOracle.primitiveAmplitudeOracleDimension
            n)
          ) :
      Prop
    opaque QuantumBlockEncoding.CubicDiagonalOracle.primitiveAmplitudeOracleIsUnitary
      (n : )
      (unitary :
        QuantumBlockEncoding.Matrix
          (QuantumBlockEncoding.CubicDiagonalOracle.primitiveAmplitudeOracleDimension
            n)
          (QuantumBlockEncoding.CubicDiagonalOracle.primitiveAmplitudeOracleDimension
            n)
          ) :
      Prop
    Explicit unitarity obligation for the primitive oracle-label matrix. 
Definition9.2.200
uses 0used by 0L∃∀N

Plain-English reading. This opaque declaration exposes the interface for “primitive amplitude oracle clean block extracts” while keeping its implementation from unfolding automatically. Explicit clean-block extraction obligation for the primitive oracle-label matrix.

Formal status. Compiled declaration in the default ASPBE import surface; its kind and displayed Lean type determine how it may be used.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Explicit clean-block extraction obligation for the primitive oracle-label matrix.

Declaration kind. opaque.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:3229. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Definition9.2.2001 definition
  • opaque QuantumBlockEncoding.CubicDiagonalOracle.primitiveAmplitudeOracleCleanBlockExtracts
      (n : )
      (unitary :
        QuantumBlockEncoding.Matrix
          (QuantumBlockEncoding.CubicDiagonalOracle.primitiveAmplitudeOracleDimension
            n)
          (QuantumBlockEncoding.CubicDiagonalOracle.primitiveAmplitudeOracleDimension
            n)
          )
      (block :
        QuantumBlockEncoding.Matrix (QuantumBlockEncoding.gridSize n)
          (QuantumBlockEncoding.gridSize n) ) :
      Prop
    opaque QuantumBlockEncoding.CubicDiagonalOracle.primitiveAmplitudeOracleCleanBlockExtracts
      (n : )
      (unitary :
        QuantumBlockEncoding.Matrix
          (QuantumBlockEncoding.CubicDiagonalOracle.primitiveAmplitudeOracleDimension
            n)
          (QuantumBlockEncoding.CubicDiagonalOracle.primitiveAmplitudeOracleDimension
            n)
          )
      (block :
        QuantumBlockEncoding.Matrix
          (QuantumBlockEncoding.gridSize n)
          (QuantumBlockEncoding.gridSize n)
          ) :
      Prop
    Explicit clean-block extraction obligation for the primitive oracle-label matrix. 
Definition9.2.201
uses 0used by 0L∃∀N

Plain-English reading. This definition gives the library's named construction or computation for “primitive amplitude oracle semantic contract”. Primitive one-signal amplitude-oracle semantic contract.

Formal status. Compiled declaration in the default ASPBE import surface; its kind and displayed Lean type determine how it may be used.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Primitive one-signal amplitude-oracle semantic contract. This contract keeps the unexpanded primitive tier honest: it requires both a unitarity obligation for the named oracle matrix and a clean-block extraction obligation whose extracted block satisfies the diagonal target contract.

Declaration kind. def.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:3241. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Definition9.2.2011 definition
  • def QuantumBlockEncoding.CubicDiagonalOracle.primitiveAmplitudeOracleSemanticContract
      (n : ) : Prop
    def QuantumBlockEncoding.CubicDiagonalOracle.primitiveAmplitudeOracleSemanticContract
      (n : ) : Prop
    Primitive one-signal amplitude-oracle semantic contract.
    
    This contract keeps the unexpanded primitive tier honest: it requires both a
    unitarity obligation for the named oracle matrix and a clean-block extraction
    obligation whose extracted block satisfies the diagonal target contract.
    
Theorem9.2.202
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “primitive amplitude oracle semantic contract unitary”; the hypotheses and conclusion in the code panel fix its exact scope.

Formal status. Compiled theorem in the default ASPBE import surface; the displayed Lean signature is the authoritative claim.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. The source declaration has no docstring. The reader cue above is generated from its kind and name and does not replace the Lean signature.

Declaration kind. theorem.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:3248. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem9.2.2021 theorem
  • theorem QuantumBlockEncoding.CubicDiagonalOracle.primitiveAmplitudeOracleSemanticContract_unitary
      (n : )
      (h :
        QuantumBlockEncoding.CubicDiagonalOracle.primitiveAmplitudeOracleSemanticContract
          n) :
      QuantumBlockEncoding.CubicDiagonalOracle.primitiveAmplitudeOracleIsUnitary
        n
        (QuantumBlockEncoding.CubicDiagonalOracle.primitiveAmplitudeOracleUnitary
          n)
    theorem QuantumBlockEncoding.CubicDiagonalOracle.primitiveAmplitudeOracleSemanticContract_unitary
      (n : )
      (h :
        QuantumBlockEncoding.CubicDiagonalOracle.primitiveAmplitudeOracleSemanticContract
          n) :
      QuantumBlockEncoding.CubicDiagonalOracle.primitiveAmplitudeOracleIsUnitary
        n
        (QuantumBlockEncoding.CubicDiagonalOracle.primitiveAmplitudeOracleUnitary
          n)
Theorem9.2.203
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “primitive amplitude oracle semantic contract clean block eq target”; the hypotheses and conclusion in the code panel fix its exact scope.

Formal status. Compiled theorem in the default ASPBE import surface; the displayed Lean signature is the authoritative claim.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. The source declaration has no docstring. The reader cue above is generated from its kind and name and does not replace the Lean signature.

Declaration kind. theorem.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:3253. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem9.2.2031 theorem
  • theorem QuantumBlockEncoding.CubicDiagonalOracle.primitiveAmplitudeOracleSemanticContract_cleanBlock_eq_target
      (n : )
      (h :
        QuantumBlockEncoding.CubicDiagonalOracle.primitiveAmplitudeOracleSemanticContract
          n) :
       block,
        QuantumBlockEncoding.CubicDiagonalOracle.primitiveAmplitudeOracleCleanBlockExtracts
            n
            (QuantumBlockEncoding.CubicDiagonalOracle.primitiveAmplitudeOracleUnitary
              n)
            block 
          block.PointwiseEq
            (QuantumBlockEncoding.CubicDiagonalOracle.cubicDiagonalTarget
                n).operator
    theorem QuantumBlockEncoding.CubicDiagonalOracle.primitiveAmplitudeOracleSemanticContract_cleanBlock_eq_target
      (n : )
      (h :
        QuantumBlockEncoding.CubicDiagonalOracle.primitiveAmplitudeOracleSemanticContract
          n) :
       block,
        QuantumBlockEncoding.CubicDiagonalOracle.primitiveAmplitudeOracleCleanBlockExtracts
            n
            (QuantumBlockEncoding.CubicDiagonalOracle.primitiveAmplitudeOracleUnitary
              n)
            block 
          block.PointwiseEq
            (QuantumBlockEncoding.CubicDiagonalOracle.cubicDiagonalTarget
                n).operator
Definition9.2.204
uses 0used by 0L∃∀N

Plain-English reading. This definition gives the library's named construction or computation for “expanded amplitude oracle layout”. Expanded arithmetic route layout.

Formal status. Compiled declaration in the default ASPBE import surface; its kind and displayed Lean type determine how it may be used.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Expanded arithmetic route layout. The workspace count is explicit because the reversible arithmetic, angle synthesis, and uncomputation proof are not yet fixed to one resource backend.

Declaration kind. def.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:3268. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Definition9.2.2041 definition
  • def QuantumBlockEncoding.CubicDiagonalOracle.expandedAmplitudeOracleLayout
      (n workspaceQubits : ) : QuantumBlockEncoding.RegisterLayout
    def QuantumBlockEncoding.CubicDiagonalOracle.expandedAmplitudeOracleLayout
      (n workspaceQubits : ) :
      QuantumBlockEncoding.RegisterLayout
    Expanded arithmetic route layout.
    
    The workspace count is explicit because the reversible arithmetic, angle
    synthesis, and uncomputation proof are not yet fixed to one resource backend.
    
Theorem9.2.205
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “expanded amplitude oracle layout auxiliary qubits”; the hypotheses and conclusion in the code panel fix its exact scope.

Formal status. Compiled theorem in the default ASPBE import surface; the displayed Lean signature is the authoritative claim.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. The source declaration has no docstring. The reader cue above is generated from its kind and name and does not replace the Lean signature.

Declaration kind. theorem.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:3273. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem9.2.2051 theorem
  • theorem QuantumBlockEncoding.CubicDiagonalOracle.expandedAmplitudeOracleLayout_auxiliaryQubits
      (n workspaceQubits : ) :
      (QuantumBlockEncoding.CubicDiagonalOracle.expandedAmplitudeOracleLayout
            n workspaceQubits).auxiliaryQubits =
        1 + workspaceQubits
    theorem QuantumBlockEncoding.CubicDiagonalOracle.expandedAmplitudeOracleLayout_auxiliaryQubits
      (n workspaceQubits : ) :
      (QuantumBlockEncoding.CubicDiagonalOracle.expandedAmplitudeOracleLayout
            n
            workspaceQubits).auxiliaryQubits =
        1 + workspaceQubits
Theorem9.2.206
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “expanded amplitude oracle normalizer eq”; the hypotheses and conclusion in the code panel fix its exact scope. The expanded route targets the same exact normalizer 'alpha = 1'.

Formal status. Compiled theorem in the default ASPBE import surface; the displayed Lean signature is the authoritative claim.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. The expanded route targets the same exact normalizer 'alpha = 1'.

Declaration kind. theorem.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:3280. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem9.2.2061 theorem
  • theorem QuantumBlockEncoding.CubicDiagonalOracle.expandedAmplitudeOracleNormalizer_eq
      (n _workspaceQubits : ) :
      QuantumBlockEncoding.CubicDiagonalOracle.exactNormalizer n = 1
    theorem QuantumBlockEncoding.CubicDiagonalOracle.expandedAmplitudeOracleNormalizer_eq
      (n _workspaceQubits : ) :
      QuantumBlockEncoding.CubicDiagonalOracle.exactNormalizer
          n =
        1
    The expanded route targets the same exact normalizer `alpha = 1`. 
Definition9.2.207
uses 0used by 0L∃∀N

Plain-English reading. This record groups the data and proof fields needed for “standard ry clean entry scalar tier”. A proposition-valued field is a requirement until a constructor supplies it. Scalar-tier contract for the standard 'R_y' clean-entry identity.

Formal status. Data contract in the default import surface; proposition-valued fields are obligations, not automatically established facts.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Scalar-tier contract for the standard 'R_y' clean-entry identity. The project-local matrix layer is still exact 'Rat', so 'arccos' and 'cos' are represented here by backend-supplied scalar functions. The contract keeps the standard convention explicit: for every rational amplitude 'a' in '[0, 1]', the clean signal entry of 'R_y (2 * arccos a)' is exactly 'a' after embedding into the backend scalar tier.

Declaration kind. structure.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:3293. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Definition9.2.2071 definition
  • complete
    structure QuantumBlockEncoding.CubicDiagonalOracle.StandardRyCleanEntryScalarTier :
      Type 1
    structure QuantumBlockEncoding.CubicDiagonalOracle.StandardRyCleanEntryScalarTier :
      Type 1
    Scalar-tier contract for the standard `R_y` clean-entry identity.
    
    The project-local matrix layer is still exact `Rat`, so `arccos` and `cos`
    are represented here by backend-supplied scalar functions.  The contract keeps
    the standard convention explicit: for every rational amplitude `a` in `[0, 1]`,
    the clean signal entry of `R_y (2 * arccos a)` is exactly `a` after embedding
    into the backend scalar tier.
    

    Fields

    Scalar : Type
    ratAmplitude :   self.Scalar
    thetaForAmplitude : self.Scalar  self.Scalar
    cleanEntry : self.Scalar  self.Scalar
    cleanEntry_of_range :  (a : ), 0  a  a  1  self.cleanEntry (self.thetaForAmplitude (self.ratAmplitude a)) = self.ratAmplitude a
    thetaFormula : String
    cleanEntryFormula : String
Definition9.2.208
uses 0used by 0L∃∀N

Plain-English reading. This definition gives the library's named construction or computation for “expanded ry clean entry for cubic amplitudes”. Indexwise clean-entry obligation for the cubic diagonal amplitudes in a chosen standard-'R_y' scalar tier.

Formal status. Compiled declaration in the default ASPBE import surface; its kind and displayed Lean type determine how it may be used.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Indexwise clean-entry obligation for the cubic diagonal amplitudes in a chosen standard-'R_y' scalar tier.

Declaration kind. def.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:3308. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Definition9.2.2081 definition
  • def QuantumBlockEncoding.CubicDiagonalOracle.expandedRyCleanEntryForCubicAmplitudes
      (tier :
        QuantumBlockEncoding.CubicDiagonalOracle.StandardRyCleanEntryScalarTier)
      (n : ) : Prop
    def QuantumBlockEncoding.CubicDiagonalOracle.expandedRyCleanEntryForCubicAmplitudes
      (tier :
        QuantumBlockEncoding.CubicDiagonalOracle.StandardRyCleanEntryScalarTier)
      (n : ) : Prop
    Indexwise clean-entry obligation for the cubic diagonal amplitudes in a chosen
    standard-`R_y` scalar tier.
    
Theorem9.2.209
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “expanded ry clean entry for cubic amplitudes of standard tier”; the hypotheses and conclusion in the code panel fix its exact scope. 'DIAG-EXP-RY-001': the standard scalar-tier 'R_y' clean-entry contract applies to every cubic grid amplitude because the existing Lean range lemmas prove '0 <= (j / 2^n)^3 <= 1'.

Formal status. Compiled theorem in the default ASPBE import surface; the displayed Lean signature is the authoritative claim.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. 'DIAG-EXP-RY-001': the standard scalar-tier 'R_y' clean-entry contract applies to every cubic grid amplitude because the existing Lean range lemmas prove '0 <= (j / 2^n)^3 <= 1'.

Declaration kind. theorem.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:3321. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem9.2.2091 theorem
  • theorem QuantumBlockEncoding.CubicDiagonalOracle.expandedRyCleanEntryForCubicAmplitudes_of_standardTier
      (tier :
        QuantumBlockEncoding.CubicDiagonalOracle.StandardRyCleanEntryScalarTier)
      (n : ) :
      QuantumBlockEncoding.CubicDiagonalOracle.expandedRyCleanEntryForCubicAmplitudes
        tier n
    theorem QuantumBlockEncoding.CubicDiagonalOracle.expandedRyCleanEntryForCubicAmplitudes_of_standardTier
      (tier :
        QuantumBlockEncoding.CubicDiagonalOracle.StandardRyCleanEntryScalarTier)
      (n : ) :
      QuantumBlockEncoding.CubicDiagonalOracle.expandedRyCleanEntryForCubicAmplitudes
        tier n
    `DIAG-EXP-RY-001`: the standard scalar-tier `R_y` clean-entry contract applies
    to every cubic grid amplitude because the existing Lean range lemmas prove
    `0 <= (j / 2^n)^3 <= 1`.
    
Definition9.2.210
uses 0used by 0L∃∀N

Plain-English reading. This opaque declaration exposes the interface for “expanded arithmetic computes cubic amplitude” while keeping its implementation from unfolding automatically. Semantic obligation that the expanded reversible arithmetic computes 'a_j = (j / 2^n)^3' into the named workspace.

Formal status. Compiled declaration in the default ASPBE import surface; its kind and displayed Lean type determine how it may be used.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Semantic obligation that the expanded reversible arithmetic computes 'a_j = (j / 2^n)^3' into the named workspace.

Declaration kind. opaque.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:3334. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Definition9.2.2101 definition
  • opaque QuantumBlockEncoding.CubicDiagonalOracle.expandedArithmeticComputesCubicAmplitude
      (n workspaceQubits : ) : Prop
    opaque QuantumBlockEncoding.CubicDiagonalOracle.expandedArithmeticComputesCubicAmplitude
      (n workspaceQubits : ) : Prop
    Semantic obligation that the expanded reversible arithmetic computes
    `a_j = (j / 2^n)^3` into the named workspace.
    
Definition9.2.211
uses 0used by 0L∃∀N

Plain-English reading. This record groups the data and proof fields needed for “expanded cubic arithmetic backend”. A proposition-valued field is a requirement until a constructor supplies it. Backend-level shape for the expanded reversible arithmetic compute phase.

Formal status. Data contract in the default import surface; proposition-valued fields are obligations, not automatically established facts.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Backend-level shape for the expanded reversible arithmetic compute phase. The structure records only the compute half of the route: starting from a clean workspace, the backend returns the same system index together with a workspace whose distinguished amplitude register contains 'CubicStatePreparation.cubicAmplitude n j'. Clean uncompute remains the separate obligation 'expandedWorkspaceCleanUncomputed'.

Declaration kind. structure.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:3346. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Definition9.2.2111 definition
  • complete
    structure QuantumBlockEncoding.CubicDiagonalOracle.ExpandedCubicArithmeticBackend
      (n workspaceQubits : ) : Type 1
    structure QuantumBlockEncoding.CubicDiagonalOracle.ExpandedCubicArithmeticBackend
      (n workspaceQubits : ) : Type 1
    Backend-level shape for the expanded reversible arithmetic compute phase.
    
    The structure records only the compute half of the route: starting from a
    clean workspace, the backend returns the same system index together with a
    workspace whose distinguished amplitude register contains
    `CubicStatePreparation.cubicAmplitude n j`.  Clean uncompute remains the
    separate obligation `expandedWorkspaceCleanUncomputed`.
    

    Fields

    Workspace : Type
    workspaceQubitCount : 
    workspaceQubitCount_eq : self.workspaceQubitCount = workspaceQubits
    zeroWorkspace : self.Workspace
    amplitudeRegister : self.Workspace  
    compute : Fin (QuantumBlockEncoding.gridSize n)  self.Workspace  Fin (QuantumBlockEncoding.gridSize n) × self.Workspace
Definition9.2.212
uses 0used by 0L∃∀N

Plain-English reading. This definition gives the library's named construction or computation for “symbolic expanded cubic arithmetic backend”. Symbolic compute-phase backend for 'DIAG-EXP-ARITH-BACKEND-001'.

Formal status. Compiled declaration in the default ASPBE import surface; its kind and displayed Lean type determine how it may be used.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Symbolic compute-phase backend for 'DIAG-EXP-ARITH-BACKEND-001'. This witness records only the pointwise arithmetic value written by the compute phase. It does not certify a reversible gate implementation, clean uncompute, or the bridge to 'expandedArithmeticComputesCubicAmplitude'.

Declaration kind. def.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:3361. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Definition9.2.2121 definition
  • def QuantumBlockEncoding.CubicDiagonalOracle.symbolicExpandedCubicArithmeticBackend
      (n workspaceQubits : ) :
      QuantumBlockEncoding.CubicDiagonalOracle.ExpandedCubicArithmeticBackend
        n workspaceQubits
    def QuantumBlockEncoding.CubicDiagonalOracle.symbolicExpandedCubicArithmeticBackend
      (n workspaceQubits : ) :
      QuantumBlockEncoding.CubicDiagonalOracle.ExpandedCubicArithmeticBackend
        n workspaceQubits
    Symbolic compute-phase backend for `DIAG-EXP-ARITH-BACKEND-001`.
    
    This witness records only the pointwise arithmetic value written by the compute
    phase.  It does not certify a reversible gate implementation, clean uncompute,
    or the bridge to `expandedArithmeticComputesCubicAmplitude`.
    
Definition9.2.213
uses 0used by 0L∃∀N

Plain-English reading. This definition gives the library's named construction or computation for “expanded arithmetic backend computes cubic amplitude”. Pointwise arithmetic-backend semantics for 'DIAG-EXP-ARITH-001'.

Formal status. Compiled declaration in the default ASPBE import surface; its kind and displayed Lean type determine how it may be used.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Pointwise arithmetic-backend semantics for 'DIAG-EXP-ARITH-001'. For each system index 'j', the compute phase preserves 'j' and writes exactly the cubic diagonal amplitude into its distinguished amplitude register.

Declaration kind. def.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:3377. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Definition9.2.2131 definition
  • def QuantumBlockEncoding.CubicDiagonalOracle.expandedArithmeticBackendComputesCubicAmplitude
      {n workspaceQubits : }
      (backend :
        QuantumBlockEncoding.CubicDiagonalOracle.ExpandedCubicArithmeticBackend
          n workspaceQubits) :
      Prop
    def QuantumBlockEncoding.CubicDiagonalOracle.expandedArithmeticBackendComputesCubicAmplitude
      {n workspaceQubits : }
      (backend :
        QuantumBlockEncoding.CubicDiagonalOracle.ExpandedCubicArithmeticBackend
          n workspaceQubits) :
      Prop
    Pointwise arithmetic-backend semantics for `DIAG-EXP-ARITH-001`.
    
    For each system index `j`, the compute phase preserves `j` and writes exactly
    the cubic diagonal amplitude into its distinguished amplitude register.
    
Theorem9.2.214
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “symbolic expanded cubic arithmetic backend computes”; the hypotheses and conclusion in the code panel fix its exact scope. The symbolic backend satisfies the pointwise compute contract for every system index.

Formal status. Compiled theorem in the default ASPBE import surface; the displayed Lean signature is the authoritative claim.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. The symbolic backend satisfies the pointwise compute contract for every system index. The opaque expanded-route predicate still requires a separate backend bridge witness.

Declaration kind. theorem.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:3391. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem9.2.2141 theorem
  • theorem QuantumBlockEncoding.CubicDiagonalOracle.symbolicExpandedCubicArithmeticBackend_computes
      (n workspaceQubits : ) :
      QuantumBlockEncoding.CubicDiagonalOracle.expandedArithmeticBackendComputesCubicAmplitude
        (QuantumBlockEncoding.CubicDiagonalOracle.symbolicExpandedCubicArithmeticBackend
          n workspaceQubits)
    theorem QuantumBlockEncoding.CubicDiagonalOracle.symbolicExpandedCubicArithmeticBackend_computes
      (n workspaceQubits : ) :
      QuantumBlockEncoding.CubicDiagonalOracle.expandedArithmeticBackendComputesCubicAmplitude
        (QuantumBlockEncoding.CubicDiagonalOracle.symbolicExpandedCubicArithmeticBackend
          n workspaceQubits)
    The symbolic backend satisfies the pointwise compute contract for every system
    index.  The opaque expanded-route predicate still requires a separate backend
    bridge witness.
    
Definition9.2.215
uses 0used by 0L∃∀N

Plain-English reading. This definition gives the library's named construction or computation for “expanded arithmetic backend bridge”. Bridge obligation from a concrete arithmetic backend to the expanded route predicate.

Formal status. Compiled declaration in the default ASPBE import surface; its kind and displayed Lean type determine how it may be used.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Bridge obligation from a concrete arithmetic backend to the expanded route predicate. This is conditional for the same reason as the rotation bridge: the backend must still justify that its pointwise compute semantics are the semantics of the route predicate used by the block-encoding contract.

Declaration kind. def.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:3406. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Definition9.2.2151 definition
  • def QuantumBlockEncoding.CubicDiagonalOracle.expandedArithmeticBackendBridge
      {n workspaceQubits : }
      (backend :
        QuantumBlockEncoding.CubicDiagonalOracle.ExpandedCubicArithmeticBackend
          n workspaceQubits) :
      Prop
    def QuantumBlockEncoding.CubicDiagonalOracle.expandedArithmeticBackendBridge
      {n workspaceQubits : }
      (backend :
        QuantumBlockEncoding.CubicDiagonalOracle.ExpandedCubicArithmeticBackend
          n workspaceQubits) :
      Prop
    Bridge obligation from a concrete arithmetic backend to the expanded route
    predicate.  This is conditional for the same reason as the rotation bridge:
    the backend must still justify that its pointwise compute semantics are the
    semantics of the route predicate used by the block-encoding contract.
    
Theorem9.2.216
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “expanded arithmetic computes cubic amplitude of backend bridge”; the hypotheses and conclusion in the code panel fix its exact scope.

Formal status. Compiled theorem in the default ASPBE import surface; the displayed Lean signature is the authoritative claim.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. The source declaration has no docstring. The reader cue above is generated from its kind and name and does not replace the Lean signature.

Declaration kind. theorem.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:3412. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem9.2.2161 theorem
  • theorem QuantumBlockEncoding.CubicDiagonalOracle.expandedArithmeticComputesCubicAmplitude_of_backendBridge
      {n workspaceQubits : }
      (backend :
        QuantumBlockEncoding.CubicDiagonalOracle.ExpandedCubicArithmeticBackend
          n workspaceQubits)
      (hBackend :
        QuantumBlockEncoding.CubicDiagonalOracle.expandedArithmeticBackendComputesCubicAmplitude
          backend)
      (hBridge :
        QuantumBlockEncoding.CubicDiagonalOracle.expandedArithmeticBackendBridge
          backend) :
      QuantumBlockEncoding.CubicDiagonalOracle.expandedArithmeticComputesCubicAmplitude
        n workspaceQubits
    theorem QuantumBlockEncoding.CubicDiagonalOracle.expandedArithmeticComputesCubicAmplitude_of_backendBridge
      {n workspaceQubits : }
      (backend :
        QuantumBlockEncoding.CubicDiagonalOracle.ExpandedCubicArithmeticBackend
          n workspaceQubits)
      (hBackend :
        QuantumBlockEncoding.CubicDiagonalOracle.expandedArithmeticBackendComputesCubicAmplitude
          backend)
      (hBridge :
        QuantumBlockEncoding.CubicDiagonalOracle.expandedArithmeticBackendBridge
          backend) :
      QuantumBlockEncoding.CubicDiagonalOracle.expandedArithmeticComputesCubicAmplitude
        n workspaceQubits
Theorem9.2.217
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “expanded arithmetic backend bridge iff of computes”; the hypotheses and conclusion in the code panel fix its exact scope. General normal form for arithmetic backend bridge proof search.

Formal status. Compiled theorem in the default ASPBE import surface; the displayed Lean signature is the authoritative claim.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. General normal form for arithmetic backend bridge proof search. Once a backend's pointwise compute contract is available, proving its bridge is equivalent to proving the opaque expanded-route predicate itself. This lemma is a proof-reduction aid; it does not supply the route semantics.

Declaration kind. theorem.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:3427. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem9.2.2171 theorem
  • theorem QuantumBlockEncoding.CubicDiagonalOracle.expandedArithmeticBackendBridge_iff_of_computes
      {n workspaceQubits : }
      (backend :
        QuantumBlockEncoding.CubicDiagonalOracle.ExpandedCubicArithmeticBackend
          n workspaceQubits)
      (hBackend :
        QuantumBlockEncoding.CubicDiagonalOracle.expandedArithmeticBackendComputesCubicAmplitude
          backend) :
      QuantumBlockEncoding.CubicDiagonalOracle.expandedArithmeticBackendBridge
          backend 
        QuantumBlockEncoding.CubicDiagonalOracle.expandedArithmeticComputesCubicAmplitude
          n workspaceQubits
    theorem QuantumBlockEncoding.CubicDiagonalOracle.expandedArithmeticBackendBridge_iff_of_computes
      {n workspaceQubits : }
      (backend :
        QuantumBlockEncoding.CubicDiagonalOracle.ExpandedCubicArithmeticBackend
          n workspaceQubits)
      (hBackend :
        QuantumBlockEncoding.CubicDiagonalOracle.expandedArithmeticBackendComputesCubicAmplitude
          backend) :
      QuantumBlockEncoding.CubicDiagonalOracle.expandedArithmeticBackendBridge
          backend 
        QuantumBlockEncoding.CubicDiagonalOracle.expandedArithmeticComputesCubicAmplitude
          n workspaceQubits
    General normal form for arithmetic backend bridge proof search.
    
    Once a backend's pointwise compute contract is available, proving its bridge is
    equivalent to proving the opaque expanded-route predicate itself.  This lemma
    is a proof-reduction aid; it does not supply the route semantics.
    
Theorem9.2.218
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “expanded arithmetic computes cubic amplitude of symbolic backend bridge”; the hypotheses and conclusion in the code panel fix its exact scope. Specialized conditional closure for the symbolic arithmetic backend.

Formal status. Compiled theorem in the default ASPBE import surface; the displayed Lean signature is the authoritative claim.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Specialized conditional closure for the symbolic arithmetic backend. This does not prove the backend bridge witness; it only packages the already compiled pointwise compute proof with a future honest bridge witness for 'DIAG-ARITH-BACKEND-BRIDGE-001'.

Declaration kind. theorem.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:3448. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem9.2.2181 theorem
  • theorem QuantumBlockEncoding.CubicDiagonalOracle.expandedArithmeticComputesCubicAmplitude_of_symbolicBackendBridge
      (n workspaceQubits : )
      (hBridge :
        QuantumBlockEncoding.CubicDiagonalOracle.expandedArithmeticBackendBridge
          (QuantumBlockEncoding.CubicDiagonalOracle.symbolicExpandedCubicArithmeticBackend
            n workspaceQubits)) :
      QuantumBlockEncoding.CubicDiagonalOracle.expandedArithmeticComputesCubicAmplitude
        n workspaceQubits
    theorem QuantumBlockEncoding.CubicDiagonalOracle.expandedArithmeticComputesCubicAmplitude_of_symbolicBackendBridge
      (n workspaceQubits : )
      (hBridge :
        QuantumBlockEncoding.CubicDiagonalOracle.expandedArithmeticBackendBridge
          (QuantumBlockEncoding.CubicDiagonalOracle.symbolicExpandedCubicArithmeticBackend
            n workspaceQubits)) :
      QuantumBlockEncoding.CubicDiagonalOracle.expandedArithmeticComputesCubicAmplitude
        n workspaceQubits
    Specialized conditional closure for the symbolic arithmetic backend.
    
    This does not prove the backend bridge witness; it only packages the already
    compiled pointwise compute proof with a future honest bridge witness for
    `DIAG-ARITH-BACKEND-BRIDGE-001`.
    
Theorem9.2.219
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “symbolic expanded cubic arithmetic backend bridge iff”; the hypotheses and conclusion in the code panel fix its exact scope. Normal form for the symbolic arithmetic bridge obligation.

Formal status. Compiled theorem in the default ASPBE import surface; the displayed Lean signature is the authoritative claim.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Normal form for the symbolic arithmetic bridge obligation. For the symbolic backend, the pointwise compute proof is already compiled, so the bridge obligation is logically equivalent to the opaque expanded-route predicate itself. This is a proof-reduction lemma, not a bridge witness: it keeps 'DIAG-ARITH-BACKEND-BRIDGE-001' blocked until a concrete route-semantics representation proves 'expandedArithmeticComputesCubicAmplitude'.

Declaration kind. theorem.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:3468. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem9.2.2191 theorem
  • theorem QuantumBlockEncoding.CubicDiagonalOracle.symbolicExpandedCubicArithmeticBackend_bridge_iff
      (n workspaceQubits : ) :
      QuantumBlockEncoding.CubicDiagonalOracle.expandedArithmeticBackendBridge
          (QuantumBlockEncoding.CubicDiagonalOracle.symbolicExpandedCubicArithmeticBackend
            n workspaceQubits) 
        QuantumBlockEncoding.CubicDiagonalOracle.expandedArithmeticComputesCubicAmplitude
          n workspaceQubits
    theorem QuantumBlockEncoding.CubicDiagonalOracle.symbolicExpandedCubicArithmeticBackend_bridge_iff
      (n workspaceQubits : ) :
      QuantumBlockEncoding.CubicDiagonalOracle.expandedArithmeticBackendBridge
          (QuantumBlockEncoding.CubicDiagonalOracle.symbolicExpandedCubicArithmeticBackend
            n workspaceQubits) 
        QuantumBlockEncoding.CubicDiagonalOracle.expandedArithmeticComputesCubicAmplitude
          n workspaceQubits
    Normal form for the symbolic arithmetic bridge obligation.
    
    For the symbolic backend, the pointwise compute proof is already compiled, so
    the bridge obligation is logically equivalent to the opaque expanded-route
    predicate itself.  This is a proof-reduction lemma, not a bridge witness: it
    keeps `DIAG-ARITH-BACKEND-BRIDGE-001` blocked until a concrete route-semantics
    representation proves `expandedArithmeticComputesCubicAmplitude`.
    
Theorem9.2.220
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “fixed denom cubic payload lt capacity”; the hypotheses and conclusion in the code panel fix its exact scope. 'DIAG-ARITH-FIXED-DENOM-CAP-001': the fixed-denominator cubic payload fits in the '3 * n'-qubit workspace register.

Formal status. Compiled theorem in the default ASPBE import surface; the displayed Lean signature is the authoritative claim.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. 'DIAG-ARITH-FIXED-DENOM-CAP-001': the fixed-denominator cubic payload fits in the '3 * n'-qubit workspace register.

Declaration kind. theorem.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:3481. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem9.2.2201 theorem
  • theorem QuantumBlockEncoding.CubicDiagonalOracle.fixedDenomCubicPayload_lt_capacity
      (n : ) (j : Fin (QuantumBlockEncoding.gridSize n)) :
      j ^ 3 < QuantumBlockEncoding.gridSize (3 * n)
    theorem QuantumBlockEncoding.CubicDiagonalOracle.fixedDenomCubicPayload_lt_capacity
      (n : )
      (j :
        Fin
          (QuantumBlockEncoding.gridSize n)) :
      j ^ 3 <
        QuantumBlockEncoding.gridSize (3 * n)
    `DIAG-ARITH-FIXED-DENOM-CAP-001`: the fixed-denominator cubic payload fits in
    the `3 * n`-qubit workspace register.
    
Theorem9.2.221
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “fixed denom cubic amplitude eq”; the hypotheses and conclusion in the code panel fix its exact scope. 'DIAG-ARITH-FIXED-DENOM-ALG-001': projecting the fixed-denominator payload 'j.val ^ 3' by the '3 * n'-qubit denominator recovers the cubic grid amplitude.

Formal status. Compiled theorem in the default ASPBE import surface; the displayed Lean signature is the authoritative claim.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. 'DIAG-ARITH-FIXED-DENOM-ALG-001': projecting the fixed-denominator payload 'j.val ^ 3' by the '3 * n'-qubit denominator recovers the cubic grid amplitude.

Declaration kind. theorem.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:3493. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem9.2.2211 theorem
  • theorem QuantumBlockEncoding.CubicDiagonalOracle.fixedDenomCubicAmplitude_eq
      (n : ) (j : Fin (QuantumBlockEncoding.gridSize n)) :
      j ^ 3 / (QuantumBlockEncoding.gridSize (3 * n)) =
        QuantumBlockEncoding.CubicStatePreparation.cubicAmplitude n j
    theorem QuantumBlockEncoding.CubicDiagonalOracle.fixedDenomCubicAmplitude_eq
      (n : )
      (j :
        Fin
          (QuantumBlockEncoding.gridSize n)) :
      j ^ 3 /
          (QuantumBlockEncoding.gridSize
              (3 * n)) =
        QuantumBlockEncoding.CubicStatePreparation.cubicAmplitude
          n j
    `DIAG-ARITH-FIXED-DENOM-ALG-001`: projecting the fixed-denominator payload
    `j.val ^ 3` by the `3 * n`-qubit denominator recovers the cubic grid
    amplitude.
    
Definition9.2.222
uses 0used by 0L∃∀N

Plain-English reading. This definition gives the library's named construction or computation for “fixed denom cubic arithmetic backend”. 'DIAG-ARITH-FIXED-DENOM-BACKEND-001': concrete compute-phase backend whose '3 * n'-qubit workspace stores the fixed-denominator payload 'j.val ^ 3'.

Formal status. Compiled declaration in the default ASPBE import surface; its kind and displayed Lean type determine how it may be used.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. 'DIAG-ARITH-FIXED-DENOM-BACKEND-001': concrete compute-phase backend whose '3 * n'-qubit workspace stores the fixed-denominator payload 'j.val ^ 3'.

Declaration kind. def.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:3509. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Definition9.2.2221 definition
  • def QuantumBlockEncoding.CubicDiagonalOracle.fixedDenomCubicArithmeticBackend
      (n : ) :
      QuantumBlockEncoding.CubicDiagonalOracle.ExpandedCubicArithmeticBackend
        n (3 * n)
    def QuantumBlockEncoding.CubicDiagonalOracle.fixedDenomCubicArithmeticBackend
      (n : ) :
      QuantumBlockEncoding.CubicDiagonalOracle.ExpandedCubicArithmeticBackend
        n (3 * n)
    `DIAG-ARITH-FIXED-DENOM-BACKEND-001`: concrete compute-phase backend whose
    `3 * n`-qubit workspace stores the fixed-denominator payload `j.val ^ 3`.
    
Theorem9.2.223
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “fixed denom cubic arithmetic backend computes”; the hypotheses and conclusion in the code panel fix its exact scope. Pointwise compute contract for the fixed-denominator arithmetic backend.

Formal status. Compiled theorem in the default ASPBE import surface; the displayed Lean signature is the authoritative claim.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Pointwise compute contract for the fixed-denominator arithmetic backend. This closes the backend leaf only; the bridge to 'expandedArithmeticComputesCubicAmplitude' remains a separate semantic obligation.

Declaration kind. theorem.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:3527. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem9.2.2231 theorem
  • theorem QuantumBlockEncoding.CubicDiagonalOracle.fixedDenomCubicArithmeticBackend_computes
      (n : ) :
      QuantumBlockEncoding.CubicDiagonalOracle.expandedArithmeticBackendComputesCubicAmplitude
        (QuantumBlockEncoding.CubicDiagonalOracle.fixedDenomCubicArithmeticBackend
          n)
    theorem QuantumBlockEncoding.CubicDiagonalOracle.fixedDenomCubicArithmeticBackend_computes
      (n : ) :
      QuantumBlockEncoding.CubicDiagonalOracle.expandedArithmeticBackendComputesCubicAmplitude
        (QuantumBlockEncoding.CubicDiagonalOracle.fixedDenomCubicArithmeticBackend
          n)
    Pointwise compute contract for the fixed-denominator arithmetic backend.
    
    This closes the backend leaf only; the bridge to
    `expandedArithmeticComputesCubicAmplitude` remains a separate semantic
    obligation.
    
Definition9.2.224
uses 0used by 0L∃∀N

Plain-English reading. This definition gives the library's named construction or computation for “expanded arithmetic computes cubic amplitude transparent”. Transparent arithmetic-route interface for 'DIAG-ARITH-ROUTE-TRANSPARENT-001'.

Formal status. Compiled declaration in the default ASPBE import surface; its kind and displayed Lean type determine how it may be used.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Transparent arithmetic-route interface for 'DIAG-ARITH-ROUTE-TRANSPARENT-001'. This records that some explicit backend satisfies the pointwise compute contract. It is intentionally weaker than the opaque expanded-route predicate: using it as a route certificate still requires a later named bridge or contract refactor.

Declaration kind. def.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:3546. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Definition9.2.2241 definition
  • def QuantumBlockEncoding.CubicDiagonalOracle.expandedArithmeticComputesCubicAmplitudeTransparent
      (n workspaceQubits : ) : Prop
    def QuantumBlockEncoding.CubicDiagonalOracle.expandedArithmeticComputesCubicAmplitudeTransparent
      (n workspaceQubits : ) : Prop
    Transparent arithmetic-route interface for `DIAG-ARITH-ROUTE-TRANSPARENT-001`.
    
    This records that some explicit backend satisfies the pointwise compute
    contract.  It is intentionally weaker than the opaque expanded-route predicate:
    using it as a route certificate still requires a later named bridge or contract
    refactor.
    
Theorem9.2.225
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “fixed denom cubic arithmetic route transparent”; the hypotheses and conclusion in the code panel fix its exact scope. Fixed-denominator witness for the transparent arithmetic route interface.

Formal status. Compiled theorem in the default ASPBE import surface; the displayed Lean signature is the authoritative claim.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Fixed-denominator witness for the transparent arithmetic route interface. This packages the already compiled fixed-denominator backend and its pointwise compute theorem. It does not prove 'expandedArithmeticComputesCubicAmplitude n (3 * n)'.

Declaration kind. theorem.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:3558. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem9.2.2251 theorem
  • theorem QuantumBlockEncoding.CubicDiagonalOracle.fixedDenomCubicArithmeticRouteTransparent
      (n : ) :
      QuantumBlockEncoding.CubicDiagonalOracle.expandedArithmeticComputesCubicAmplitudeTransparent
        n (3 * n)
    theorem QuantumBlockEncoding.CubicDiagonalOracle.fixedDenomCubicArithmeticRouteTransparent
      (n : ) :
      QuantumBlockEncoding.CubicDiagonalOracle.expandedArithmeticComputesCubicAmplitudeTransparent
        n (3 * n)
    Fixed-denominator witness for the transparent arithmetic route interface.
    
    This packages the already compiled fixed-denominator backend and its pointwise
    compute theorem.  It does not prove
    `expandedArithmeticComputesCubicAmplitude n (3 * n)`.
    
Theorem9.2.226
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “fixed denom cubic arithmetic backend bridge iff”; the hypotheses and conclusion in the code panel fix its exact scope. Fixed-denominator normal form for the arithmetic bridge obligation.

Formal status. Compiled theorem in the default ASPBE import surface; the displayed Lean signature is the authoritative claim.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Fixed-denominator normal form for the arithmetic bridge obligation. The concrete backend's pointwise compute proof is available, so direct bridge search is equivalent to proving the opaque expanded-route predicate itself. This records the remaining route-semantics gap without supplying a bridge witness.

Declaration kind. theorem.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:3572. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem9.2.2261 theorem
  • theorem QuantumBlockEncoding.CubicDiagonalOracle.fixedDenomCubicArithmeticBackend_bridge_iff
      (n : ) :
      QuantumBlockEncoding.CubicDiagonalOracle.expandedArithmeticBackendBridge
          (QuantumBlockEncoding.CubicDiagonalOracle.fixedDenomCubicArithmeticBackend
            n) 
        QuantumBlockEncoding.CubicDiagonalOracle.expandedArithmeticComputesCubicAmplitude
          n (3 * n)
    theorem QuantumBlockEncoding.CubicDiagonalOracle.fixedDenomCubicArithmeticBackend_bridge_iff
      (n : ) :
      QuantumBlockEncoding.CubicDiagonalOracle.expandedArithmeticBackendBridge
          (QuantumBlockEncoding.CubicDiagonalOracle.fixedDenomCubicArithmeticBackend
            n) 
        QuantumBlockEncoding.CubicDiagonalOracle.expandedArithmeticComputesCubicAmplitude
          n (3 * n)
    Fixed-denominator normal form for the arithmetic bridge obligation.
    
    The concrete backend's pointwise compute proof is available, so direct bridge
    search is equivalent to proving the opaque expanded-route predicate itself.
    This records the remaining route-semantics gap without supplying a bridge
    witness.
    
Definition9.2.227
uses 0used by 0L∃∀N

Plain-English reading. This opaque declaration exposes the interface for “expanded controlled ry uses cubic angle” while keeping its implementation from unfolding automatically. Semantic obligation for the standard 'R_y' convention on the signal qubit: for each basis index 'j', the route uses 'theta_j = 2 * arccos ((j / 2^n)^3)', so the clean entry is 'cos (theta_j / 2) = (j / 2^n)^3'.

Formal status. Compiled declaration in the default ASPBE import surface; its kind and displayed Lean type determine how it may be used.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Semantic obligation for the standard 'R_y' convention on the signal qubit: for each basis index 'j', the route uses 'theta_j = 2 * arccos ((j / 2^n)^3)', so the clean entry is 'cos (theta_j / 2) = (j / 2^n)^3'.

Declaration kind. opaque.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:3586. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Definition9.2.2271 definition
  • opaque QuantumBlockEncoding.CubicDiagonalOracle.expandedControlledRyUsesCubicAngle
      (n workspaceQubits : ) : Prop
    opaque QuantumBlockEncoding.CubicDiagonalOracle.expandedControlledRyUsesCubicAngle
      (n workspaceQubits : ) : Prop
    Semantic obligation for the standard `R_y` convention on the signal qubit:
    for each basis index `j`, the route uses
    `theta_j = 2 * arccos ((j / 2^n)^3)`, so the clean entry is
    `cos (theta_j / 2) = (j / 2^n)^3`.
    
Definition9.2.228
uses 0used by 0L∃∀N

Plain-English reading. This definition gives the library's named construction or computation for “expanded controlled ry uses cubic angle transparent”. Transparent controlled-'R_y' angle-convention interface for 'DIAG-RY-TRANSPARENT-INTERFACE-001'.

Formal status. Compiled declaration in the default ASPBE import surface; its kind and displayed Lean type determine how it may be used.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Transparent controlled-'R_y' angle-convention interface for 'DIAG-RY-TRANSPARENT-INTERFACE-001'. This records only the already compiled scalar clean-entry fact for every standard tier. It does not prove the opaque route predicate 'expandedControlledRyUsesCubicAngle'.

Declaration kind. def.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:3597. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Definition9.2.2281 definition
  • def QuantumBlockEncoding.CubicDiagonalOracle.expandedControlledRyUsesCubicAngleTransparent
      (n _workspaceQubits : ) : Prop
    def QuantumBlockEncoding.CubicDiagonalOracle.expandedControlledRyUsesCubicAngleTransparent
      (n _workspaceQubits : ) : Prop
    Transparent controlled-`R_y` angle-convention interface for
    `DIAG-RY-TRANSPARENT-INTERFACE-001`.
    
    This records only the already compiled scalar clean-entry fact for every
    standard tier.  It does not prove the opaque route predicate
    `expandedControlledRyUsesCubicAngle`.
    
Theorem9.2.229
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “fixed denom controlled ry route transparent”; the hypotheses and conclusion in the code panel fix its exact scope. Fixed-denominator wrapper for the transparent controlled-'R_y' route.

Formal status. Compiled theorem in the default ASPBE import surface; the displayed Lean signature is the authoritative claim.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Fixed-denominator wrapper for the transparent controlled-'R_y' route. This packages the scalar-tier theorem at workspace size '3 * n'. It does not provide a backend witness for 'expandedControlledRyUsesCubicAngle'.

Declaration kind. theorem.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:3608. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem9.2.2291 theorem
  • theorem QuantumBlockEncoding.CubicDiagonalOracle.fixedDenomControlledRyRouteTransparent
      (n : ) :
      QuantumBlockEncoding.CubicDiagonalOracle.expandedControlledRyUsesCubicAngleTransparent
        n (3 * n)
    theorem QuantumBlockEncoding.CubicDiagonalOracle.fixedDenomControlledRyRouteTransparent
      (n : ) :
      QuantumBlockEncoding.CubicDiagonalOracle.expandedControlledRyUsesCubicAngleTransparent
        n (3 * n)
    Fixed-denominator wrapper for the transparent controlled-`R_y` route.
    
    This packages the scalar-tier theorem at workspace size `3 * n`.  It does not
    provide a backend witness for `expandedControlledRyUsesCubicAngle`.
    
Definition9.2.230
uses 0used by 0L∃∀N

Plain-English reading. This definition gives the library's named construction or computation for “expanded controlled ry backend bridge”. Backend bridge obligation from the scalar-tier 'R_y' clean-entry interface to the expanded route predicate.

Formal status. Compiled declaration in the default ASPBE import surface; its kind and displayed Lean type determine how it may be used.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Backend bridge obligation from the scalar-tier 'R_y' clean-entry interface to the expanded route predicate. This is intentionally conditional: the file already proves the scalar clean-entry fact for cubic amplitudes, but a concrete backend must still justify that this fact is the semantics of the controlled rotation used by the route.

Declaration kind. def.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:3622. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Definition9.2.2301 definition
  • def QuantumBlockEncoding.CubicDiagonalOracle.expandedControlledRyBackendBridge
      (tier :
        QuantumBlockEncoding.CubicDiagonalOracle.StandardRyCleanEntryScalarTier)
      (n workspaceQubits : ) : Prop
    def QuantumBlockEncoding.CubicDiagonalOracle.expandedControlledRyBackendBridge
      (tier :
        QuantumBlockEncoding.CubicDiagonalOracle.StandardRyCleanEntryScalarTier)
      (n workspaceQubits : ) : Prop
    Backend bridge obligation from the scalar-tier `R_y` clean-entry interface to
    the expanded route predicate.
    
    This is intentionally conditional: the file already proves the scalar
    clean-entry fact for cubic amplitudes, but a concrete backend must still justify
    that this fact is the semantics of the controlled rotation used by the route.
    
Theorem9.2.231
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “expanded controlled ry uses cubic angle of backend bridge”; the hypotheses and conclusion in the code panel fix its exact scope.

Formal status. Compiled theorem in the default ASPBE import surface; the displayed Lean signature is the authoritative claim.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. The source declaration has no docstring. The reader cue above is generated from its kind and name and does not replace the Lean signature.

Declaration kind. theorem.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:3628. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem9.2.2311 theorem
  • theorem QuantumBlockEncoding.CubicDiagonalOracle.expandedControlledRyUsesCubicAngle_of_backendBridge
      (tier :
        QuantumBlockEncoding.CubicDiagonalOracle.StandardRyCleanEntryScalarTier)
      (n workspaceQubits : )
      (hBridge :
        QuantumBlockEncoding.CubicDiagonalOracle.expandedControlledRyBackendBridge
          tier n workspaceQubits) :
      QuantumBlockEncoding.CubicDiagonalOracle.expandedControlledRyUsesCubicAngle
        n workspaceQubits
    theorem QuantumBlockEncoding.CubicDiagonalOracle.expandedControlledRyUsesCubicAngle_of_backendBridge
      (tier :
        QuantumBlockEncoding.CubicDiagonalOracle.StandardRyCleanEntryScalarTier)
      (n workspaceQubits : )
      (hBridge :
        QuantumBlockEncoding.CubicDiagonalOracle.expandedControlledRyBackendBridge
          tier n workspaceQubits) :
      QuantumBlockEncoding.CubicDiagonalOracle.expandedControlledRyUsesCubicAngle
        n workspaceQubits
Theorem9.2.232
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “expanded controlled ry backend bridge iff of standard tier”; the hypotheses and conclusion in the code panel fix its exact scope. Normal form for controlled-rotation backend-bridge proof search.

Formal status. Compiled theorem in the default ASPBE import surface; the displayed Lean signature is the authoritative claim.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Normal form for controlled-rotation backend-bridge proof search. The scalar-tier clean-entry theorem is already compiled, so proving a backend bridge for the controlled rotation is equivalent to proving the opaque route predicate itself. This is a proof-reduction lemma for 'DIAG-RY-BACKEND-WITNESS-001'; it does not supply the missing backend semantics.

Declaration kind. theorem.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:3644. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem9.2.2321 theorem
  • theorem QuantumBlockEncoding.CubicDiagonalOracle.expandedControlledRyBackendBridge_iff_of_standardTier
      (tier :
        QuantumBlockEncoding.CubicDiagonalOracle.StandardRyCleanEntryScalarTier)
      (n workspaceQubits : ) :
      QuantumBlockEncoding.CubicDiagonalOracle.expandedControlledRyBackendBridge
          tier n workspaceQubits 
        QuantumBlockEncoding.CubicDiagonalOracle.expandedControlledRyUsesCubicAngle
          n workspaceQubits
    theorem QuantumBlockEncoding.CubicDiagonalOracle.expandedControlledRyBackendBridge_iff_of_standardTier
      (tier :
        QuantumBlockEncoding.CubicDiagonalOracle.StandardRyCleanEntryScalarTier)
      (n workspaceQubits : ) :
      QuantumBlockEncoding.CubicDiagonalOracle.expandedControlledRyBackendBridge
          tier n workspaceQubits 
        QuantumBlockEncoding.CubicDiagonalOracle.expandedControlledRyUsesCubicAngle
          n workspaceQubits
    Normal form for controlled-rotation backend-bridge proof search.
    
    The scalar-tier clean-entry theorem is already compiled, so proving a backend
    bridge for the controlled rotation is equivalent to proving the opaque route
    predicate itself.  This is a proof-reduction lemma for
    `DIAG-RY-BACKEND-WITNESS-001`; it does not supply the missing backend
    semantics.
    
Definition9.2.233
uses 0used by 0L∃∀N

Plain-English reading. This record groups the data and proof fields needed for “expanded controlled ry workspace readonly witness”. A proposition-valued field is a requirement until a constructor supplies it. Transparent readonly-rotation interface for 'DIAG-RY-WORKSPACE-READONLY-001'.

Formal status. Data contract in the default import surface; proposition-valued fields are obligations, not automatically established facts.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Transparent readonly-rotation interface for 'DIAG-RY-WORKSPACE-READONLY-001'. This records that the controlled signal rotation may read the arithmetic workspace payload while preserving both the system index and workspace value. It does not prove 'expandedWorkspaceCleanUncomputed' or any opaque route predicate.

Declaration kind. structure.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:3666. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Definition9.2.2331 definition
  • complete
    structure QuantumBlockEncoding.CubicDiagonalOracle.ExpandedControlledRyWorkspaceReadonlyWitness
      (n workspaceQubits : ) : Type 1
    structure QuantumBlockEncoding.CubicDiagonalOracle.ExpandedControlledRyWorkspaceReadonlyWitness
      (n workspaceQubits : ) : Type 1
    Transparent readonly-rotation interface for
    `DIAG-RY-WORKSPACE-READONLY-001`.
    
    This records that the controlled signal rotation may read the arithmetic
    workspace payload while preserving both the system index and workspace value.
    It does not prove `expandedWorkspaceCleanUncomputed` or any opaque route
    predicate.
    

    Fields

    backend : QuantumBlockEncoding.CubicDiagonalOracle.ExpandedCubicArithmeticBackend n workspaceQubits
    angleConvention : QuantumBlockEncoding.CubicDiagonalOracle.expandedControlledRyUsesCubicAngleTransparent n workspaceQubits
    rotationStep : Fin (QuantumBlockEncoding.gridSize n) 
      self.backend.Workspace  Fin 2  (Fin (QuantumBlockEncoding.gridSize n) × self.backend.Workspace) × Fin 2
    preserves_index :  (j : Fin (QuantumBlockEncoding.gridSize n)) (w : self.backend.Workspace) (signal : Fin 2),
      (self.rotationStep j w signal).1.1 = j
    preserves_workspace :  (j : Fin (QuantumBlockEncoding.gridSize n)) (w : self.backend.Workspace) (signal : Fin 2),
      (self.rotationStep j w signal).1.2 = w
Definition9.2.234
uses 0used by 0L∃∀N

Plain-English reading. This definition gives the library's named construction or computation for “expanded controlled ry workspace readonly transparent”. Transparent predicate for a controlled-rotation step that preserves the arithmetic workspace.

Formal status. Compiled declaration in the default ASPBE import surface; its kind and displayed Lean type determine how it may be used.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Transparent predicate for a controlled-rotation step that preserves the arithmetic workspace. This is intentionally separate from route-level cleanup; a later packet must choose either a transparent cleanup contract refactor or a nontrivial bridge.

Declaration kind. def.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:3686. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Definition9.2.2341 definition
  • def QuantumBlockEncoding.CubicDiagonalOracle.expandedControlledRyWorkspaceReadonlyTransparent
      (n workspaceQubits : ) : Prop
    def QuantumBlockEncoding.CubicDiagonalOracle.expandedControlledRyWorkspaceReadonlyTransparent
      (n workspaceQubits : ) : Prop
    Transparent predicate for a controlled-rotation step that preserves the
    arithmetic workspace.
    
    This is intentionally separate from route-level cleanup; a later packet must
    choose either a transparent cleanup contract refactor or a nontrivial bridge.
    
Definition9.2.235
uses 0used by 0L∃∀N

Plain-English reading. This opaque declaration exposes the interface for “expanded workspace clean uncomputed” while keeping its implementation from unfolding automatically. Semantic obligation that the arithmetic workspace is returned clean.

Formal status. Compiled declaration in the default ASPBE import surface; its kind and displayed Lean type determine how it may be used.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Semantic obligation that the arithmetic workspace is returned clean.

Declaration kind. opaque.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:3691. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Definition9.2.2351 definition
  • opaque QuantumBlockEncoding.CubicDiagonalOracle.expandedWorkspaceCleanUncomputed
      (n workspaceQubits : ) : Prop
    opaque QuantumBlockEncoding.CubicDiagonalOracle.expandedWorkspaceCleanUncomputed
      (n workspaceQubits : ) : Prop
    Semantic obligation that the arithmetic workspace is returned clean. 
Definition9.2.236
uses 0used by 0L∃∀N

Plain-English reading. This record groups the data and proof fields needed for “expanded arithmetic clean uncompute witness”. A proposition-valued field is a requirement until a constructor supplies it. Transparent clean-uncompute interface for 'DIAG-EXP-UNCOMP-TRANSPARENT-INTERFACE-001'.

Formal status. Data contract in the default import surface; proposition-valued fields are obligations, not automatically established facts.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Transparent clean-uncompute interface for 'DIAG-EXP-UNCOMP-TRANSPARENT-INTERFACE-001'. This records the data needed to state honest reversible cleanup: a compute step matching the backend on clean workspace, an uncompute step that preserves the system index, and a two-sided cleanup condition after compute. It does not prove the opaque route predicate 'expandedWorkspaceCleanUncomputed'.

Declaration kind. structure.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:3703. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Definition9.2.2361 definition
  • complete
    structure QuantumBlockEncoding.CubicDiagonalOracle.ExpandedArithmeticCleanUncomputeWitness
      (n workspaceQubits : ) : Type 1
    structure QuantumBlockEncoding.CubicDiagonalOracle.ExpandedArithmeticCleanUncomputeWitness
      (n workspaceQubits : ) : Type 1
    Transparent clean-uncompute interface for
    `DIAG-EXP-UNCOMP-TRANSPARENT-INTERFACE-001`.
    
    This records the data needed to state honest reversible cleanup: a compute step
    matching the backend on clean workspace, an uncompute step that preserves the
    system index, and a two-sided cleanup condition after compute.  It does not
    prove the opaque route predicate `expandedWorkspaceCleanUncomputed`.
    

    Fields

    backend : QuantumBlockEncoding.CubicDiagonalOracle.ExpandedCubicArithmeticBackend n workspaceQubits
    computes : QuantumBlockEncoding.CubicDiagonalOracle.expandedArithmeticBackendComputesCubicAmplitude self.backend
    computeStep : Fin (QuantumBlockEncoding.gridSize n) 
      self.backend.Workspace  Fin (QuantumBlockEncoding.gridSize n) × self.backend.Workspace
    uncomputeStep : Fin (QuantumBlockEncoding.gridSize n) 
      self.backend.Workspace  Fin (QuantumBlockEncoding.gridSize n) × self.backend.Workspace
    computeStep_matches_backend_on_clean :  (j : Fin (QuantumBlockEncoding.gridSize n)),
      self.computeStep j self.backend.zeroWorkspace = self.backend.compute j self.backend.zeroWorkspace
    compute_preserves_index :  (j : Fin (QuantumBlockEncoding.gridSize n)) (w : self.backend.Workspace), (self.computeStep j w).1 = j
    uncompute_preserves_index :  (j : Fin (QuantumBlockEncoding.gridSize n)) (w : self.backend.Workspace), (self.uncomputeStep j w).1 = j
    uncompute_after_compute :  (j : Fin (QuantumBlockEncoding.gridSize n)) (w : self.backend.Workspace),
      self.uncomputeStep j (self.computeStep j w).2 = (j, w)
Definition9.2.237
uses 0used by 0L∃∀N

Plain-English reading. This definition gives the library's named construction or computation for “expanded workspace clean uncomputed transparent”. Transparent cleanup predicate backed by an explicit reversible witness.

Formal status. Compiled declaration in the default ASPBE import surface; its kind and displayed Lean type determine how it may be used.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Transparent cleanup predicate backed by an explicit reversible witness. This is intentionally separate from 'expandedWorkspaceCleanUncomputed'; a later route must either instantiate this interface and refactor a contract to consume it, or supply a nontrivial bridge to the opaque predicate.

Declaration kind. def.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:3731. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Definition9.2.2371 definition
  • def QuantumBlockEncoding.CubicDiagonalOracle.expandedWorkspaceCleanUncomputedTransparent
      (n workspaceQubits : ) : Prop
    def QuantumBlockEncoding.CubicDiagonalOracle.expandedWorkspaceCleanUncomputedTransparent
      (n workspaceQubits : ) : Prop
    Transparent cleanup predicate backed by an explicit reversible witness.
    
    This is intentionally separate from `expandedWorkspaceCleanUncomputed`; a later
    route must either instantiate this interface and refactor a contract to consume
    it, or supply a nontrivial bridge to the opaque predicate.
    
Theorem9.2.238
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “expanded workspace clean uncomputed transparent of witness”; the hypotheses and conclusion in the code panel fix its exact scope.

Formal status. Compiled theorem in the default ASPBE import surface; the displayed Lean signature is the authoritative claim.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. The source declaration has no docstring. The reader cue above is generated from its kind and name and does not replace the Lean signature.

Declaration kind. theorem.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:3735. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem9.2.2381 theorem
  • theorem QuantumBlockEncoding.CubicDiagonalOracle.expandedWorkspaceCleanUncomputedTransparent_of_witness
      {n workspaceQubits : }
      (w :
        QuantumBlockEncoding.CubicDiagonalOracle.ExpandedArithmeticCleanUncomputeWitness
          n workspaceQubits) :
      QuantumBlockEncoding.CubicDiagonalOracle.expandedWorkspaceCleanUncomputedTransparent
        n workspaceQubits
    theorem QuantumBlockEncoding.CubicDiagonalOracle.expandedWorkspaceCleanUncomputedTransparent_of_witness
      {n workspaceQubits : }
      (w :
        QuantumBlockEncoding.CubicDiagonalOracle.ExpandedArithmeticCleanUncomputeWitness
          n workspaceQubits) :
      QuantumBlockEncoding.CubicDiagonalOracle.expandedWorkspaceCleanUncomputedTransparent
        n workspaceQubits
Definition9.2.239
uses 0used by 0L∃∀N

Plain-English reading. This definition gives the library's named construction or computation for “fixed denom cubic compute step”. Fixed-denominator reversible compute lift for 'DIAG-EXP-UNCOMP-FIXED-DENOM-WITNESS-001'.

Formal status. Compiled declaration in the default ASPBE import surface; its kind and displayed Lean type determine how it may be used.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Fixed-denominator reversible compute lift for 'DIAG-EXP-UNCOMP-FIXED-DENOM-WITNESS-001'. This modular-add step agrees with 'fixedDenomCubicArithmeticBackend' on clean workspace, but unlike the backend's overwrite-style compute field it is invertible on every workspace value.

Declaration kind. def.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:3783. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Definition9.2.2391 definition
  • def QuantumBlockEncoding.CubicDiagonalOracle.fixedDenomCubicComputeStep
      (n : ) :
      Fin (QuantumBlockEncoding.gridSize n) 
        (QuantumBlockEncoding.CubicDiagonalOracle.fixedDenomCubicArithmeticBackend
              n).Workspace 
          Fin (QuantumBlockEncoding.gridSize n) ×
            (QuantumBlockEncoding.CubicDiagonalOracle.fixedDenomCubicArithmeticBackend
                n).Workspace
    def QuantumBlockEncoding.CubicDiagonalOracle.fixedDenomCubicComputeStep
      (n : ) :
      Fin (QuantumBlockEncoding.gridSize n) 
        (QuantumBlockEncoding.CubicDiagonalOracle.fixedDenomCubicArithmeticBackend
              n).Workspace 
          Fin
              (QuantumBlockEncoding.gridSize
                n) ×
            (QuantumBlockEncoding.CubicDiagonalOracle.fixedDenomCubicArithmeticBackend
                n).Workspace
    Fixed-denominator reversible compute lift for
    `DIAG-EXP-UNCOMP-FIXED-DENOM-WITNESS-001`.
    
    This modular-add step agrees with `fixedDenomCubicArithmeticBackend` on clean
    workspace, but unlike the backend's overwrite-style compute field it is
    invertible on every workspace value.
    
Definition9.2.240
uses 0used by 0L∃∀N

Plain-English reading. This definition gives the library's named construction or computation for “fixed denom cubic uncompute step”. Modular-subtract inverse for 'fixedDenomCubicComputeStep'.

Formal status. Compiled declaration in the default ASPBE import surface; its kind and displayed Lean type determine how it may be used.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Modular-subtract inverse for 'fixedDenomCubicComputeStep'.

Declaration kind. def.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:3791. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Definition9.2.2401 definition
  • def QuantumBlockEncoding.CubicDiagonalOracle.fixedDenomCubicUncomputeStep
      (n : ) :
      Fin (QuantumBlockEncoding.gridSize n) 
        (QuantumBlockEncoding.CubicDiagonalOracle.fixedDenomCubicArithmeticBackend
              n).Workspace 
          Fin (QuantumBlockEncoding.gridSize n) ×
            (QuantumBlockEncoding.CubicDiagonalOracle.fixedDenomCubicArithmeticBackend
                n).Workspace
    def QuantumBlockEncoding.CubicDiagonalOracle.fixedDenomCubicUncomputeStep
      (n : ) :
      Fin (QuantumBlockEncoding.gridSize n) 
        (QuantumBlockEncoding.CubicDiagonalOracle.fixedDenomCubicArithmeticBackend
              n).Workspace 
          Fin
              (QuantumBlockEncoding.gridSize
                n) ×
            (QuantumBlockEncoding.CubicDiagonalOracle.fixedDenomCubicArithmeticBackend
                n).Workspace
    Modular-subtract inverse for `fixedDenomCubicComputeStep`. 
Theorem9.2.241
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “fixed denom cubic compute step matches backend on clean”; the hypotheses and conclusion in the code panel fix its exact scope.

Formal status. Compiled theorem in the default ASPBE import surface; the displayed Lean signature is the authoritative claim.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. The source declaration has no docstring. The reader cue above is generated from its kind and name and does not replace the Lean signature.

Declaration kind. theorem.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:3798. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem9.2.2411 theorem
  • theorem QuantumBlockEncoding.CubicDiagonalOracle.fixedDenomCubicComputeStep_matches_backend_on_clean
      (n : ) (j : Fin (QuantumBlockEncoding.gridSize n)) :
      QuantumBlockEncoding.CubicDiagonalOracle.fixedDenomCubicComputeStep n
          j
          (QuantumBlockEncoding.CubicDiagonalOracle.fixedDenomCubicArithmeticBackend
              n).zeroWorkspace =
        (QuantumBlockEncoding.CubicDiagonalOracle.fixedDenomCubicArithmeticBackend
              n).compute
          j
          (QuantumBlockEncoding.CubicDiagonalOracle.fixedDenomCubicArithmeticBackend
              n).zeroWorkspace
    theorem QuantumBlockEncoding.CubicDiagonalOracle.fixedDenomCubicComputeStep_matches_backend_on_clean
      (n : )
      (j :
        Fin
          (QuantumBlockEncoding.gridSize n)) :
      QuantumBlockEncoding.CubicDiagonalOracle.fixedDenomCubicComputeStep
          n j
          (QuantumBlockEncoding.CubicDiagonalOracle.fixedDenomCubicArithmeticBackend
              n).zeroWorkspace =
        (QuantumBlockEncoding.CubicDiagonalOracle.fixedDenomCubicArithmeticBackend
              n).compute
          j
          (QuantumBlockEncoding.CubicDiagonalOracle.fixedDenomCubicArithmeticBackend
              n).zeroWorkspace
Theorem9.2.242
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “fixed denom cubic uncompute step after compute”; the hypotheses and conclusion in the code panel fix its exact scope.

Formal status. Compiled theorem in the default ASPBE import surface; the displayed Lean signature is the authoritative claim.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. The source declaration has no docstring. The reader cue above is generated from its kind and name and does not replace the Lean signature.

Declaration kind. theorem.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:3807. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem9.2.2421 theorem
  • theorem QuantumBlockEncoding.CubicDiagonalOracle.fixedDenomCubicUncomputeStep_after_compute
      (n : ) (j : Fin (QuantumBlockEncoding.gridSize n))
      (workspace :
        (QuantumBlockEncoding.CubicDiagonalOracle.fixedDenomCubicArithmeticBackend
            n).Workspace) :
      QuantumBlockEncoding.CubicDiagonalOracle.fixedDenomCubicUncomputeStep
          n j
          (QuantumBlockEncoding.CubicDiagonalOracle.fixedDenomCubicComputeStep
              n j workspace).2 =
        (j, workspace)
    theorem QuantumBlockEncoding.CubicDiagonalOracle.fixedDenomCubicUncomputeStep_after_compute
      (n : )
      (j :
        Fin (QuantumBlockEncoding.gridSize n))
      (workspace :
        (QuantumBlockEncoding.CubicDiagonalOracle.fixedDenomCubicArithmeticBackend
            n).Workspace) :
      QuantumBlockEncoding.CubicDiagonalOracle.fixedDenomCubicUncomputeStep
          n j
          (QuantumBlockEncoding.CubicDiagonalOracle.fixedDenomCubicComputeStep
              n j workspace).2 =
        (j, workspace)
Definition9.2.243
uses 0used by 0L∃∀N

Plain-English reading. This definition gives the library's named construction or computation for “fixed denom expanded arithmetic clean uncompute witness”. Fixed-denominator witness for the transparent clean-uncompute interface.

Formal status. Compiled declaration in the default ASPBE import surface; its kind and displayed Lean type determine how it may be used.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Fixed-denominator witness for the transparent clean-uncompute interface. This packages modular add/sub cleanup only. It does not prove the opaque predicate 'expandedWorkspaceCleanUncomputed', does not state controlled-rotation workspace-readonly semantics, and does not close extraction or unitarity.

Declaration kind. def.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:3827. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Definition9.2.2431 definition
  • def QuantumBlockEncoding.CubicDiagonalOracle.fixedDenomExpandedArithmeticCleanUncomputeWitness
      (n : ) :
      QuantumBlockEncoding.CubicDiagonalOracle.ExpandedArithmeticCleanUncomputeWitness
        n (3 * n)
    def QuantumBlockEncoding.CubicDiagonalOracle.fixedDenomExpandedArithmeticCleanUncomputeWitness
      (n : ) :
      QuantumBlockEncoding.CubicDiagonalOracle.ExpandedArithmeticCleanUncomputeWitness
        n (3 * n)
    Fixed-denominator witness for the transparent clean-uncompute interface.
    
    This packages modular add/sub cleanup only.  It does not prove the opaque
    predicate `expandedWorkspaceCleanUncomputed`, does not state controlled-rotation
    workspace-readonly semantics, and does not close extraction or unitarity.
    
Theorem9.2.244
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “fixed denom workspace clean uncomputed transparent”; the hypotheses and conclusion in the code panel fix its exact scope.

Formal status. Compiled theorem in the default ASPBE import surface; the displayed Lean signature is the authoritative claim.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. The source declaration has no docstring. The reader cue above is generated from its kind and name and does not replace the Lean signature.

Declaration kind. theorem.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:3846. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem9.2.2441 theorem
  • theorem QuantumBlockEncoding.CubicDiagonalOracle.fixedDenomWorkspaceCleanUncomputedTransparent
      (n : ) :
      QuantumBlockEncoding.CubicDiagonalOracle.expandedWorkspaceCleanUncomputedTransparent
        n (3 * n)
    theorem QuantumBlockEncoding.CubicDiagonalOracle.fixedDenomWorkspaceCleanUncomputedTransparent
      (n : ) :
      QuantumBlockEncoding.CubicDiagonalOracle.expandedWorkspaceCleanUncomputedTransparent
        n (3 * n)
Definition9.2.245
uses 0used by 0L∃∀N

Plain-English reading. This record groups the data and proof fields needed for “linear diagonal value backend”. A proposition-valued field is a requirement until a constructor supplies it. Backend-level shape for computing the hinted linear diagonal value 'x_j = j / 2^n'.

Formal status. Data contract in the default import surface; proposition-valued fields are obligations, not automatically established facts.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Backend-level shape for computing the hinted linear diagonal value 'x_j = j / 2^n'. This is a transparent value-computation support interface for 'HINT-O0-BACKEND'. It does not provide the signal rotation, rational orthogonal matrix, or clean-block equality required by 'LinearDiagonalInputBEContract'.

Declaration kind. structure.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:3860. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Definition9.2.2451 definition
  • complete
    structure QuantumBlockEncoding.CubicDiagonalOracle.LinearDiagonalValueBackend
      (n workspaceQubits : ) : Type 1
    structure QuantumBlockEncoding.CubicDiagonalOracle.LinearDiagonalValueBackend
      (n workspaceQubits : ) : Type 1
    Backend-level shape for computing the hinted linear diagonal value
    `x_j = j / 2^n`.
    
    This is a transparent value-computation support interface for `HINT-O0-BACKEND`.
    It does not provide the signal rotation, rational orthogonal matrix, or
    clean-block equality required by `LinearDiagonalInputBEContract`.
    

    Fields

    Workspace : Type
    workspaceQubitCount : 
    workspaceQubitCount_eq : self.workspaceQubitCount = workspaceQubits
    zeroWorkspace : self.Workspace
    amplitudeRegister : self.Workspace  
    compute : Fin (QuantumBlockEncoding.gridSize n)  self.Workspace  Fin (QuantumBlockEncoding.gridSize n) × self.Workspace
Definition9.2.246
uses 0used by 0L∃∀N

Plain-English reading. This definition gives the library's named construction or computation for “linear diagonal value backend computes grid point”. Pointwise value-computation contract for a linear diagonal backend.

Formal status. Compiled declaration in the default ASPBE import surface; its kind and displayed Lean type determine how it may be used.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Pointwise value-computation contract for a linear diagonal backend. On clean workspace the backend preserves the system index and writes exactly 'CubicStatePreparation.gridPoint n j' into its distinguished value register.

Declaration kind. def.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:3874. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Definition9.2.2461 definition
  • def QuantumBlockEncoding.CubicDiagonalOracle.linearDiagonalValueBackendComputesGridPoint
      {n workspaceQubits : }
      (backend :
        QuantumBlockEncoding.CubicDiagonalOracle.LinearDiagonalValueBackend
          n workspaceQubits) :
      Prop
    def QuantumBlockEncoding.CubicDiagonalOracle.linearDiagonalValueBackendComputesGridPoint
      {n workspaceQubits : }
      (backend :
        QuantumBlockEncoding.CubicDiagonalOracle.LinearDiagonalValueBackend
          n workspaceQubits) :
      Prop
    Pointwise value-computation contract for a linear diagonal backend.
    
    On clean workspace the backend preserves the system index and writes exactly
    `CubicStatePreparation.gridPoint n j` into its distinguished value register.
    
Definition9.2.247
uses 0used by 0L∃∀N

Plain-English reading. This definition gives the library's named construction or computation for “fixed denom linear diagonal value backend”. Fixed-denominator value backend for 'O_0'.

Formal status. Compiled declaration in the default ASPBE import surface; its kind and displayed Lean type determine how it may be used.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Fixed-denominator value backend for 'O_0'. The workspace stores the numerator 'j' in an 'n'-qubit register and interprets it as the rational value 'j / 2^n'.

Declaration kind. def.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:3889. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Definition9.2.2471 definition
  • def QuantumBlockEncoding.CubicDiagonalOracle.fixedDenomLinearDiagonalValueBackend
      (n : ) :
      QuantumBlockEncoding.CubicDiagonalOracle.LinearDiagonalValueBackend n
        n
    def QuantumBlockEncoding.CubicDiagonalOracle.fixedDenomLinearDiagonalValueBackend
      (n : ) :
      QuantumBlockEncoding.CubicDiagonalOracle.LinearDiagonalValueBackend
        n n
    Fixed-denominator value backend for `O_0`.
    
    The workspace stores the numerator `j` in an `n`-qubit register and interprets
    it as the rational value `j / 2^n`.
    
Theorem9.2.248
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “fixed denom linear diagonal value backend computes”; the hypotheses and conclusion in the code panel fix its exact scope. The fixed-denominator linear backend computes 'x_j = j / 2^n' on clean workspace.

Formal status. Compiled theorem in the default ASPBE import surface; the displayed Lean signature is the authoritative claim.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. The fixed-denominator linear backend computes 'x_j = j / 2^n' on clean workspace.

Declaration kind. theorem.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:3901. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem9.2.2481 theorem
  • theorem QuantumBlockEncoding.CubicDiagonalOracle.fixedDenomLinearDiagonalValueBackend_computes
      (n : ) :
      QuantumBlockEncoding.CubicDiagonalOracle.linearDiagonalValueBackendComputesGridPoint
        (QuantumBlockEncoding.CubicDiagonalOracle.fixedDenomLinearDiagonalValueBackend
          n)
    theorem QuantumBlockEncoding.CubicDiagonalOracle.fixedDenomLinearDiagonalValueBackend_computes
      (n : ) :
      QuantumBlockEncoding.CubicDiagonalOracle.linearDiagonalValueBackendComputesGridPoint
        (QuantumBlockEncoding.CubicDiagonalOracle.fixedDenomLinearDiagonalValueBackend
          n)
    The fixed-denominator linear backend computes `x_j = j / 2^n` on clean workspace. 
Definition9.2.249
uses 0used by 0L∃∀N

Plain-English reading. This record groups the data and proof fields needed for “linear diagonal value clean uncompute witness”. A proposition-valued field is a requirement until a constructor supplies it. Transparent cleanup witness for a linear value backend.

Formal status. Data contract in the default import surface; proposition-valued fields are obligations, not automatically established facts.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Transparent cleanup witness for a linear value backend. The witness uses an invertible compute/uncompute pair around the backend's clean-workspace value contract. It is intentionally separate from the missing controlled-rotation and full clean-block obligations.

Declaration kind. structure.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:3919. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Definition9.2.2491 definition
  • complete
    structure QuantumBlockEncoding.CubicDiagonalOracle.LinearDiagonalValueCleanUncomputeWitness
      (n workspaceQubits : ) : Type 1
    structure QuantumBlockEncoding.CubicDiagonalOracle.LinearDiagonalValueCleanUncomputeWitness
      (n workspaceQubits : ) : Type 1
    Transparent cleanup witness for a linear value backend.
    
    The witness uses an invertible compute/uncompute pair around the backend's
    clean-workspace value contract.  It is intentionally separate from the missing
    controlled-rotation and full clean-block obligations.
    

    Fields

    backend : QuantumBlockEncoding.CubicDiagonalOracle.LinearDiagonalValueBackend n workspaceQubits
    computes : QuantumBlockEncoding.CubicDiagonalOracle.linearDiagonalValueBackendComputesGridPoint self.backend
    computeStep : Fin (QuantumBlockEncoding.gridSize n) 
      self.backend.Workspace  Fin (QuantumBlockEncoding.gridSize n) × self.backend.Workspace
    uncomputeStep : Fin (QuantumBlockEncoding.gridSize n) 
      self.backend.Workspace  Fin (QuantumBlockEncoding.gridSize n) × self.backend.Workspace
    computeStep_matches_backend_on_clean :  (j : Fin (QuantumBlockEncoding.gridSize n)),
      self.computeStep j self.backend.zeroWorkspace = self.backend.compute j self.backend.zeroWorkspace
    compute_preserves_index :  (j : Fin (QuantumBlockEncoding.gridSize n)) (w : self.backend.Workspace), (self.computeStep j w).1 = j
    uncompute_preserves_index :  (j : Fin (QuantumBlockEncoding.gridSize n)) (w : self.backend.Workspace), (self.uncomputeStep j w).1 = j
    uncompute_after_compute :  (j : Fin (QuantumBlockEncoding.gridSize n)) (w : self.backend.Workspace),
      self.uncomputeStep j (self.computeStep j w).2 = (j, w)
Definition9.2.250
uses 0used by 0L∃∀N

Plain-English reading. This definition gives the library's named construction or computation for “linear diagonal workspace clean uncomputed transparent”. Transparent predicate for honest compute/uncompute cleanup of an 'O_0' value backend.

Formal status. Compiled declaration in the default ASPBE import surface; its kind and displayed Lean type determine how it may be used.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Transparent predicate for honest compute/uncompute cleanup of an 'O_0' value backend.

Declaration kind. def.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:3941. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Definition9.2.2501 definition
  • def QuantumBlockEncoding.CubicDiagonalOracle.linearDiagonalWorkspaceCleanUncomputedTransparent
      (n workspaceQubits : ) : Prop
    def QuantumBlockEncoding.CubicDiagonalOracle.linearDiagonalWorkspaceCleanUncomputedTransparent
      (n workspaceQubits : ) : Prop
    Transparent predicate for honest compute/uncompute cleanup of an `O_0` value backend. 
Theorem9.2.251
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “linear diagonal workspace clean uncomputed transparent of witness”; the hypotheses and conclusion in the code panel fix its exact scope.

Formal status. Compiled theorem in the default ASPBE import surface; the displayed Lean signature is the authoritative claim.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. The source declaration has no docstring. The reader cue above is generated from its kind and name and does not replace the Lean signature.

Declaration kind. theorem.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:3945. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem9.2.2511 theorem
  • theorem QuantumBlockEncoding.CubicDiagonalOracle.linearDiagonalWorkspaceCleanUncomputedTransparent_of_witness
      {n workspaceQubits : }
      (w :
        QuantumBlockEncoding.CubicDiagonalOracle.LinearDiagonalValueCleanUncomputeWitness
          n workspaceQubits) :
      QuantumBlockEncoding.CubicDiagonalOracle.linearDiagonalWorkspaceCleanUncomputedTransparent
        n workspaceQubits
    theorem QuantumBlockEncoding.CubicDiagonalOracle.linearDiagonalWorkspaceCleanUncomputedTransparent_of_witness
      {n workspaceQubits : }
      (w :
        QuantumBlockEncoding.CubicDiagonalOracle.LinearDiagonalValueCleanUncomputeWitness
          n workspaceQubits) :
      QuantumBlockEncoding.CubicDiagonalOracle.linearDiagonalWorkspaceCleanUncomputedTransparent
        n workspaceQubits
Definition9.2.252
uses 0used by 0L∃∀N

Plain-English reading. This definition gives the library's named construction or computation for “fixed denom linear diagonal compute step”. Modular-add compute step for the fixed-denominator linear backend.

Formal status. Compiled declaration in the default ASPBE import surface; its kind and displayed Lean type determine how it may be used.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Modular-add compute step for the fixed-denominator linear backend.

Declaration kind. def.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:3952. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Definition9.2.2521 definition
  • def QuantumBlockEncoding.CubicDiagonalOracle.fixedDenomLinearDiagonalComputeStep
      (n : ) :
      Fin (QuantumBlockEncoding.gridSize n) 
        (QuantumBlockEncoding.CubicDiagonalOracle.fixedDenomLinearDiagonalValueBackend
              n).Workspace 
          Fin (QuantumBlockEncoding.gridSize n) ×
            (QuantumBlockEncoding.CubicDiagonalOracle.fixedDenomLinearDiagonalValueBackend
                n).Workspace
    def QuantumBlockEncoding.CubicDiagonalOracle.fixedDenomLinearDiagonalComputeStep
      (n : ) :
      Fin (QuantumBlockEncoding.gridSize n) 
        (QuantumBlockEncoding.CubicDiagonalOracle.fixedDenomLinearDiagonalValueBackend
              n).Workspace 
          Fin
              (QuantumBlockEncoding.gridSize
                n) ×
            (QuantumBlockEncoding.CubicDiagonalOracle.fixedDenomLinearDiagonalValueBackend
                n).Workspace
    Modular-add compute step for the fixed-denominator linear backend. 
Definition9.2.253
uses 0used by 0L∃∀N

Plain-English reading. This definition gives the library's named construction or computation for “fixed denom linear diagonal uncompute step”. Modular-subtract inverse for 'fixedDenomLinearDiagonalComputeStep'.

Formal status. Compiled declaration in the default ASPBE import surface; its kind and displayed Lean type determine how it may be used.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Modular-subtract inverse for 'fixedDenomLinearDiagonalComputeStep'.

Declaration kind. def.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:3960. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Definition9.2.2531 definition
  • def QuantumBlockEncoding.CubicDiagonalOracle.fixedDenomLinearDiagonalUncomputeStep
      (n : ) :
      Fin (QuantumBlockEncoding.gridSize n) 
        (QuantumBlockEncoding.CubicDiagonalOracle.fixedDenomLinearDiagonalValueBackend
              n).Workspace 
          Fin (QuantumBlockEncoding.gridSize n) ×
            (QuantumBlockEncoding.CubicDiagonalOracle.fixedDenomLinearDiagonalValueBackend
                n).Workspace
    def QuantumBlockEncoding.CubicDiagonalOracle.fixedDenomLinearDiagonalUncomputeStep
      (n : ) :
      Fin (QuantumBlockEncoding.gridSize n) 
        (QuantumBlockEncoding.CubicDiagonalOracle.fixedDenomLinearDiagonalValueBackend
              n).Workspace 
          Fin
              (QuantumBlockEncoding.gridSize
                n) ×
            (QuantumBlockEncoding.CubicDiagonalOracle.fixedDenomLinearDiagonalValueBackend
                n).Workspace
    Modular-subtract inverse for `fixedDenomLinearDiagonalComputeStep`. 
Theorem9.2.254
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “fixed denom linear diagonal compute step matches backend on clean”; the hypotheses and conclusion in the code panel fix its exact scope.

Formal status. Compiled theorem in the default ASPBE import surface; the displayed Lean signature is the authoritative claim.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. The source declaration has no docstring. The reader cue above is generated from its kind and name and does not replace the Lean signature.

Declaration kind. theorem.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:3967. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem9.2.2541 theorem
  • theorem QuantumBlockEncoding.CubicDiagonalOracle.fixedDenomLinearDiagonalComputeStep_matches_backend_on_clean
      (n : ) (j : Fin (QuantumBlockEncoding.gridSize n)) :
      QuantumBlockEncoding.CubicDiagonalOracle.fixedDenomLinearDiagonalComputeStep
          n j
          (QuantumBlockEncoding.CubicDiagonalOracle.fixedDenomLinearDiagonalValueBackend
              n).zeroWorkspace =
        (QuantumBlockEncoding.CubicDiagonalOracle.fixedDenomLinearDiagonalValueBackend
              n).compute
          j
          (QuantumBlockEncoding.CubicDiagonalOracle.fixedDenomLinearDiagonalValueBackend
              n).zeroWorkspace
    theorem QuantumBlockEncoding.CubicDiagonalOracle.fixedDenomLinearDiagonalComputeStep_matches_backend_on_clean
      (n : )
      (j :
        Fin
          (QuantumBlockEncoding.gridSize n)) :
      QuantumBlockEncoding.CubicDiagonalOracle.fixedDenomLinearDiagonalComputeStep
          n j
          (QuantumBlockEncoding.CubicDiagonalOracle.fixedDenomLinearDiagonalValueBackend
              n).zeroWorkspace =
        (QuantumBlockEncoding.CubicDiagonalOracle.fixedDenomLinearDiagonalValueBackend
              n).compute
          j
          (QuantumBlockEncoding.CubicDiagonalOracle.fixedDenomLinearDiagonalValueBackend
              n).zeroWorkspace
Theorem9.2.255
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “fixed denom linear diagonal uncompute step after compute”; the hypotheses and conclusion in the code panel fix its exact scope.

Formal status. Compiled theorem in the default ASPBE import surface; the displayed Lean signature is the authoritative claim.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. The source declaration has no docstring. The reader cue above is generated from its kind and name and does not replace the Lean signature.

Declaration kind. theorem.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:3976. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem9.2.2551 theorem
  • theorem QuantumBlockEncoding.CubicDiagonalOracle.fixedDenomLinearDiagonalUncomputeStep_after_compute
      (n : ) (j : Fin (QuantumBlockEncoding.gridSize n))
      (workspace :
        (QuantumBlockEncoding.CubicDiagonalOracle.fixedDenomLinearDiagonalValueBackend
            n).Workspace) :
      QuantumBlockEncoding.CubicDiagonalOracle.fixedDenomLinearDiagonalUncomputeStep
          n j
          (QuantumBlockEncoding.CubicDiagonalOracle.fixedDenomLinearDiagonalComputeStep
              n j workspace).2 =
        (j, workspace)
    theorem QuantumBlockEncoding.CubicDiagonalOracle.fixedDenomLinearDiagonalUncomputeStep_after_compute
      (n : )
      (j :
        Fin (QuantumBlockEncoding.gridSize n))
      (workspace :
        (QuantumBlockEncoding.CubicDiagonalOracle.fixedDenomLinearDiagonalValueBackend
            n).Workspace) :
      QuantumBlockEncoding.CubicDiagonalOracle.fixedDenomLinearDiagonalUncomputeStep
          n j
          (QuantumBlockEncoding.CubicDiagonalOracle.fixedDenomLinearDiagonalComputeStep
              n j workspace).2 =
        (j, workspace)
Definition9.2.256
uses 0used by 0L∃∀N

Plain-English reading. This definition gives the library's named construction or computation for “fixed denom linear diagonal clean uncompute witness”. Fixed-denominator cleanup witness for the hinted 'O_0' value backend.

Formal status. Compiled declaration in the default ASPBE import surface; its kind and displayed Lean type determine how it may be used.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Fixed-denominator cleanup witness for the hinted 'O_0' value backend. This closes only the transparent value-compute/cleanup support leaf for 'HINT-O0-BACKEND'; a full 'LinearDiagonalInputBEContract' instance still needs a signal-amplitude matrix with 'IsRationalOrthogonal', clean-block equality, and resource accounting.

Declaration kind. def.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:3997. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Definition9.2.2561 definition
  • def QuantumBlockEncoding.CubicDiagonalOracle.fixedDenomLinearDiagonalCleanUncomputeWitness
      (n : ) :
      QuantumBlockEncoding.CubicDiagonalOracle.LinearDiagonalValueCleanUncomputeWitness
        n n
    def QuantumBlockEncoding.CubicDiagonalOracle.fixedDenomLinearDiagonalCleanUncomputeWitness
      (n : ) :
      QuantumBlockEncoding.CubicDiagonalOracle.LinearDiagonalValueCleanUncomputeWitness
        n n
    Fixed-denominator cleanup witness for the hinted `O_0` value backend.
    
    This closes only the transparent value-compute/cleanup support leaf for
    `HINT-O0-BACKEND`; a full `LinearDiagonalInputBEContract` instance still needs
    a signal-amplitude matrix with `IsRationalOrthogonal`, clean-block equality,
    and resource accounting.
    
Theorem9.2.257
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “fixed denom linear diagonal workspace clean uncomputed transparent”; the hypotheses and conclusion in the code panel fix its exact scope.

Formal status. Compiled theorem in the default ASPBE import surface; the displayed Lean signature is the authoritative claim.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. The source declaration has no docstring. The reader cue above is generated from its kind and name and does not replace the Lean signature.

Declaration kind. theorem.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:4016. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem9.2.2571 theorem
  • theorem QuantumBlockEncoding.CubicDiagonalOracle.fixedDenomLinearDiagonalWorkspaceCleanUncomputedTransparent
      (n : ) :
      QuantumBlockEncoding.CubicDiagonalOracle.linearDiagonalWorkspaceCleanUncomputedTransparent
        n n
    theorem QuantumBlockEncoding.CubicDiagonalOracle.fixedDenomLinearDiagonalWorkspaceCleanUncomputedTransparent
      (n : ) :
      QuantumBlockEncoding.CubicDiagonalOracle.linearDiagonalWorkspaceCleanUncomputedTransparent
        n n
Definition9.2.258
uses 0used by 0L∃∀N

Plain-English reading. This opaque declaration exposes the interface for “expanded amplitude oracle clean block extracts” while keeping its implementation from unfolding automatically. Clean-block extraction obligation for the expanded arithmetic/rotation route.

Formal status. Compiled declaration in the default ASPBE import surface; its kind and displayed Lean type determine how it may be used.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Clean-block extraction obligation for the expanded arithmetic/rotation route.

Declaration kind. opaque.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:4023. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Definition9.2.2581 definition
  • opaque QuantumBlockEncoding.CubicDiagonalOracle.expandedAmplitudeOracleCleanBlockExtracts
      (n workspaceQubits : )
      (block :
        QuantumBlockEncoding.Matrix (QuantumBlockEncoding.gridSize n)
          (QuantumBlockEncoding.gridSize n) ) :
      Prop
    opaque QuantumBlockEncoding.CubicDiagonalOracle.expandedAmplitudeOracleCleanBlockExtracts
      (n workspaceQubits : )
      (block :
        QuantumBlockEncoding.Matrix
          (QuantumBlockEncoding.gridSize n)
          (QuantumBlockEncoding.gridSize n)
          ) :
      Prop
    Clean-block extraction obligation for the expanded arithmetic/rotation route. 
Definition9.2.259
uses 0used by 0L∃∀N

Plain-English reading. This definition gives the library's named construction or computation for “expanded amplitude oracle clean block contract”. Expanded-route clean-block contract for 'DIAG-EXPANDED-CONTRACT-001'.

Formal status. Compiled declaration in the default ASPBE import surface; its kind and displayed Lean type determine how it may be used.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Expanded-route clean-block contract for 'DIAG-EXPANDED-CONTRACT-001'. This is an interface, not a proof of the expanded circuit. It keeps the transparent arithmetic witness, transparent controlled-rotation witness, and clean-uncompute obligations explicit and requires the extracted clean block to satisfy the existing diagonal contract.

Declaration kind. def.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:4035. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Definition9.2.2591 definition
  • def QuantumBlockEncoding.CubicDiagonalOracle.expandedAmplitudeOracleCleanBlockContract
      (n workspaceQubits : )
      (block :
        QuantumBlockEncoding.Matrix (QuantumBlockEncoding.gridSize n)
          (QuantumBlockEncoding.gridSize n) ) :
      Prop
    def QuantumBlockEncoding.CubicDiagonalOracle.expandedAmplitudeOracleCleanBlockContract
      (n workspaceQubits : )
      (block :
        QuantumBlockEncoding.Matrix
          (QuantumBlockEncoding.gridSize n)
          (QuantumBlockEncoding.gridSize n)
          ) :
      Prop
    Expanded-route clean-block contract for `DIAG-EXPANDED-CONTRACT-001`.
    
    This is an interface, not a proof of the expanded circuit.  It keeps the
    transparent arithmetic witness, transparent controlled-rotation witness, and
    clean-uncompute obligations explicit and requires the extracted clean block to
    satisfy the existing diagonal contract.
    
Theorem9.2.260
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “expanded amplitude oracle clean block contract diagonal”; the hypotheses and conclusion in the code panel fix its exact scope.

Formal status. Compiled theorem in the default ASPBE import surface; the displayed Lean signature is the authoritative claim.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. The source declaration has no docstring. The reader cue above is generated from its kind and name and does not replace the Lean signature.

Declaration kind. theorem.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:4044. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem9.2.2601 theorem
  • theorem QuantumBlockEncoding.CubicDiagonalOracle.expandedAmplitudeOracleCleanBlockContract_diagonal
      (n workspaceQubits : )
      (block :
        QuantumBlockEncoding.Matrix (QuantumBlockEncoding.gridSize n)
          (QuantumBlockEncoding.gridSize n) )
      (h :
        QuantumBlockEncoding.CubicDiagonalOracle.expandedAmplitudeOracleCleanBlockContract
          n workspaceQubits block) :
      QuantumBlockEncoding.CubicDiagonalOracle.diagonalCleanBlockContract n
        block
    theorem QuantumBlockEncoding.CubicDiagonalOracle.expandedAmplitudeOracleCleanBlockContract_diagonal
      (n workspaceQubits : )
      (block :
        QuantumBlockEncoding.Matrix
          (QuantumBlockEncoding.gridSize n)
          (QuantumBlockEncoding.gridSize n) )
      (h :
        QuantumBlockEncoding.CubicDiagonalOracle.expandedAmplitudeOracleCleanBlockContract
          n workspaceQubits block) :
      QuantumBlockEncoding.CubicDiagonalOracle.diagonalCleanBlockContract
        n block
Theorem9.2.261
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “expanded amplitude oracle clean block contract eq target”; the hypotheses and conclusion in the code panel fix its exact scope.

Formal status. Compiled theorem in the default ASPBE import surface; the displayed Lean signature is the authoritative claim.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. The source declaration has no docstring. The reader cue above is generated from its kind and name and does not replace the Lean signature.

Declaration kind. theorem.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:4051. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem9.2.2611 theorem
  • theorem QuantumBlockEncoding.CubicDiagonalOracle.expandedAmplitudeOracleCleanBlockContract_eq_target
      (n workspaceQubits : )
      (block :
        QuantumBlockEncoding.Matrix (QuantumBlockEncoding.gridSize n)
          (QuantumBlockEncoding.gridSize n) )
      (h :
        QuantumBlockEncoding.CubicDiagonalOracle.expandedAmplitudeOracleCleanBlockContract
          n workspaceQubits block) :
      block.PointwiseEq
        (QuantumBlockEncoding.CubicDiagonalOracle.cubicDiagonalTarget
            n).operator
    theorem QuantumBlockEncoding.CubicDiagonalOracle.expandedAmplitudeOracleCleanBlockContract_eq_target
      (n workspaceQubits : )
      (block :
        QuantumBlockEncoding.Matrix
          (QuantumBlockEncoding.gridSize n)
          (QuantumBlockEncoding.gridSize n) )
      (h :
        QuantumBlockEncoding.CubicDiagonalOracle.expandedAmplitudeOracleCleanBlockContract
          n workspaceQubits block) :
      block.PointwiseEq
        (QuantumBlockEncoding.CubicDiagonalOracle.cubicDiagonalTarget
            n).operator
Definition9.2.262
uses 0used by 0L∃∀N

Plain-English reading. This definition gives the library's named construction or computation for “expanded amplitude oracle semantic contract”. Conditional semantic interface for an expanded arithmetic/rotation route with an explicit workspace size.

Formal status. Compiled declaration in the default ASPBE import surface; its kind and displayed Lean type determine how it may be used.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Conditional semantic interface for an expanded arithmetic/rotation route with an explicit workspace size.

Declaration kind. def.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:4063. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Definition9.2.2621 definition
  • def QuantumBlockEncoding.CubicDiagonalOracle.expandedAmplitudeOracleSemanticContract
      (n workspaceQubits : ) : Prop
    def QuantumBlockEncoding.CubicDiagonalOracle.expandedAmplitudeOracleSemanticContract
      (n workspaceQubits : ) : Prop
    Conditional semantic interface for an expanded arithmetic/rotation route with
    an explicit workspace size.
    
Theorem9.2.263
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “expanded amplitude oracle semantic contract clean block eq target”; the hypotheses and conclusion in the code panel fix its exact scope.

Formal status. Compiled theorem in the default ASPBE import surface; the displayed Lean signature is the authoritative claim.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. The source declaration has no docstring. The reader cue above is generated from its kind and name and does not replace the Lean signature.

Declaration kind. theorem.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:4068. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem9.2.2631 theorem
  • theorem QuantumBlockEncoding.CubicDiagonalOracle.expandedAmplitudeOracleSemanticContract_cleanBlock_eq_target
      (n workspaceQubits : )
      (h :
        QuantumBlockEncoding.CubicDiagonalOracle.expandedAmplitudeOracleSemanticContract
          n workspaceQubits) :
       block,
        QuantumBlockEncoding.CubicDiagonalOracle.expandedAmplitudeOracleCleanBlockExtracts
            n workspaceQubits block 
          block.PointwiseEq
            (QuantumBlockEncoding.CubicDiagonalOracle.cubicDiagonalTarget
                n).operator
    theorem QuantumBlockEncoding.CubicDiagonalOracle.expandedAmplitudeOracleSemanticContract_cleanBlock_eq_target
      (n workspaceQubits : )
      (h :
        QuantumBlockEncoding.CubicDiagonalOracle.expandedAmplitudeOracleSemanticContract
          n workspaceQubits) :
       block,
        QuantumBlockEncoding.CubicDiagonalOracle.expandedAmplitudeOracleCleanBlockExtracts
            n workspaceQubits block 
          block.PointwiseEq
            (QuantumBlockEncoding.CubicDiagonalOracle.cubicDiagonalTarget
                n).operator
Definition9.2.264
uses 0used by 0L∃∀N

Plain-English reading. This definition gives the library's named construction or computation for “primitive amplitude oracle candidate”. Conditional candidate at the primitive oracle-label tier.

Formal status. Compiled declaration in the default ASPBE import surface; its kind and displayed Lean type determine how it may be used.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Conditional candidate at the primitive oracle-label tier.

Declaration kind. def.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:4080. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Definition9.2.2641 definition
  • def QuantumBlockEncoding.CubicDiagonalOracle.primitiveAmplitudeOracleCandidate
      (n : ) : QuantumBlockEncoding.OperatorBlockEncodingCandidate  n
    def QuantumBlockEncoding.CubicDiagonalOracle.primitiveAmplitudeOracleCandidate
      (n : ) :
      QuantumBlockEncoding.OperatorBlockEncodingCandidate
         n
    Conditional candidate at the primitive oracle-label tier. 
Theorem9.2.265
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “primitive amplitude oracle candidate cost tuple eq”; the hypotheses and conclusion in the code panel fix its exact scope.

Formal status. Compiled theorem in the default ASPBE import surface; the displayed Lean signature is the authoritative claim.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. The source declaration has no docstring. The reader cue above is generated from its kind and name and does not replace the Lean signature.

Declaration kind. theorem.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:4097. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem9.2.2651 theorem
  • theorem QuantumBlockEncoding.CubicDiagonalOracle.primitiveAmplitudeOracleCandidate_costTuple_eq
      (n : ) :
      ((QuantumBlockEncoding.CubicDiagonalOracle.primitiveAmplitudeOracleCandidate
                n).cost.gateCount,
          (QuantumBlockEncoding.CubicDiagonalOracle.primitiveAmplitudeOracleCandidate
                n).cost.depth,
          (QuantumBlockEncoding.CubicDiagonalOracle.primitiveAmplitudeOracleCandidate
                n).cost.auxiliaryQubits,
          (QuantumBlockEncoding.CubicDiagonalOracle.primitiveAmplitudeOracleCandidate
                n).cost.oracleCalls) =
        (1, 1, 1, 1)
    theorem QuantumBlockEncoding.CubicDiagonalOracle.primitiveAmplitudeOracleCandidate_costTuple_eq
      (n : ) :
      ((QuantumBlockEncoding.CubicDiagonalOracle.primitiveAmplitudeOracleCandidate
                n).cost.gateCount,
          (QuantumBlockEncoding.CubicDiagonalOracle.primitiveAmplitudeOracleCandidate
                n).cost.depth,
          (QuantumBlockEncoding.CubicDiagonalOracle.primitiveAmplitudeOracleCandidate
                n).cost.auxiliaryQubits,
          (QuantumBlockEncoding.CubicDiagonalOracle.primitiveAmplitudeOracleCandidate
                n).cost.oracleCalls) =
        (1, 1, 1, 1)
Theorem9.2.266
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “primitive amplitude oracle candidate unitary from contract”; the hypotheses and conclusion in the code panel fix its exact scope.

Formal status. Compiled theorem in the default ASPBE import surface; the displayed Lean signature is the authoritative claim.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. The source declaration has no docstring. The reader cue above is generated from its kind and name and does not replace the Lean signature.

Declaration kind. theorem.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:4108. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem9.2.2661 theorem
  • theorem QuantumBlockEncoding.CubicDiagonalOracle.primitiveAmplitudeOracleCandidate_unitary_from_contract
      (n : )
      (h :
        QuantumBlockEncoding.CubicDiagonalOracle.primitiveAmplitudeOracleSemanticContract
          n) :
      (QuantumBlockEncoding.CubicDiagonalOracle.primitiveAmplitudeOracleCandidate
          n).isUnitary
    theorem QuantumBlockEncoding.CubicDiagonalOracle.primitiveAmplitudeOracleCandidate_unitary_from_contract
      (n : )
      (h :
        QuantumBlockEncoding.CubicDiagonalOracle.primitiveAmplitudeOracleSemanticContract
          n) :
      (QuantumBlockEncoding.CubicDiagonalOracle.primitiveAmplitudeOracleCandidate
          n).isUnitary
Theorem9.2.267
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “primitive amplitude oracle candidate block from contract”; the hypotheses and conclusion in the code panel fix its exact scope.

Formal status. Compiled theorem in the default ASPBE import surface; the displayed Lean signature is the authoritative claim.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. The source declaration has no docstring. The reader cue above is generated from its kind and name and does not replace the Lean signature.

Declaration kind. theorem.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:4114. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem9.2.2671 theorem
  • theorem QuantumBlockEncoding.CubicDiagonalOracle.primitiveAmplitudeOracleCandidate_block_from_contract
      (n : )
      (h :
        QuantumBlockEncoding.CubicDiagonalOracle.primitiveAmplitudeOracleSemanticContract
          n) :
      (QuantumBlockEncoding.CubicDiagonalOracle.primitiveAmplitudeOracleCandidate
          n).blockContainsTarget
    theorem QuantumBlockEncoding.CubicDiagonalOracle.primitiveAmplitudeOracleCandidate_block_from_contract
      (n : )
      (h :
        QuantumBlockEncoding.CubicDiagonalOracle.primitiveAmplitudeOracleSemanticContract
          n) :
      (QuantumBlockEncoding.CubicDiagonalOracle.primitiveAmplitudeOracleCandidate
          n).blockContainsTarget
Definition9.2.268
uses 0used by 0L∃∀N

Plain-English reading. This definition gives the library's named construction or computation for “primitive amplitude oracle verified”. Conditional exact certificate for the primitive oracle-label tier.

Formal status. Compiled declaration in the default ASPBE import surface; its kind and displayed Lean type determine how it may be used.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Conditional exact certificate for the primitive oracle-label tier. This packages a verified block encoding only from an explicit proof of 'primitiveAmplitudeOracleSemanticContract n'; the contract itself remains an open primitive-oracle obligation until such a proof or accepted primitive axiom is supplied.

Declaration kind. def.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:4128. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Definition9.2.2681 definition
  • def QuantumBlockEncoding.CubicDiagonalOracle.primitiveAmplitudeOracleVerified
      (n : )
      (h :
        QuantumBlockEncoding.CubicDiagonalOracle.primitiveAmplitudeOracleSemanticContract
          n) :
      QuantumBlockEncoding.VerifiedOperatorBlockEncoding  n
    def QuantumBlockEncoding.CubicDiagonalOracle.primitiveAmplitudeOracleVerified
      (n : )
      (h :
        QuantumBlockEncoding.CubicDiagonalOracle.primitiveAmplitudeOracleSemanticContract
          n) :
      QuantumBlockEncoding.VerifiedOperatorBlockEncoding
         n
    Conditional exact certificate for the primitive oracle-label tier.
    
    This packages a verified block encoding only from an explicit proof of
    `primitiveAmplitudeOracleSemanticContract n`; the contract itself remains an
    open primitive-oracle obligation until such a proof or accepted primitive
    axiom is supplied.
    
Definition9.2.269
uses 0used by 0L∃∀N

Plain-English reading. This definition gives the library's named construction or computation for “amplitude oracle claim”. Human-facing construction claim for the first exact diagonal route.

Formal status. Compiled declaration in the default ASPBE import surface; its kind and displayed Lean type determine how it may be used.

Why it is in this chapter. State-preparation and exact rational Householder developments for the cubic benchmark family.

Technical source note. Human-facing construction claim for the first exact diagonal route.

Declaration kind. def.

Source: QuantumBlockEncoding/CubicStatePreparation.lean:4136. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Definition9.2.2691 definition
  • def QuantumBlockEncoding.CubicDiagonalOracle.amplitudeOracleClaim :
      QuantumBlockEncoding.ConstructionClaim
    def QuantumBlockEncoding.CubicDiagonalOracle.amplitudeOracleClaim :
      QuantumBlockEncoding.ConstructionClaim
    Human-facing construction claim for the first exact diagonal route.