@@ -4002,7 +4002,7 @@ theorem compileStmt_forEach_with_bridged_body
40024002 (hCount : BridgedSourceExpr count)
40034003 (hBody : ∀ {out : List YulStmt},
40044004 compileStmtList fields events errors dynamicSource internalRetNames
4005- isInternal (varName :: inScopeNames ) [] body = .ok out →
4005+ isInternal (forEachBodyScope inScopeNames varName count body ) [] body = .ok out →
40064006 BridgedStmts out) :
40074007 ∀ {out : List YulStmt},
40084008 compileStmt fields events errors dynamicSource internalRetNames isInternal
@@ -4015,7 +4015,7 @@ theorem compileStmt_forEach_with_bridged_body
40154015 | ok countExpr =>
40164016 simp [hCExpr] at hOk
40174017 cases hBodyOk : compileStmtList fields events errors dynamicSource
4018- internalRetNames isInternal (varName :: inScopeNames ) [] body with
4018+ internalRetNames isInternal (forEachBodyScope inScopeNames varName count body ) [] body with
40194019 | error err => simp [hBodyOk] at hOk
40204020 | ok bodyOut =>
40214021 simp [hBodyOk, Pure.pure, Except.pure] at hOk
@@ -4128,7 +4128,7 @@ theorem compileStmt_forEach_with_noFuncDefs_body
41284128 (varName : String) (count : Expr) (body : List Stmt)
41294129 (hBody : ∀ {out : List YulStmt},
41304130 compileStmtList fields events errors dynamicSource internalRetNames
4131- isInternal (varName :: inScopeNames ) [] body = .ok out →
4131+ isInternal (forEachBodyScope inScopeNames varName count body ) [] body = .ok out →
41324132 Native.yulStmtsContainFuncDef out = false) :
41334133 ∀ {out : List YulStmt},
41344134 compileStmt fields events errors dynamicSource internalRetNames isInternal
@@ -4141,7 +4141,7 @@ theorem compileStmt_forEach_with_noFuncDefs_body
41414141 | ok countExpr =>
41424142 simp [hCExpr] at hOk
41434143 cases hBodyOk : compileStmtList fields events errors dynamicSource
4144- internalRetNames isInternal (varName :: inScopeNames ) [] body with
4144+ internalRetNames isInternal (forEachBodyScope inScopeNames varName count body ) [] body with
41454145 | error err => simp [hBodyOk] at hOk
41464146 | ok bodyOut =>
41474147 have hBodyNoFunc := hBody hBodyOk
@@ -5595,7 +5595,7 @@ theorem compileStmt_external_forEach_body_with_errors_bridged
55955595 hCount ?_ hOk
55965596 intro bodyOut hBodyOk
55975597 exact compileStmtList_external_body_with_errors_bridged fields events
5598- errors dynamicSource internalRetNames body (varName :: inScopeNames)
5598+ errors dynamicSource internalRetNames body _
55995599 hBody hBodyOk
56005600
56015601/-- External forEach-wrapped with-errors source bodies compile to Yul lists
@@ -5673,7 +5673,7 @@ theorem compileStmt_internal_forEach_body_with_errors_bridged
56735673 hCount ?_ hOk
56745674 intro bodyOut hBodyOk
56755675 exact compileStmtList_internal_body_with_errors_bridged fields events
5676- errors dynamicSource internalRetNames body (varName :: inScopeNames)
5676+ errors dynamicSource internalRetNames body _
56775677 hBody hBodyOk
56785678
56795679/-- Internal forEach-wrapped with-errors source bodies compile to Yul lists
@@ -5895,7 +5895,7 @@ mutual
58955895 intro bodyOut hBodyOk
58965896 exact compileStmtList_external_recursive_body_with_errors_bridged fields
58975897 events errors dynamicSource internalRetNames hBody
5898- (varName :: inScopeNames) hBodyOk
5898+ _ hBodyOk
58995899
59005900 theorem compileStmtList_external_recursive_body_with_errors_bridged
59015901 (fields : List Field) (events : List EventDef) (errors : List ErrorDef)
@@ -6012,7 +6012,7 @@ mutual
60126012 intro bodyOut hBodyOk
60136013 exact compileStmtList_internal_recursive_body_with_errors_bridged fields
60146014 events errors dynamicSource internalRetNames hBody
6015- (varName :: inScopeNames) hBodyOk
6015+ _ hBodyOk
60166016
60176017 theorem compileStmtList_internal_recursive_body_with_errors_bridged
60186018 (fields : List Field) (events : List EventDef) (errors : List ErrorDef)
@@ -7921,7 +7921,7 @@ mutual
79217921 intro bodyOut hBodyOk
79227922 exact compileStmtList_external_recursive_body_with_raw_log_bridged fields
79237923 events errors dynamicSource internalRetNames hBody
7924- (varName :: inScopeNames) hBodyOk
7924+ _ hBodyOk
79257925
79267926 theorem compileStmtList_external_recursive_body_with_raw_log_bridged
79277927 (fields : List Field) (events : List EventDef) (errors : List ErrorDef)
@@ -8038,7 +8038,7 @@ mutual
80388038 intro bodyOut hBodyOk
80398039 exact compileStmtList_internal_recursive_body_with_raw_log_bridged fields
80408040 events errors dynamicSource internalRetNames hBody
8041- (varName :: inScopeNames) hBodyOk
8041+ _ hBodyOk
80428042
80438043 theorem compileStmtList_internal_recursive_body_with_raw_log_bridged
80448044 (fields : List Field) (events : List EventDef) (errors : List ErrorDef)
@@ -8111,7 +8111,7 @@ mutual
81118111 dynamicSource internalRetNames false inScopeNames varName count body ?_ hOk
81128112 exact compileStmtList_external_recursive_body_with_raw_log_noFuncDefs
81138113 fields events errors dynamicSource internalRetNames hBody
8114- (varName :: inScopeNames)
8114+ _
81158115
81168116 theorem compileStmtList_external_recursive_body_with_raw_log_noFuncDefs
81178117 (fields : List Field) (events : List EventDef) (errors : List ErrorDef)
@@ -8181,7 +8181,7 @@ mutual
81818181 dynamicSource internalRetNames true inScopeNames varName count body ?_ hOk
81828182 exact compileStmtList_internal_recursive_body_with_raw_log_noFuncDefs
81838183 fields events errors dynamicSource internalRetNames hBody
8184- (varName :: inScopeNames)
8184+ _
81858185
81868186 theorem compileStmtList_internal_recursive_body_with_raw_log_noFuncDefs
81878187 (fields : List Field) (events : List EventDef) (errors : List ErrorDef)
0 commit comments