Skip to content

Commit

Permalink
chore: remove final use of fin_destr in data macro
Browse files Browse the repository at this point in the history
  • Loading branch information
alexkeizer committed May 20, 2024
1 parent 47a1a62 commit cefe5e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Qpf/Macro/Data.lean
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ open PrettyPrinter (delab)
private def Array.enum (as : Array α) : Array (Nat × α) :=
(Array.range as.size).zip as


/--
Given a natural number `n`, produce a sequence of `n` calls of `.fs`, ending in `.fz`.
Expand Down Expand Up @@ -303,7 +302,8 @@ def mkQpf (shapeView : InductiveView) (ctorArgs : Array CtorArgs) (headT P : Ide
cases head
<;> simp
<;> apply congrArg
<;> fin_destr
<;> (funext i; fin_cases i)
<;> (funext (j : PFin2 _); fin_cases j)
<;> rfl

instance $functor:ident : MvFunctor (@TypeFun.ofCurried $(quote arity) $shape) where
Expand Down

0 comments on commit cefe5e6

Please sign in to comment.