lean4 icon indicating copy to clipboard operation
lean4 copied to clipboard

refactor: make `hIterate_elim` more specific

Open alexkeizer opened this issue 1 year ago • 0 comments

Change the invariant Q to only have to be defined for Fin (w+1), rather than all Nats.

This is a strict generalization, and makes defining an invariant that doesn't necessarily make sense for arbitrary Nat a bit nicer (although it could be done before, using if h : i < w + 1 then ... else ...).

alexkeizer avatar Feb 22 '24 20:02 alexkeizer