Skip to content

R^o type constraints in ln_concave#1010

Open
affeldt-aist wants to merge 2 commits intomath-comp:masterfrom
affeldt-aist:convex_20230811
Open

R^o type constraints in ln_concave#1010
affeldt-aist wants to merge 2 commits intomath-comp:masterfrom
affeldt-aist:convex_20230811

Conversation

@affeldt-aist
Copy link
Copy Markdown
Member

@affeldt-aist affeldt-aist commented Aug 11, 2023

Motivation for this change

address comment https://github.com/math-comp/analysis/pull/990/files/e686555022776816f6c70e98c00a1e6fd5923f95#diff-5edc277f753b88b71edd27b04c3075df73e37652e4c19c0f8dc6210fa57bf926

Things done/to do
  • added corresponding entries in CHANGELOG_UNRELEASED.md
  • added corresponding documentation in the headers
Compatibility with MathComp 2.0
  • I added the label TODO: HB port to make sure someone ports this PR to
    the hierarchy-builder branch or I already opened an issue or PR (please cross reference).
Automatic note to reviewers

Read this Checklist and put a milestone if possible.

@affeldt-aist affeldt-aist added enhancement ✨ This issue/PR is about adding new features enhancing the library TODO: MC2 port This PR must be ported to mathcomp 2 now that the. Remove this label when the port is done. labels Aug 11, 2023
@affeldt-aist affeldt-aist added this to the 0.6.5 milestone Aug 11, 2023
@affeldt-aist affeldt-aist mentioned this pull request Aug 11, 2023
2 tasks
Comment on lines +112 to +147
HB.instance Definition _ (R : realDomainType) :=
ConvexSpace.copy R [the lmodType R of R^o].
HB.instance Definition _ (R : realFieldType) :=
ConvexSpace.copy R [the lmodType R of R^o].
HB.instance Definition _ (R : realType) :=
ConvexSpace.copy R [the lmodType R of R^o].
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't there a bunch of forgetful inheritance warnings here??

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not with HB 1.3.0 Coq 8.15.1

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

HB 1.4.0 Coq 8.16.1 seems fine also.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, with mathcomp 1 HB does not detect it...

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

HB 1.8.1 on Coq 8.20.1 detects the forgetful inheritances

@affeldt-aist affeldt-aist added help 🆘 This author/reviewer of this issue/PR needs external help experiment 🧪 This issue/PR is very experimental and removed enhancement ✨ This issue/PR is about adding new features enhancing the library TODO: MC2 port This PR must be ported to mathcomp 2 now that the. Remove this label when the port is done. labels Aug 12, 2023
@affeldt-aist affeldt-aist modified the milestones: 0.6.5, 0.6.6 Sep 28, 2023
@affeldt-aist
Copy link
Copy Markdown
Member Author

I guess this is better to put this on hold.

@affeldt-aist affeldt-aist modified the milestones: 0.6.6, 0.6.7 Nov 10, 2023
@affeldt-aist affeldt-aist modified the milestones: 0.6.7, 0.6.8 Dec 30, 2023
@affeldt-aist affeldt-aist modified the milestones: 0.7.0, 1.0.0 Jan 17, 2024
@affeldt-aist affeldt-aist modified the milestones: 1.0.0, 1.0.1 Jan 24, 2024
@proux01 proux01 added the TODO: MC2 port This PR must be ported to mathcomp 2 now that the. Remove this label when the port is done. label Jan 25, 2024
@affeldt-aist affeldt-aist modified the milestones: 1.0.1, 1.2.0, 1.1.0 Mar 24, 2024
@affeldt-aist affeldt-aist modified the milestones: 1.2.0, 1.3.0 Jun 3, 2024
@affeldt-aist affeldt-aist removed this from the 1.3.0 milestone Jul 29, 2024
@affeldt-aist affeldt-aist modified the milestones: 1.5.0, 1.6.0 Oct 8, 2024
@affeldt-aist affeldt-aist modified the milestones: 1.6.0, 1.7.0 Oct 24, 2024
@affeldt-aist affeldt-aist modified the milestones: 1.7.0, 1.8.0 Nov 22, 2024
@affeldt-aist affeldt-aist modified the milestones: 1.8.0, 1.9.0 Dec 18, 2024
@affeldt-aist
Copy link
Copy Markdown
Member Author

We can maybe close this PR because the problem that triggered it, i.e., the fact that there were R^o type constraints in the following code

Lemma concave_ln (t : {i01 R}) (a b : R^o) : 0 < a -> 0 < b ->
  (ln a : R^o) <| t |> (ln b : R^o) <= ln (a <| t |> b).

is no more.

@affeldt-aist affeldt-aist modified the milestones: 1.9.0, 1.10.0 Feb 18, 2025
@affeldt-aist affeldt-aist changed the title convType instances R^o type constraints in ln_concave Feb 18, 2025
@affeldt-aist affeldt-aist modified the milestones: 1.10.0, 1.11.0 Apr 20, 2025
@affeldt-aist affeldt-aist removed the TODO: MC2 port This PR must be ported to mathcomp 2 now that the. Remove this label when the port is done. label May 2, 2025
@affeldt-aist affeldt-aist modified the milestones: 1.11.0, 1.12.0 May 2, 2025
@affeldt-aist affeldt-aist modified the milestones: 1.12.0, 1.13.0 Jul 1, 2025
@affeldt-aist affeldt-aist modified the milestones: 1.13.0, 1.14.0 Aug 13, 2025
@affeldt-aist affeldt-aist modified the milestones: 1.14.0, 1.15.0 Nov 4, 2025
@affeldt-aist affeldt-aist modified the milestones: 1.15.0, 1.16.0 Jan 10, 2026
@affeldt-aist affeldt-aist modified the milestones: 1.16.0, 1.17.0 Mar 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

experiment 🧪 This issue/PR is very experimental help 🆘 This author/reviewer of this issue/PR needs external help

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants