Skip to content
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

Prop and Erased #584

Merged
merged 32 commits into from
Oct 27, 2022
Merged

Prop and Erased #584

merged 32 commits into from
Oct 27, 2022

Conversation

mio-19
Copy link
Contributor

@mio-19 mio-19 commented Oct 16, 2022

This pr

  • Added ErasedTerm
  • generate ErasedTerm on inherit/synthesize whenever sort is Prop
  • implement illegal erased term check.
  • add a reduction rule: elim(erased) become erased
  • corrected prop-related tyck rules for sigma types and struct
  • updated LittleTyper to support new universe system for type.computeType() use cases

@codecov
Copy link

codecov bot commented Oct 17, 2022

Codecov Report

Merging #584 (4bd6a26) into main (9d88ea7) will increase coverage by 0.05%.
The diff coverage is 68.90%.

@@             Coverage Diff              @@
##               main     #584      +/-   ##
============================================
+ Coverage     80.40%   80.45%   +0.05%     
- Complexity     2759     2791      +32     
============================================
  Files           224      226       +2     
  Lines          8731     8810      +79     
  Branches       1070     1093      +23     
============================================
+ Hits           7020     7088      +68     
- Misses         1125     1131       +6     
- Partials        586      591       +5     
Impacted Files Coverage Δ
base/src/main/java/org/aya/core/term/FormTerm.java 81.53% <ø> (+5.41%) ⬆️
...e/src/main/java/org/aya/distill/CoreDistiller.java 78.74% <0.00%> (-0.39%) ⬇️
base/src/main/java/org/aya/generic/SortKind.java 66.66% <ø> (+33.33%) ⬆️
...c/main/java/org/aya/core/visitor/BetaExpander.java 68.05% <37.50%> (-4.81%) ⬇️
base/src/main/java/org/aya/tyck/LittleTyper.java 72.36% <40.00%> (+6.19%) ⬆️
base/src/main/java/org/aya/core/serde/SerTerm.java 80.95% <50.00%> (-0.61%) ⬇️
base/src/main/java/org/aya/core/term/ElimTerm.java 73.80% <66.66%> (-3.97%) ⬇️
base/src/main/java/org/aya/tyck/ExprTycker.java 83.42% <75.00%> (-0.11%) ⬇️
base/src/main/java/org/aya/core/term/Term.java 96.40% <80.00%> (+0.08%) ⬆️
.../src/main/java/org/aya/tyck/error/ErasedError.java 80.00% <80.00%> (ø)
... and 8 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

Copy link
Member

@ice1000 ice1000 left a comment

Choose a reason for hiding this comment

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

Trying to understand

base/src/main/java/org/aya/core/term/ElimTerm.java Outdated Show resolved Hide resolved
base/src/main/java/org/aya/core/term/ElimTerm.java Outdated Show resolved Hide resolved
Copy link
Member

@ice1000 ice1000 left a comment

Choose a reason for hiding this comment

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

Trying to understand

base/src/main/java/org/aya/core/visitor/BetaExpander.java Outdated Show resolved Hide resolved
@mio-19

This comment was marked as duplicate.

@mio-19 mio-19 marked this pull request as ready for review October 24, 2022 11:51
@mio-19 mio-19 changed the title Prop WIP Prop and Erased Oct 24, 2022
@ice1000
Copy link
Member

ice1000 commented Oct 27, 2022

TODOs:

  • Erased pathlam

@ice1000
Copy link
Member

ice1000 commented Oct 27, 2022

bors r+

bors bot added a commit that referenced this pull request Oct 27, 2022
584: Prop and Erased r=ice1000 a=tsao-chi

This pr
+ Added ErasedTerm
+ generate ErasedTerm on inherit/synthesize whenever sort is Prop
+ implement illegal erased term check.
+ add a reduction rule: `elim(erased)` become `erased`
+ corrected prop-related tyck rules for sigma types and struct
+ updated LittleTyper to support new universe system for `type.computeType()` use cases

Co-authored-by: ㄗㄠˋ ㄑㄧˊ <tsao-chi@the-lingo.org>
@ice1000 ice1000 added this to the v0.23 milestone Oct 27, 2022
@ice1000 ice1000 added the prop Universe of propositions label Oct 27, 2022
@ice1000 ice1000 self-assigned this Oct 27, 2022
@bors
Copy link
Contributor

bors bot commented Oct 27, 2022

This PR was included in a batch that successfully built, but then failed to merge into main. It will not be retried.

Additional information:

{"message":"All comments must be resolved.","documentation_url":"https://docs.github.com/articles/about-protected-branches"}

@ice1000
Copy link
Member

ice1000 commented Oct 27, 2022

birs r+

@ice1000
Copy link
Member

ice1000 commented Oct 27, 2022

bors r+

@bors
Copy link
Contributor

bors bot commented Oct 27, 2022

Build succeeded:

@bors bors bot merged commit 0efe1bc into main Oct 27, 2022
@bors bors bot deleted the prop branch October 27, 2022 22:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
prop Universe of propositions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants