17 of Tamuz Fasting: Looking to the Past or Future?

Begin with a discussion, what is a fast day? Why do we fast? Is it a day of mourning, of tshuva? Why specifically do we fast n 17 Tamuz?

נשתברו הלוחות ובטל התמיד והובקעה העיר ושרף אפוסטמוס את התורה והעמיד צלם בהיכל

Five things befell our forefathers on the 17th of Tammuz: the Tablets were broken; the daily sacrifice ceased; the city (Jerusalem) was breached; Apostomus burned the Torah; and an idol was placed in the Temple.

(א) יֵשׁ שָׁם יָמִים שֶׁכָּל יִשְׂרָאֵל מִתְעַנִּים בָּהֶם מִפְּנֵי הַצָּרוֹת שֶׁאֵרְעוּ בָּהֶן כְּדֵי לְעוֹרֵר הַלְּבָבוֹת לִפְתֹּחַ דַּרְכֵי הַתְּשׁוּבָה וְיִהְיֶה זֶה זִכָּרוֹן לְמַעֲשֵׂינוּ הָרָעִים וּמַעֲשֵׂה אֲבוֹתֵינוּ שֶׁהָיָה כְּמַעֲשֵׂינוּ עַתָּה עַד שֶׁגָּרַם לָהֶם וְלָנוּ אוֹתָן הַצָּרוֹת. שֶׁבְּזִכְרוֹן דְּבָרִים אֵלּוּ נָשׁוּב לְהֵיטִיב שֶׁנֶּאֱמַר (ויקרא כו-מ) "וְהִתְוַדּוּ אֶת עֲוֹנָם וְאֶת עֲוֹן אֲבֹתָם" וְגוֹ':

(1) There are days on which all Israel fasts because of the misfortunes that occurred on them in order to arouse the hearts to open to the ways of repentance and that this be a reminder of our evil deeds and the deeds of our ancestors that are like our deeds that caused these misfortunes for them and for us. In remembering these things we return to goodness, as it is written, "And you shall confess your transgressions and the transgressions of your ancestors...(Leviticus 27:40)"

According to the Rambam are we being punished for our ancestor's sins? How does he explain this strange verse? What does he say about the purpose of fasting?

(א) מִצְוַת עֲשֵׂה מִן הַתּוֹרָה לִזְעֹק וּלְהָרִיעַ בַּחֲצוֹצְרוֹת עַל כָּל צָרָה שֶׁתָּבוֹא עַל הַצִּבּוּר. שֶׁנֶּאֱמַר (במדבר י-ט) "עַל הַצַּר הַצֹּרֵר אֶתְכֶם וַהֲרֵעֹתֶם בַּחֲצֹצְרוֹת". כְּלוֹמַר כָּל דָּבָר שֶׁיָּצֵר לָכֶם כְּגוֹן בַּצֹּרֶת וְדֶבֶר וְאַרְבֶּה וְכַיּוֹצֵא בָּהֶן זַעֲקוּ עֲלֵיהֶן וְהָרִיעוּ:

(1) It is a positive commandment from the Torah to cry out and to sound trumpets for all troubles that come upon the community, as it is said, "upon an enemy who attacks you and you sound trumpets (Numbers 10:9)." That is to say, every matter that troubles you like famine, plague, locusts, and so forth, cry out because of them and sound the trumpets.

(ב) וְדָבָר זֶה מִדַּרְכֵי הַתְּשׁוּבָה הוּא. שֶׁבִּזְמַן שֶׁתָּבוֹא צָרָה וְיִזְעֲקוּ עָלֶיהָ וְיָרִיעוּ יֵדְעוּ הַכּל שֶׁבִּגְלַל מַעֲשֵׂיהֶם הָרָעִים הוּרַע לָהֶן כַּכָּתוּב (ירמיה ה-כה) "עֲוֹנוֹתֵיכֶם הִטּוּ" וְגוֹ'. וְזֶה הוּא שֶׁיִּגְרֹם לָהֶם לְהָסִיר הַצָּרָה מֵעֲלֵיהֶם:

And this is one of the ways of repentance: that when trouble comes, they cry out because of it and sound the trumpets, and everyone knows that it is because of their evil deeds that things are bad for them… and it is this which causes them to remove the trouble from upon them.

Clearly the purpose of a fast is to change one's current ways

(ה) הֲכָזֶ֗ה יִֽהְיֶה֙ צ֣וֹם אֶבְחָרֵ֔הוּ י֛וֹם עַנּ֥וֹת אָדָ֖ם נַפְשׁ֑וֹ הֲלָכֹ֨ף כְּאַגְמֹ֜ן רֹאשׁ֗וֹ וְשַׂ֤ק וָאֵ֙פֶר֙ יַצִּ֔יעַ הֲלָזֶה֙ תִּקְרָא־צ֔וֹם וְי֥וֹם רָצ֖וֹן לַיהוָֽה׃ (ו) הֲל֣וֹא זֶה֮ צ֣וֹם אֶבְחָרֵהוּ֒ פַּתֵּ֙חַ֙ חַרְצֻבּ֣וֹת רֶ֔שַׁע הַתֵּ֖ר אֲגֻדּ֣וֹת מוֹטָ֑ה וְשַׁלַּ֤ח רְצוּצִים֙ חָפְשִׁ֔ים וְכָל־מוֹטָ֖ה תְּנַתֵּֽקוּ׃ (ז) הֲל֨וֹא פָרֹ֤ס לָֽרָעֵב֙ לַחְמֶ֔ךָ וַעֲנִיִּ֥ים מְרוּדִ֖ים תָּ֣בִיא בָ֑יִת כִּֽי־תִרְאֶ֤ה עָרֹם֙ וְכִסִּית֔וֹ וּמִבְּשָׂרְךָ֖ לֹ֥א תִתְעַלָּֽם׃ (ח) אָ֣ז יִבָּקַ֤ע כַּשַּׁ֙חַר֙ אוֹרֶ֔ךָ וַאֲרֻכָתְךָ֖ מְהֵרָ֣ה תִצְמָ֑ח וְהָלַ֤ךְ לְפָנֶ֙יךָ֙ צִדְקֶ֔ךָ כְּב֥וֹד יְהוָ֖ה יַאַסְפֶֽךָ׃ (ט) אָ֤ז תִּקְרָא֙ וַיהוָ֣ה יַעֲנֶ֔ה תְּשַׁוַּ֖ע וְיֹאמַ֣ר הִנֵּ֑נִי אִם־תָּסִ֤יר מִתּֽוֹכְךָ֙ מוֹטָ֔ה שְׁלַ֥ח אֶצְבַּ֖ע וְדַבֶּר־אָֽוֶן׃ (י) וְתָפֵ֤ק לָֽרָעֵב֙ נַפְשֶׁ֔ךָ וְנֶ֥פֶשׁ נַעֲנָ֖ה תַּשְׂבִּ֑יעַ וְזָרַ֤ח בַּחֹ֙שֶׁךְ֙ אוֹרֶ֔ךָ וַאֲפֵלָתְךָ֖ כַּֽצָּהֳרָֽיִם׃
(5) Is such the fast I desire, A day for men to starve their bodies? Is it bowing the head like a bulrush And lying in sackcloth and ashes? Do you call that a fast, A day when the LORD is favorable? (6) No, this is the fast I desire: To unlock fetters of wickedness, And untie the cords of the yoke To let the oppressed go free; To break off every yoke. (7) It is to share your bread with the hungry, And to take the wretched poor into your home; When you see the naked, to clothe him, And not to ignore your own kin. (8) Then shall your light burst through like the dawn And your healing spring up quickly; Your Vindicator shall march before you, The Presence of the LORD shall be your rear guard. (9) Then, when you call, the LORD will answer; When you cry, He will say: Here I am. If you banish the yoke from your midst, The menacing hand, and evil speech, (10) And you offer your compassion to the hungry And satisfy the famished creature— Then shall your light shine in darkness, And your gloom shall be like noonday.
(כז) צִיּ֖וֹן בְּמִשְׁפָּ֣ט תִּפָּדֶ֑ה וְשָׁבֶ֖יהָ בִּצְדָקָֽה׃
(27) Zion shall be saved in the judgment; Her repentant ones, in the retribution.