A zero-knowledge rollup (ZK-rollup) is a layer 2 that executes transactions offchain in batches, then posts a compact summary and a validity proof to Ethereum mainnet. A validity proof is a succinct cryptographic proof that the batch was computed correctly; Ethereum's rollup contract only accepts the new state after a verifier contract checks it. Because correctness is proven up front rather than open to challenge, withdrawals from a ZK-rollup to Ethereum do not have to wait through a challenge period the way optimistic-rollup withdrawals do.
Layer 2 — A network that processes transactions off a base chain and settles on it, inheriting much of its security. Rollups are the most common type.
Optimistic Rollup — An optimistic rollup is a layer 2 protocol that executes transactions offchain and posts the transaction data to Ethereum. It is called optimistic because batches are assumed to be valid when posted; during a challenge window of roughly seven days, anyone can submit a fraud proof showing a transaction was computed incorrectly, in which case the rollup re-executes it and the responsible operator is penalized. Because of that window, withdrawals from an optimistic rollup back to Ethereum are normally delayed by about a week. In many optimistic rollups a single sequencer orders transactions, produces blocks and submits them to Ethereum.
Zero Knowledge Proof — A proof that a statement is true which reveals nothing beyond that fact. Blockchains use them for scaling (ZK rollups) and privacy.