|
|
|
|
|
by ocfnash
2476 days ago
|
|
I presume you've been looking at my presentation here http://olivernash.org/2019/07/06/coq-imo/index.html which I confess is quite concise; apologies if it is too terse. Reusing the notation of my post, here's how the formula arises. The argument based on counting cells that are either row/column good/bad requires the following of the parameter k: 1. k-1 < r/m
2. k-1 < c/n
3. k−1 < cr/(c(m-1) + r(n-1))
These are equivalent to: 1. k <= ceil r m
2. k <= ceil c n
3. k <= ceil cr (c(m-1) + r(n-1))
And so it is sufficient to have: k <= min (ceil r m) (ceil c n) (ceil cr (c(m-1) + r(n-1)))
We can then rearrange this to the headline formula by noting: * ceil r m = ceil (cr) (cm)
* ceil c n = ceil (cr) (mr)
And then simplifying by repeatedly using the fact that for any x, y, z: * min (ceil x y) (ceil x z) = ceil x (max y z)
All this is of course in the Coq code. E.g., the last fact mentioned above is here: https://github.com/ocfnash/imo-coq/blob/f6d2e8337fadf00583fd... |
|