It appears to me that even though a kezayit that was diminished through shriveling and then expanded again through liquid is liable, nevertheless we require that it contain no void, even the smallest of the small, and in every kezayit measurement it is so, even if it is the way of this item to have a slight emptiness, such as wheat bread that has risen, which normally has small voids, and so too anything similar to this. For the expansion is only effective in that it spreads the contraction and creates looseness in the parts of the food, but if it creates voids, it is not effective. And a proof for this matter is from that which we learned in the second chapter of Uktzin: the meat of a calf that expanded and the meat of an old animal that diminished are measured as they are, meaning as they are now; and one is liable for the meat of a calf that expanded if it was a kezayit from its beginning. And prior to this we learned: onion leaves and onion shoots, if they contain slime, they are measured as they are; if they contain a void, one must compress its voids. Sargonit bread [soft like a sponge] is measured as it is; if it contains a void, one must compress its void. See there. Behold, it is explicit that the looseness joins together, even the looseness of slime which is moisture, and so too that which is soft like a sponge, which is very loose, joins together, but the void does not join together. And there is a further proof from the Yerushalmi Yoma [chapter 8, halacha 2], which says there regarding the measurement of a kakevoret, as we learned: "like it and its pit," Rabbi Yose said, "this means one must compress its void." See there. And this is what our teacher, the Rema, ruled in Orach Chaim siman 486 regarding maror, that one must compress the air void, see there. And so too regarding matzah, the void does not join to the kezayit [Magen Avraham], and the same applies to everything. And consequently, the same applies that also regarding malkot and kareth, the air does not join together. [And there is a slight need for further study regarding the Rambam, who wrote: "If it was less than a kezayit etc. and it expanded etc. it is forbidden etc." Thus far his words. For even without this, a half-measure is forbidden by Torah law. And in Menachot 54, which says "wherever from the beginning etc. it is by rabbinic decree," this is regarding tumah, but regarding eating, a half-measure is forbidden by Torah law. And so the Rambam wrote in the fourth chapter of Ma'achalot Assurot, law 13, this law regarding tumah, that it is tamei by rabbinic decree; but regarding a prohibition this is not applicable, rather his intention is that there are no malkot for this.]
ויראה לי אע"ג דכזית שנתמעט ע"י צימוק וחזר ונתפח ע"י משקה חייב מ"מ בעינן שלא יהיה בו שום חלל אפילו קטן שבקטנים ובכל שיעיר כזית כן הוא אף שכן דרך דבר זה להיות בו ריקות מעט כגון לחם חטה שנתפח שדרכו להיות בו חללים קטנים וכן כל כיוצא בזה דההתפחה אינו מועיל רק שמפשט הכיווץ ועושה רפיון בחלקי המאכל אבל אם עושה חללים אינו מועיל וראיה לדבר זה מהא דתנן בפ"ב דעוקצים בשר העגל שנתפח ובשר זקנה שנתמעט משתערין בכמות שהן כלומר כמו שהם עתה וחייב על בשר עגל שנתפח אם מתחלתו היתה כזית ומקודם לזה תנן עלי בצלים ובני בצלים אם יש בהם ריר משתערין בכמות שהן אם יש בהן חלל ממעך את חללי פת סרוגנית [רכה כספוג]. משתערת בכמות שהיא אם יש בה חלל ממעך את חללה ע"ש הרי להדיא דהרפיון מצטרף אפילו רפיון של ריר שהוא ליחה, וכן רכה כספוג שהוא רפה הרבה מצטרף והחלל אינו מצטרף ועור ראיה מירושלמי יומא [פ"ח ה"ב] שאומר שם לענין שיעור ככותבת דתנן כמוה וכגרעינתה אר' יוסה זאת אומרת צריך למעך חללו ע"ש וזהו שפסק רבינו הרמ"א בא"ח סי' תפ"ו לענין מרור שצריך למעך חלל האויר ע"ש וכן במצה החלל אינו מצטרף לכזית [מג"א] וה"ה בכל דבר וממילא דה"ה דגם לענין מלקות וכרת אין האויר מצטרף [וקצת צ"ע על הרמב"ם שכתב היה פחות מכזית וכו' ונתפח ונו' אסור וכו' עכ"ל הא גם בל"ז חצי שיעור אסור מה"ת ובמנחות נ"ד שאומר כל היכי דמעיקרא וכו' מדרבנן זהו לענין טומאה אבל לענין אכילה הא ח"ש אסור מה"ת וכ"כ הרמב"ם בפ"ד מאה"ט דין י"ג דין זה לענין טומאה דמדרבנן מטמא אבל באיסור לא שייך זה אך כוונתו שאין בזה מלקות]: