I'm with the majority:
If your company is in trouble and is about to lay people off, then it would be perfectly fine to mention to your boss that you may be leaving within the next year or so anyway, and IF layoffs happen, you wouldn't be devastated if you were chosen. Make it a casual conversation: You wouldn't be unhappy to be laid off, but you're not really ready to leave, you're not sure exactly when you'll retire. You'll be helping your boss make a difficult decision, and you'll be saving your fellow workers from the pain of being severed from a job they don't want to leave. But this is ONLY if your company is in the process of downsizing.
On the other hand, if your company is not looking to lay people off, then trying to get them to show you the door is definitely dishonest.
Furthermore, it may well backfire on you. If you start doing poor work, you're more likely to be fired (meaning, let go for cause) rather than laid off (which means, we like you and value you, but we don't have the work to support your position). And if you're fired, the company doesn't owe you a dime. Plus it might affect your pension negatively -- you should investigate your specifics.
Instead of trying to engineer a shameful short-term gain, I suggest you look into what you have coming to you legally:
- When you leave, does your company give you a check for un-used vacation or sick days? If so, that's some tide-you-over-til-the-pension-begins money.
- Can you put in your application for your pension now, yet continue working that 2-3 months until your first pension check arrives? I don't know how other jobs work, but teaching works this way. You're supposed to file your retirement paperwork 2-3 months before you plan to retire. You tell the retirement folks, "My last day will be ____", and they tell you, "Your first pension check will appear on the first day of ____ month." But -- assuming you plan ahead -- you coordinate it with them.
And I'd ask an obvious question:
If lack of a paycheck for 2-3 months seems impossible to you, are you financially ready to give up the steady paycheck for a smaller pension check?
But don't leave a 30-year career, where you've done a good job, in a shameful way. Don't tarnish your reputation (because people would figure out this move). Even at the end of your career, it's never wise to burn bridges. None of us know what'll happen in the future, and leaving on good terms is always wise.