-
Notifications
You must be signed in to change notification settings - Fork 370
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Merged by Bors] - feat: volume of a complex ball #6907
Conversation
Can |
As the matter of fact, I took some ideas from In any case, I think it is fine to keep |
By the way, @fpvandoorn and I recently proved the n-ball result. We will PR it soon (I hope) but had not discussed where it should go. |
Great! I'll will wait until you PR your result with Floris and then use it to prove the volume of the complex ball. Do you think #6905 is still worth keeping? |
Actually, I think there's no reason to kill this PR -- it can join mathlib now and when ours is ready we can generalize it. |
Ok, in that case, I think it would be better to also have the result on the area of the disc in this PR and the question of where it belongs is still open... |
So we do have Euclidean.ball |
I think |
So something like example : volume (Euclidean.ball (0 : Fin 2 → ℝ) 1) = NNReal.pi is not the right way to state the result? |
I think we should replace the proof anyway, though perhaps leave the statement as is for now. If people want to see the historical solution, they can always look at the git history for that file. If you don't agree, it's perhaps worth starting a Zulip thread to see what the wider opinion on this is. My view is that |
@hrmacbeth can you please share the statement that you proved with Floris. I am still not sure of the best way to state the dimension 2 version... |
We prove ```lean theorem integral_sqrt_one_sub_sq : ∫ x in (-1 : ℝ)..1, sqrt (1 - x ^ 2) = π / 2 ``` which will in turn be used to compute the area of the disc and then the volume of the unit complex ball in #6907
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you think it makes sense to add the ProdLp
case now too (refactoring the existing proof), or leave that to a future PR?
I think that will be for a future PR. The proof for this case is completely different than the one in this PR and, in any case, I think the more general proof in the future PR by @hrmacbeth and @fpvandoorn should be easier to adapt to the case |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bors d+
Thanks! sorry for forgetting about this.
✌️ xroblot can now approve this pull request. To approve and merge a pull request, simply reply with |
Thanks. In fact, I have a new PR coming soon with the computation of the volume of the unit ball in all dimensions, for all Lp norms over the real and over the complex using #7693. I just need to do some clean up and finish proving one or two easy lemmas (famous last words). |
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
bors r+ |
We prove the formula for the area of a disc ```lean theorem volume_ball (x : EuclideanSpace ℝ (Fin 2)) (r : ℝ) : volume (Metric.ball x r) = NNReal.pi * (ENNReal.ofReal r) ^ 2 ``` and deduce from this, the volume of complex balls ```lean theorem volume_ball (a : ℂ) (r : ℝ) : volume (Metric.ball a r) = NNReal.pi * (ENNReal.ofReal r) ^ 2 ``` Co-authored-by: James Arthur Co-authored-by: Benjamin Davidson Co-authored-by: Andrew Souther Co-authored-by: Eric Wieser <[email protected]>
Pull request successfully merged into master. Build succeeded! The publicly hosted instance of bors-ng is deprecated and will go away soon. If you want to self-host your own instance, instructions are here. If you want to switch to GitHub's built-in merge queue, visit their help page. |
We prove the formula for the area of a disc
and deduce from this, the volume of complex balls
Co-authored-by: James Arthur
Co-authored-by: Benjamin Davidson
Co-authored-by: Andrew Souther