Repository navigation
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 Mathlibon live.lean-lang.org, Lean v4.35.0-rc4; only the expectedsorrywarning). The Isabelle issues described in #363 are left for a separate change, since they also need thep i→p kfix (#323) and the{..<2*m}range fix.