Skip to content
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

The proof of near_derive can be simplified #1489

Open
affeldt-aist opened this issue Feb 19, 2025 · 0 comments
Open

The proof of near_derive can be simplified #1489

affeldt-aist opened this issue Feb 19, 2025 · 0 comments
Labels
enhancement ✨ This issue/PR is about adding new features enhancing the library
Milestone

Comments

@affeldt-aist
Copy link
Member

affeldt-aist commented Feb 19, 2025

analysis/theories/derive.v

Lines 1869 to 1886 in 762e08b

Let near_derive :
{near 0^', (fun h => h^-1 *: (f (h *: v + a) - f a)) =1
(fun h => h^-1 *: (g (h *: v + a) - g a))}.
Proof.
near do congr (_ *: _).
move: afg; rewrite {1}/prop_near1/= nbhsE/= => -[B [oB Ba] /[dup] Bfg Bfg'].
have [e /= e0 eB] := open_subball oB Ba.
have vv0 : 0 < `|2 *: v| by rewrite normrZ mulr_gt0 ?normr_gt0.
near=> x.
have x0 : 0 < `|x| by rewrite normr_gt0//; near: x; exact: nbhs_dnbhs_neq.
congr (_ - _); last exact: Bfg'.
apply: Bfg; apply: (eB (`|x| * `|2 *: v|)).
- rewrite /ball_/= sub0r normrN normrM !normr_id -ltr_pdivlMr//.
by near: x; apply: dnbhs0_lt; rewrite divr_gt0.
- by rewrite mulr_gt0.
- rewrite -ball_normE/= opprD addrCA subrr addr0 normrN normrZ ltr_pM2l//.
by rewrite normrZ ltr_pMl ?normr_gt0// gtr0_norm ?ltr1n.
Unshelve. all: by end_near. Qed.

see this comment @CohenCyril

@affeldt-aist affeldt-aist added the enhancement ✨ This issue/PR is about adding new features enhancing the library label Feb 19, 2025
@affeldt-aist affeldt-aist added this to the 1.10.0 milestone Feb 19, 2025
@CohenCyril CohenCyril mentioned this issue Feb 20, 2025
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement ✨ This issue/PR is about adding new features enhancing the library
Projects
None yet
Development

No branches or pull requests

1 participant