Repository navigation
Completed System T Normalization Proof - #13
Open
JasonAlanVeenendaal wants to merge 4 commits into
Open
JasonAlanVeenendaal wants to merge 4 commits into
JasonAlanVeenendaal wants to merge 4 commits into
Conversation
amarmaduke
requested changes
Nov 30, 2026
| (SnNor.rename (TypingRen.lift A m) h2) | ||
| | SnNor.unit => .unit | ||
| | SnNor.pair h1 h2 h3 => | ||
| .pair (λ m' => h1 (TypingRen.comp m m') |> cast (by simp)) (SnNor.rename m h2) (SnNor.rename m h3) |
Owner
There was a problem hiding this comment.
Don't use fully qualified names unless necessary, here we should be able to say m.comp m' and h2.rename m. There are many places where this can be fixed, go through and fix those.
| | .zero h1 => | ||
| have lem1 := TypingRen.lift T m | ||
| have lem2 := TypingRen.lift ℕ lem1 | ||
| have lem3 := h1.rename lem2 |
Owner
There was a problem hiding this comment.
Don't have extraneous lemmas; for example m.lift T can be inline, it's not a meaningful lemma.
| | inj2 t => inj2 (.rename m t) | ||
| | zero => zero | ||
| | succ t => succ (.rename m t) | ||
| | nrec (s := s') n z s => nrec (.rename m n) (.rename m z) (s.rename ((m.lift A).lift ℕ)) |> cast (by simp) |
amarmaduke
reviewed
Nov 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I finished the strong normalization proof of System T by completing some missing lemmas. Specifically, I proved the renaming lemmas for SnNor, SnNeu, and SnRed. I also needed to add an additional context renaming assumption to make it work. I changed the definition the data constructors of SnNor to have a Kripke relation.