Pakistan resumed day four on a precarious 39 for three with Masood not out 14 and Shafiq on eight after being bowled out for 302 in their first innings and forced to follow on.
Yasir Shah, who held his first test hundred in the first innings of Pakistan, was unable to repeat that standard when he fell 13 years before Lyon - and wasted a review in a fruitless attempt to undo the decision.
A comical mix-up between tail-enders saw Pat Cummins run out Mohammad Abbas for the final wicket to wrap up the match.
CA is yet to enter into formal discussions with India about whether their series in Australia next summer will include one or more pink-ball Test matches, though both Roberts and the CA chairman Earl Eddings have commented positively about the fact the BCCI have at last scheduled a home pink-ball Test, the recent match against Bangladesh in Kolkata. We all witnessed a special knock from David Warner.
Shan Masood scored 68 in a determined, 127-ball stand that ended when he advanced to Lyon and mis-judged a drive to mid-off, where Starc took a simple catch to end a 103-run fourth-wicket stand and make the score 123-4.
Stream the Australia v Pakistan Test Series Live & Ad-Break Free During Play with KAYO SPORTS.
Lyon, from round the wicket to the right-hander, extracted some turn and bounce, and had Shafiq caught at leg-slip 20 minutes out from Tea.
The dominance continued with the ball, although with Lyon taking over from the quicks as the main threat. "We were beaten in all three departments (but) we take some positives".
"He's waiting the nail to come off the big toe, which happens to a lot of fast bowlers", Paine said.
Pakistan captain Azhar Ali said Monday that adapting to conditions more quickly and building partnerships were both crucial if his team hoped to snap a miserable Test record in Australia. "The bowlers and (I) have learned a lot from this".
The New Zealand series begins in Perth on December 12 followed by the Boxing Day test in Melbourne, New Zealand's return to the traditional fixture for the first time since 1987, and the third test in Sydney.
India, Australia and New Zealand make up the top three in the table, with Bangladesh, Pakistan and South Africa occupying the bottom three positions.