~(よ)うが~まいが
Whether … or not
N1
V (volitional) + が + V (dictionary) + まいが / ~(よ)うと~まいと
~(よ)うが~まいが puts the positive and negative of the same verb side by side and says the result does not change. まい is an old negative-volitional form attached to the dictionary form (group 2 verbs may use the stem: {食|た}べまい; する → するまい / すまい). It is a strong written expression ({硬|かた}い{表現|ひょうげん}) used to show firm attitudes or principles. It is close to ~ても~なくても (N4) and ~にしても~にしても (N2). ~うと~まいと is used with exactly the same meaning.
Examples
上司が見ていようがいまいが、手順はきちんと守るべきだ。
Whether or not the boss is watching, procedures should be followed properly.
参加しようがしまいが、会費は全員から集めます。
Whether you attend or not, the fee will be collected from everyone.
君が信じようと信じまいと、これは本当にあった話だ。
Whether you believe it or not, this really happened.
Exercises
1.雨が降ろうが降る 、試合は予定通り行われる。
2.本人がやる気を出そうが 、周りがとやかく言うことではない。