{motive : Qq.SortLocalDecls.State → Sort u} →
  ((visited : Lean.NameSet) → (result : Array Lean.LocalDecl) → motive { visited := visited, result := result }) →
    (t : Qq.SortLocalDecls.State) → motive t