-
Notifications
You must be signed in to change notification settings - Fork 249
definition of Irreducible
and Rough
; refactoring of Prime
and Composite
cf. #2180
#2181
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
Merged
Merged
Changes from all commits
Commits
Show all changes
79 commits
Select commit
Hold shift + click to select a range
1cf7c7f
definition of `Irreducible`; refactoring of `Prime` and `Composite`
jamesmckinna 3ba8e50
tidying up old cruft
jamesmckinna 5d31e32
knock-on consequences: `Coprimality`
jamesmckinna ea73f50
considerable refactoring of `Primality`
jamesmckinna ea39392
knock-on consequences: `Coprimality`
jamesmckinna 94bbc53
refactoring: no appeal to `Data.Nat.Induction`
jamesmckinna c5074a8
refactoring: renamed `SmoothAt` and its constructor; added pattern sy…
jamesmckinna f240003
knock-on consequences: `Coprimality`
jamesmckinna 114a017
refactoring: removed `NonZero` analysis; misc. tweaks
jamesmckinna 4119dff
knock-on consequences: `Coprimality`; tightened `import`s
jamesmckinna dce2edc
knock-on consequences: `Coprimality`; tightened `import`s
jamesmckinna 44c2c19
refactoring: every number is `1-rough`
jamesmckinna bab2dca
knock-on consequences: `Coprimality`; use of smart constructor
jamesmckinna a2194b6
refactoring: every number is `0-rough`; streamlining; inverse to `pri…
jamesmckinna 963ff13
attempt to optimise for a nearly-common case pseudo-constructor
jamesmckinna 1327c56
fiddling now
jamesmckinna c798889
refactoring: better use of `primality` API
jamesmckinna ddf151e
`Rough` is bounded
jamesmckinna 00086b7
removed unnecessary implicits
jamesmckinna 232b6d6
comment
jamesmckinna 0a6954d
refactoring: comprehensive shift over to `NonTrivial` instances
jamesmckinna ea015fd
refactoring: oops!
jamesmckinna b1d9940
tidying up: removed infixes
jamesmckinna cc9e3a9
tidying up: restored `rough⇒≤`
jamesmckinna dfb25fa
further refinements; added `NonTrivial` proofs
jamesmckinna 4340360
tidying up
jamesmckinna df55fb1
moving definitions to `Data.Nat.Base`
jamesmckinna 66b3da6
propagated changes; many more explicit s required?
jamesmckinna 8d04f15
`NonTrivial` is `Recomputable`
jamesmckinna 5df96b0
all instances of `NonTrivial` now irrelevant; weird to need `NonTrivi…
jamesmckinna 52c393a
tidying up `Coprimality`, eg with `variable`s
jamesmckinna f42577f
`NonTrivial` is `Decidable`
jamesmckinna 4022d3e
systematise proofs of `Decidable` properties via the `UpTo` predicates
jamesmckinna 8ed4c42
explicit quantifier now in `composite≢`
jamesmckinna 88f1b4b
Nathan's simplification
jamesmckinna de78ca9
interaction of `NonZero` and `NonTrivial` instances
jamesmckinna 2f456a8
divisor now a record field; final lemmas: closure under divisibility;…
jamesmckinna 522135c
Merge branch 'master' into issue2180
jamesmckinna 207cda4
'(non-)instances' become '(counter-)examples'
jamesmckinna d4cb3d4
stylistics
jamesmckinna e9b151b
removed `k` as a variable/parameter
jamesmckinna 6e3c576
renamed fields and smart constructors
jamesmckinna e2e88cc
moved smart constructors; made a local definition
jamesmckinna ba7c782
tidying up
jamesmckinna 22e6c38
refactoring per review comments: equivalence of `UpTo` predicates; ma…
jamesmckinna b38a6ac
tidying up: names congruent to ordering relation
jamesmckinna eaf3d6b
removed variable `k`; removed old proof in favour of new one with `No…
jamesmckinna 5ce66fb
removed `recomputable` in favour of a private lemma
jamesmckinna d8d26ee
regularised use of instance brackets
jamesmckinna c75bf55
made instances more explicit
jamesmckinna b142293
made instances more explicit
jamesmckinna 1a079f5
blank line
jamesmckinna 698d53f
made `nonTrivial⇒nonZero` take an explicit argument in lieu of being …
jamesmckinna 4a1c53e
regularised use of instance brackets
jamesmckinna 9ce27c3
regularised use of instance brackets
jamesmckinna 81394ad
trimming
jamesmckinna ee46670
tidied up `Coprimality` entries
jamesmckinna f87fdcc
Make HasBoundedNonTrivialDivisor infix
MatthewDaggitt cc65401
Make NonTrivial into a record to fix instance resolution bug
MatthewDaggitt 4cc0687
Move HasNonTrivialDivisor to Divisibility.Core and hide UpTo lemmas
MatthewDaggitt 2df019e
Rearrange file to follow standard ordering of lemmas in the rest of t…
MatthewDaggitt 6e932a9
Move UpTo predicates into decidability proofs
MatthewDaggitt 33ccd45
No-op refactoring to curb excessively long lines
MatthewDaggitt d6bf882
Make a couple of names consistent with style-guide
MatthewDaggitt 92b1e03
new definition of `Prime`
jamesmckinna dd508e2
renamed fundamental definition
jamesmckinna 8ff57d3
one last reference in `CHANGELOG`
jamesmckinna 2141011
more better words; one fewer definition
jamesmckinna 1e36fc6
tidied up `Definitions` section; rejigged order of proofs of properti…
jamesmckinna fa2ed6f
refactored proof of `prime⇒irreducible`
jamesmckinna fb8a7c8
finishing touches
jamesmckinna 59eb7c4
missing lemma from irrelevant instance list
jamesmckinna 46a6e48
regularised final proof to use `contradiction`
jamesmckinna 3475d9c
added fixity `infix 10`
jamesmckinna 9537512
added fixity `infix 10`; made `composite` a pattern synonym; knock-on…
jamesmckinna 1f8da07
comprehensive `CHNAGELOG` entry; whitespace fixes
jamesmckinna 1f2050c
Rename 1<2+ to sz<ss
MatthewDaggitt 1f02654
Rename hasNonTrivialDivisor relation
MatthewDaggitt 218d089
Updated CHANGELOG
MatthewDaggitt File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.