Skip to content

Fix putnam_2003_a5 (Lean): require f to map into dyckpath (n - 1) - #364

Open
AaronY77 wants to merge 1 commit into
trishullab:mainfrom
AaronY77:patch-1
Open

AaronY77 wants to merge 1 commit into
trishullab:mainfrom
AaronY77:patch-1

Conversation

@AaronY77

Copy link
Copy Markdown

Fixes the Lean part of #363.

The conclusion only required every Dyck (n−1)-path to have a unique preimage among the Dyck n-paths with no even return, so for n ≥ 2 it was equivalent to |dyckpath (n - 1)| ≤ |dyckpath n ∩ noevenreturn n| rather than a one-to-one correspondence. This adds the maps-to condition:

(∀ x ∈ dyckpath n ∩ noevenreturn n, f x ∈ dyckpath (n - 1)) ∧

One-line change. The statement elaborates (checked with import Mathlib on live.lean-lang.org, Lean v4.35.0-rc4; only the expected sorry warning). The Isabelle issues described in #363 are left for a separate change, since they also need the p i → p k fix (#323) and the {..<2*m} range fix.

Without the maps-to condition the conclusion only asserts an injection from Dyck (n-1)-paths into the paths with no even return, not a one-to-one correspondence. See trishullab#363.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant