{motive : Aesop.IndexMatchLocation → Sort u} →
  motive Aesop.IndexMatchLocation.none →
    motive Aesop.IndexMatchLocation.target →
      ((ldecl : Lean.LocalDecl) → motive (Aesop.IndexMatchLocation.hyp ldecl)) →
        (t : Aesop.IndexMatchLocation) → motive t