Skip to content

[certora] allocation at groupId is greater than equal leafId#905

Open
bhargavbh wants to merge 35 commits into
mainfrom
certora/allocationsSumOfMarketIdAllocations
Open

[certora] allocation at groupId is greater than equal leafId#905
bhargavbh wants to merge 35 commits into
mainfrom
certora/allocationsSumOfMarketIdAllocations

Conversation

@bhargavbh

@bhargavbh bhargavbh commented Mar 8, 2026

Copy link
Copy Markdown
Contributor

adds invariants that allocation at AdapterId and CollateralId is sum of MarketId allocations.
as a result, proves:
- adapter allocation >= any individual market allocation
- collateral allocation >= any individual market allocation

For a generic adapter following a hierarchical model of leafId (e.g. marketId) and groupId (e.g. collateralId), proves that the allocation at the group-level >= allocation at leaf-level.

@bhargavbh bhargavbh changed the title adds invariants that allocation at AdapterId and CollateralId is sum … [certora] allocation at AdapterId and CollateralId is greater than marketId Mar 16, 2026
@bhargavbh bhargavbh changed the title [certora] allocation at AdapterId and CollateralId is greater than marketId [certora] allocation at groupId is greater than leafId Mar 17, 2026
bhargavbh and others added 4 commits March 17, 2026 16:54
renamed

Signed-off-by: Bhargav Bhatt <40268131+bhargavbh@users.noreply.github.com>
renamed

Signed-off-by: Bhargav Bhatt <40268131+bhargavbh@users.noreply.github.com>
@bhargavbh bhargavbh self-assigned this Mar 17, 2026
@bhargavbh
bhargavbh marked this pull request as ready for review March 17, 2026 21:27
@bhargavbh bhargavbh changed the title [certora] allocation at groupId is greater than leafId [certora] allocation at groupId is greater than equal leafId Mar 17, 2026
Comment thread certora/specs/AllocationsHierarchy.spec Outdated
Comment thread certora/confs/AllocationsHierarchy.conf Outdated
Comment thread certora/specs/AllocationsHierarchy.spec Outdated
Comment thread certora/specs/AllocationsHierarchy.spec Outdated
Comment thread certora/specs/AllocationsHierarchy.spec Outdated
Comment thread certora/specs/AllocationsHierarchy.spec Outdated
Comment thread certora/specs/AllocationsHierarchy.spec Outdated
Comment thread certora/specs/AllocationsHierarchy.spec Outdated
Comment thread certora/specs/AllocationsHierarchy.spec Outdated
Comment thread certora/specs/AllocationsHierarchy.spec Outdated
Comment thread certora/confs/AllocationsHierarchy.conf Outdated
Comment thread certora/specs/AllocationsHierarchy.spec Outdated
Comment thread certora/specs/AllocationsHierarchy.spec Outdated
@bhargavbh
bhargavbh requested a review from QGarchery May 4, 2026 20:52
@bhargavbh
bhargavbh force-pushed the certora/allocationsSumOfMarketIdAllocations branch from 63a56b5 to 7141ba8 Compare May 7, 2026 07:03
Comment thread certora/confs/AllocationsHierarchy.conf Outdated
Comment thread certora/specs/AllocationsHierarchy.spec
Comment thread certora/specs/AllocationsHierarchy.spec

@lilCertora lilCertora left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM with some comments for clarity

Comment thread certora/specs/AllocationsHierarchy.spec Outdated
improved comment

Co-authored-by: Quentin Garchery <garchery.quentin@gmail.com>
Signed-off-by: Bhargav Bhatt <40268131+bhargavbh@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants