Skip to content

Fixed example given in the Precedence section of documentation - #6237

Merged
andreasabel merged 2 commits into
agda:masterfrom
svarqq:precedence-fix
Oct 26, 2022
Merged

andreasabel merged 2 commits into
agda:masterfrom
svarqq:precedence-fix

Conversation

@svarqq

@svarqq svarqq commented Oct 25, 2022 •

Copy link
Copy Markdown
Contributor

Fixed errors in the example provided at Language Reference → Mixfix Operators → Precedence. The edits are minimal -- in that if I made the corrections consistent with the consideration of true and false ⇒ false more edits would be required -- while providing distinct outputs between the 2 different interpretations, which both seems desirable to distinguish the 2 function precedence cases and is true for the proceeding code blocks.

@svarqq svarqq changed the title Fixed example given in the Precedence section Fixed example given in the Precedence section of documentation Oct 25, 2022
@andreasabel

Copy link
Copy Markdown
Member

Thanks for the fix! I added further clarification...

@andreasabel andreasabel added this to the 2.6.3 milestone Oct 26, 2022
@andreasabel andreasabel added ux: documentation Issues relating to Agda's documentation operators Parsing of mixfix operators labels Oct 26, 2022
@andreasabel
andreasabel merged commit b6ce884 into agda:master Oct 26, 2022
plt-amy added a commit to felixwellen/agda that referenced this pull request Oct 27, 2022
When --flat-split and --cubical(-compatible) are used (which is not
--safe), --flat-split behaves as an injective flag. Furthermore, in that
case, the transpX clauses will not be generated for the function. (We
skip this by failing the LeftInv computation, so that a
NoEquivWhenSplitting warning is printed indicating the defn. won't
compute)
plt-amy added a commit to felixwellen/agda that referenced this pull request Oct 27, 2022
When --flat-split and --cubical(-compatible) are used (which is not
--safe), --flat-split behaves as an injective flag. Furthermore, in that
case, the transpX clauses will not be generated for the function. (We
skip this by failing the LeftInv computation, so that a
NoEquivWhenSplitting warning is printed indicating the defn. won't
compute)
plt-amy added a commit that referenced this pull request Oct 28, 2022
* #6238: Add test case

* #6238: Suggested fix

* re #6237: forbid by default flat-split & without-K

When --flat-split and --cubical(-compatible) are used (which is not
--safe), --flat-split behaves as an injective flag. Furthermore, in that
case, the transpX clauses will not be generated for the function. (We
skip this by failing the LeftInv computation, so that a
NoEquivWhenSplitting warning is printed indicating the defn. won't
compute)

* mention in changelog that --cubical implies --no-flat-split

* fixup: update debug interaction test

* fixup: remove stray Nix file

* fixup: update changelog and remove 1 more stray file

* fixup: add test for --without-K as well

Co-authored-by: Amélia Liao <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

operators Parsing of mixfix operators ux: documentation Issues relating to Agda's documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants