Skip to content

Commit

Permalink
simplify a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
LeventErkok committed Sep 8, 2024
1 parent d54fa55 commit d693a55
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Documentation/SBV/Examples/KnuckleDragger/AppendRev.hs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ revApp = do
-- We'll need the consApp and associativity-of-append proof, so get a hold on to them
lconsApp <- consApp
lAppendAssoc <- appendAssoc
lAppendNull <- appendNull

revApp_induction_pre <- chainLemma "revApp_induction_pre"
(\(Forall @"x" (x :: SInteger)) (Forall @"xs" xs) (Forall @"ys" ys)
Expand Down Expand Up @@ -125,7 +124,7 @@ revApp = do
inductQ <- inductionPrinciple2 (q @Integer)

sorry "revApp" (\(Forall @"xs" (xs :: SList Integer)) (Forall @"ys" ys) -> reverse (xs ++ ys) .== reverse ys ++ reverse xs)
[revApp_induction_pre, lAppendNull, inductQ, revApp_induction_post]
[revApp_induction_pre, revApp_induction_post, inductQ]

-- | @reverse (reverse xs) == xs@
--
Expand Down

0 comments on commit d693a55

Please sign in to comment.