Skip to content

introduce isfalse to make constant comparisons reductible - #90

Open
bodeveix wants to merge 6 commits into
Deducteam:masterfrom
bodeveix:arith
Open

bodeveix wants to merge 6 commits into
Deducteam:masterfrom
bodeveix:arith

Conversation

@bodeveix

@bodeveix bodeveix commented Dec 2, 2026

Copy link
Copy Markdown

This PR changes the definition of some arithmetic comparators to make constant comparisons provable by reduction. Definitions use isfalse instead of not istrue.

@fblanqui fblanqui left a comment

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.

Thanks. A few remarks:

Comment thread Bool.lp Outdated
{ simplify; assume h0 h1; refine h1 }
end;

symbol istrue_not_isfalse p : π (istrue p ⇒ ¬ (isfalse p)) ≔

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.

Theorems must be declared as opaque.

Comment thread Z.lp Outdated
begin
assume x y;
refine ind_Comp (λ c, ¬ (¬ (istrue (isGt c))) ⇒ ¬ istrue (isLt c)) _ _ _ (x ≐ y)
refine ind_Comp (λ c, ¬ ( (isfalse (isGt c))) ⇒ ¬ istrue (isLt c)) _ _ _ (x ≐ y)

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.

too many parentheses

@bodeveix

bodeveix commented Dec 2, 2026

Copy link
Copy Markdown
Author

I have added opaque declarations and pushed new theorems

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants