- 
                Notifications
    You must be signed in to change notification settings 
- Fork 259
          [ refactor ] Data.Fin.Properties.decFinSubset
          #2793
        
          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
Conversation
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.
Otherwise I approve
Data.Fin.Properties.decFinSubsetData.Fin.Properties.decFinSubset
      | @MatthewDaggitt can you re-review ahead of a possible merge? | 
| Hmm... some weird sync error. Have fast-forwarded with  | 
| dec[Q⊆P] : Dec (Q ⊆ P) | ||
| dec[Q⊆P] with Q? zero | ||
| ... | no ¬q₀ = map′ (cons (contradiction′ ¬q₀)) Q⊆P⇒Q⊆ₛP ih | ||
| ... | yes q₀ = map′ (uncurry (cons ∘ const)) < _$ q₀ , Q⊆P⇒Q⊆ₛP > (P? q₀ ×-dec ih) | 
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.
Note to self: this will need fixing if and when #2843 gets merged!
Matthew,
I fixed the variable declarations for Pred and Rel, so I'm taking your "Otherwise I approve" at face value.
Merging now.
| Rebasing against  | 
Cherry-picked from #2744 . Almost purely cosmetic:
variables. NB. cf. Fix breaking introduction of variable inSemiring.Primality#2774 for problems with non-prenex use of such thingsall?to avoid use ofdecFinSubset(idiotic complexity blow-up)CHANGELOGNB.
DecFinSubset.consmakes successful use ofλ-and$-, but I don't seem able to do so forQ⊆P⇒Q⊆ₛPthanks to unsolved metas!?flip contradiction! [ add ] new name forflipped version ofRelation.Nullary.Negation.Core.contradiction#2784