You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
case x of
| INL se => sexp_size se
| INR (INL se) => sexp_size se
| INR (INR (INL ses)) => list_size sexp_size ses
| INR (INR (INR (INL ses))) => list_size sexp_size ses
| INR (INR (INR (INR (INL ses)))) => list_size sexp_size ses
| INR (INR (INR (INR (INR (INL ses))))) => list_size sexp_size ses
| INR (INR (INR (INR (INR (INR (INL se_opt))))) => option_size se_opt
| INR (INR (INR (INR (INR (INR (INR (INL se))))))) => sexp_size se
| INR (INR (INR (INR (INR (INR (INR (INR ses))))))) => list_size sexp_size ses
could be written as
nested_sum_case x of
| se => sexp_size se
| se => sexp_size se
| ses => list_size sexp_size ses
| ses => list_size sexp_size ses
| ses => list_size sexp_size ses
| ses => list_size sexp_size ses
| se_opt => option_size se_opt
| se => sexp_size se
| ses => list_size sexp_size ses
or similar. With the name nested_sum_case obviously up for bike-shedding. Thanks to @myreen and discussion at recent HOL workshop for idea.
The text was updated successfully, but these errors were encountered:
So that
could be written as
or similar. With the name
nested_sum_case
obviously up for bike-shedding. Thanks to @myreen and discussion at recent HOL workshop for idea.The text was updated successfully, but these errors were encountered: