chore: adopt <||> to reduce code duplication (#9719)

This commit is contained in:
Cameron Zwarich 2025-08-04 21:13:02 -07:00 committed by GitHub
parent f236328bc3
commit 713a46cd75
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -173,9 +173,7 @@ where
| _ => return anyExpr
let mut result := fNew
for arg in args do
if (← isProp arg) then
result := mkApp result erasedExpr
else if (← isPropFormer arg) then
if ← isProp arg <||> isPropFormer arg then
result := mkApp result erasedExpr
else if (← isTypeFormer arg) then
result := mkApp result (← toLCNFType arg)