6 kyu
Incidence Geometry #1
Loading description...
Theorem Proving
Mathematics
Fundamentals
View
This comment has been reported as {{ abuseKindText }}.
Show
This comment has been hidden. You can view it now .
This comment can not be viewed.
- |
- Reply
- Edit
- View Solution
- Expand 1 Reply Expand {{ comments?.length }} replies
- Collapse
- Spoiler
- Remove
- Remove comment & replies
- Report
{{ fetchSolutionsError }}
-
-
Your rendered github-flavored markdown will appear here.
-
Label this discussion...
-
No Label
Keep the comment unlabeled if none of the below applies.
-
Issue
Use the issue label when reporting problems with the kata.
Be sure to explain the problem clearly and include the steps to reproduce. -
Suggestion
Use the suggestion label if you have feedback on how this kata can be improved.
-
Question
Use the question label if you have questions and/or need help solving the kata.
Don't forget to mention the language you're using, and mark as having spoiler if you include your solution.
-
No Label
- Cancel
Commenting is not allowed on this discussion
You cannot view this solution
There is no solution to show
Please sign in or sign up to leave a comment.
Looks like a cool little series.
BRB, learning Lean!
Approved. I changed
class incidence
tostructure incidence
in both Preloaded and Description but I didn't change[incidence point line incident_with]
to(s : incidence point line incident_with)
.Thanks for approving my Kata :+1:
That being said, my comment below about changing
class
tostructure
as an improvement was misleading - I only made that change initially because I couldn't figure out how to make the square brackets used for typeclass resolution work with the Kata setup so I changed[incidence point line incident_with]
to(s : incidence point line incident_with)
withincidence
aclass
which @kbuzzard mentioned was bad practice. Once I figured out how to make the square brackets work with the Kata setup, I changed it back into aclass
since @kckennylau said that that would be more suitable.Would you mind changing
structure
back intoclass
for me? Cheers :-)Changed
structure
back intoclass
.Possible improvements:
incidence
into a structure (currently a class)point
,line
,incident_with
and theincidence
instance before the colon to avoid unnecessaryintro(s)
initiallyDone
incidence
is defined as a class, but no instances of it are ever created, and so it may as well be a structure. Note that changing it to a structure may change some () to {} in the fields, so s.I_1 might now have slightly different behaviour.In the submission
I would be tempted to move point, line, incident_with and s before the colon, so the user is not asked to
intro
them.Thanks for your input! I will definitely change this once I have the time.