united-states copyright open-source-software fair-use
Am I free to make use of code snippets found in a bachelor&#39;s thesis under an open-source license?
<p>I found an <a href="https://arthurxavierx.github.io/ComonadsForUIs.pdf" rel="nofollow noreferrer">interesting bachelor's thesis</a> recently, with some ideas in it that I have not seen applied in any sort of library that I've come across before. Thus, I would like to create my own library to apply some of the ideas found in this thesis.</p>
<p>My question is -- as this thesis does not contain a copyright notice, am I free under fair use to make use of the &quot;interfaces&quot; defined in the thesis in my own open-source library (for what it's worth, this will probably be MIT licensed).</p>
<p>I have reached out to the author to clarify on the copyright status of the work, and have yet to receive a response -- but even if they do not give their blessing, am I still able to make use of their interfaces under fair use?</p>
<p>I know that in Google v Oracle, it was ruled that &quot;declaring code&quot; falls under fair use -- but the question is: What exactly is declaring code?</p>
<p>I put &quot;interfaces&quot; in quotes above, because the languages used in the thesis (Haskell and Purescript) do not have a concept directly comparable to interfaces in other languages. So this leads to some questions:</p>
<ol>
<li>Are Haskell data type declarations considered &quot;declaring code&quot; in the Oracle v Google terminology, thus making copying Haskell data type declarations fair use?</li>
<li>Are Haskell type classes considered &quot;declaring code&quot; in the Oracle v Google terminology, thus making copying them fair use?</li>
</ol>
<p>Type classes in Haskell are pretty similar to interfaces in other languages, so it seems plausible that they could be considered declaring code. However, data types seem a bit blurrier to me. Whereas from an object-oriented perspective, data types (such as, say, a linked list) might be considered &quot;implementing code&quot; rather than &quot;declaring code&quot; -- in Haskell, the equivalent:</p>
<pre><code>data List a = Empty | Append a (List a)
</code></pre>
<p>would probably be considered &quot;declaring&quot; code: A List is either <code>Empty</code>, or a value <code>a</code> appended to another list. The data structure <em>is</em> the interface, in a sense.</p>
<p>This brings up another question with regard to the exact definition of &quot;declaring code&quot;, given that there are <a href="https://en.wikipedia.org/wiki/Declarative_programming" rel="nofollow noreferrer">entire programming paradigms</a> in which everything could arguably be called &quot;declaring code&quot;. Not to mention the fact that if, one tries to define &quot;declaring code&quot; to be &quot;the types/interfaces defined by a program&quot;, and &quot;implementing code&quot; to be &quot;the terms inhabiting those types/interfaces&quot;, this too faces problems -- as there are languages where <a href="https://en.wikipedia.org/wiki/Dependent_type" rel="nofollow noreferrer">the distinction between types and terms is blurred</a>.</p>
<p>Have any legal scholars investigated these issues? Or is &quot;declaring code&quot; in Google v Oracle defined in such a way to decide what is and is not declaring code in some of the &quot;gray cases&quot; mentioned above? Does the distinction come down to intent, or the complexity of the &quot;declaring code&quot; perhaps?</p>

<p>The lack of a copyright notice is irrelevant, what matters is whether permission is granted. The material cannot be copied, except if the copyright holder grants you permission to copy. However, you might be able to create something legal and satisfactory on your own, because the underlying ideas are not protected. By way of analogy, you cannot copy the Turbo Pascal Numeric Methods library without permission, but you can study the logic of a module and write your own FFT routine.</p>
<p>The status of something as &quot;declaring code&quot; is entirely irrelevant to the court's decision in <a href="https://www.supremecourt.gov/opinions/20pdf/18-956_d18f.pdf" rel="nofollow noreferrer">Google v. Oracle</a>. What is relevant to the court's finding of fair use is that the content constituted 0.4 percent of the entire API, and the fact that the copied lines of code are inextricably bound to other lines of code that are accessed by programmers, allowing programmers to bring their skills to a new environment. The court found that he amount of copying was tethered to a valid, and transformative, purpose.</p>

<p>As user6726 says in their answer, the thesis copyright is owned by the author, and unless they give you a license you don't have permission.</p>
<p>However you probably don't need permission.</p>
<ol>
<li><p>The underlying ideas are not covered by copyright, so if they have some code or pseudo-code then you can translate that into a different language, or just implement it differently.</p>
</li>
<li><p>If there is only one way, or a very small number of ways, to express an idea then it is not covered by copyright because writing it down is not creative. However identifier names and comments would be considered creative.</p>
</li>
<li><p>Copying small fragments of code that include creative material from the thesis is almost certainly fair use because:</p>
<ul>
<li><p>Your use is transformative; you are creating a new piece of usable software rather than just reproducing chunks of the original work. The fact that you are releasing the software as open source also helps: it makes your work subject to review and commentary and allows others to learn from it, just like an academic paper.</p>
</li>
<li><p>The copyright work is factual.</p>
</li>
<li><p>You are only copying a small part of the thesis.</p>
</li>
<li><p>You are not impacting the market for copies of the thesis (so the author doesn't lose money).</p>
</li>
</ul>
</li>
</ol>
<p>I say &quot;<em>almost</em> certainly fair use&quot; because its not definite until a court has said so. I can't imagine a court seriously entertaining a claim that this is not fair use, but it would cost both sides quite a lot in lawyers fees to get to that point.</p>
<p>Crediting the thesis author and referencing the thesis in your documentation also weigh slightly on the plus side in the fair use analysis.</p>
