What does “creativity” mean in source code? A question about copyright and patents that came up when I started building apps at AI hackathons.
Since I started joining AI hackathons, I've been building apps and web services.
At first, I mostly thought about what the app should do, its design, and which AI models to use. More recently, I've become curious about intellectual property rights too.
Then a question occurred to me.
What does it actually mean to say that program code is protected by copyright?
I sell my own-brand products on Amazon, and I also create product images and design packaging.
With photographs, I can picture what creativity means.
You choose the composition, find an angle, set the lighting, and select a background. Sometimes you create an original illustration too.
Those choices in how you express something can be relevant to copyright.
But what about programming?
Code is written to make a computer work correctly. So how can it express the author's individuality or creativity?
Wouldn't the underlying mechanism of a program be closer to a patent?
I decided to look into Japanese copyright law, patent law, and real court decisions.
Is Source Code a Copyrighted Work in the First Place?
It can be.
Article 10(1)(ix) of Japan's Copyright Act expressly lists “computer programs” among examples of works.
Like photographs, music, and novels, programs can qualify for copyright protection.
But there's a difference between saying programs can be protected and saying every line of code qualifies.
Article 2(1)(i) of the Copyright Act defines a work in terms of a creative expression of thoughts or sentiments.
So code also needs creativity in its expression.
That sounded a little strange to me.
Most code doesn't tell a story like a novel, or aim to express beauty like a photograph.
How, then, can it be a “creative expression of thoughts or sentiments”?
Creativity Doesn't Have to Mean Great Art
This was the first point I wanted to understand.
Under Japanese copyright law, creativity doesn't necessarily require high artistic merit or an idea nobody has ever had before.
The issue is whether some individuality of the creator appears in the concrete expression.
In other words, something doesn't have to communicate a philosophical message or resemble a fine-art masterpiece to be protected.
Take product photography.
Two people could photograph the same item while making different choices about lighting, composition, shooting position, or background.
So where does a programmer's individuality appear?
That's where the comparison with photography becomes interesting.
Creativity in Code Appears in Its Concrete Expression
A program gives instructions to a computer.
There may be multiple ways to write code that achieves the same result.
Which instructions do you express?
How do you combine them?
In what order do you write them?
Where the concrete expression allows meaningful choices, is not commonplace, and reflects the creator's individuality, the code may satisfy copyright's creativity requirement.
But here's an important distinction: an inventive processing method and the concrete expression of code aren't the same thing.
Simply making software faster or more efficient doesn't automatically make its code a creative expression for copyright purposes.
For example, imagine writing this in Python:
if stock == 0:
print("Out of stock")
If the stock level is zero, it prints “Out of stock.”
Simple, right?
This is just a short example, but conventional instructions like these may leave very little room for individuality. Many programmers would write something similar to accomplish the same task.
A larger application may offer more room for creative choices in the specific wording, combinations, and ordering of numerous instructions.
But length alone doesn't establish copyright protection.
A complicated program isn't automatically creative, and a simple program isn't automatically excluded.
Japanese Court Case 1: The Railway Overhead-Line Design Program
Let's look at an actual dispute.
On January 31, 2003, the Tokyo District Court delivered a judgment in a dispute involving software used to design electrical equipment for railway overhead lines.
The plaintiff argued that the defendant's program infringed copyright in the plaintiff's program, and sought an injunction and damages.
The court did not find sufficient creativity in certain portions at issue, including commonplace descriptions and combinations of simple instructions.
It also treated aspects of the processing flow as methods or algorithms to which program copyright protection did not extend.
In other words, even highly specialized professional software is protected through its concrete creative expression—not simply because it performs a specialized function.
Doing similar things isn't, by itself, enough to establish copyright infringement.
I found this a particularly helpful example.
Japanese Court Case 2: Isn't Submitting the Source Code Enough?
Another interesting decision came from Japan's Intellectual Property High Court on January 25, 2012.
The dispute concerned the copyrightability of software controlling automatic stopping brakes and coupling and uncoupling equipment for rail vehicles at a steelworks (Case No. Heisei 21 (Ne) 10024).
The district court had recognized the program as copyrightable, but the IP High Court reversed that finding.
Source code was submitted on appeal. For the locomotive-side (DHL) program, however, the claimant did not sufficiently argue or prove which specific expressions reflected the programmer's individuality. For the railcar-side (TC) program, some source-code portions had not been adequately disclosed. The IP High Court found insufficient evidence of creative expression in either program.
The lesson that struck me was this: possessing source code and being able to explain and prove its copyrightable creativity in court are different things.
A program may contain technically new ideas, but that fact alone doesn't establish originality in the expression of its code.
That's something to remember when thinking about protecting an app we've developed.
Code and Algorithms Aren't the Same Thing
The next distinction is especially important.
An algorithm is a set of steps or a method for solving a problem.
Imagine an AI inventory-management app.
It analyzes slow-moving stock and suggests products that might benefit from a price reduction under particular conditions.
The choice of data and the method of reaching that decision relate to algorithms or problem-solving methods.
The instructions written in Python or TypeScript to make the computer carry out that process are code.
Article 10(3) of Japan's Copyright Act states that protection for a computer-program work does not extend to the programming language, rules, or algorithms used to create it.
So if someone learns the idea or method of recommending price reductions and independently builds an app using different code, that similarity alone normally doesn't establish copyright infringement.
On the other hand, unauthorized copying or adaptation of another person's concrete, creative code expression may raise a copyright issue.
That helped things click for me.
With programs, we need to distinguish carefully between what copyright protects and what it does not.
So Can Patents Protect Algorithms or Technical Mechanisms?
This brings me back to my original question.
When I think about the workings of a program, it sometimes feels closer to patent law than copyright law.
And indeed, technical inventions relating to software may qualify for patents.
But not every idea is patentable.
Japanese patent law describes an invention in terms of a highly advanced creation of technical ideas utilizing the laws of nature.
For software-related inventions, the Japan Patent Office considers, among other things, whether information processing performed by software is concretely realized using hardware resources.
An invention also needs to satisfy requirements such as novelty and inventive step.
For example, merely saying:
“I want to build an app that uses AI to analyze inventory and suggest markdowns!”
is not enough to obtain a patent.
But a newly developed, concrete technical approach to information processing that solves a technical problem may potentially be patentable if all applicable requirements are met.
So programs and patents are not unrelated.
Still, coming up with a technical improvement isn't the same as qualifying for a patent.
Copyright vs. Patents: What's the Biggest Difference?
Here's how I now understand the comparison.
| Question | Copyright | Patent |
|---|---|---|
| What does it mainly protect? | Creative expression in the code | A technical invention meeting patent requirements |
| How does the right arise? | Generally automatically upon creation | After application, examination, and registration |
| What about different code with the same function? | The function alone normally isn't infringement | Practicing an invention within a patent's scope may be an issue |
| What if it was independently developed? | Independent creation without relying on someone else's protected expression normally isn't infringement | Independent development can still infringe |
| What about ideas and methods? | Not protected as such | Concrete technical inventions may qualify |
The biggest surprise for me was the difference involving independent development.
Imagine Person A develops technology for an AI app and obtains a patent.
Person B never sees A's code and independently develops similar technology.
For copyright, the fact that B did not rely on A's creative code expression matters.
Patents work differently.
Even if B developed the technology independently, practicing it can infringe an enforceable patent if it falls within the patent's technical scope.
Copyright protects specific creative expression. Patents can protect qualifying technical inventions.
That's a distinction worth understanding if you build AI apps.
Both Copyright and Patents May Matter to One AI App
These aren't necessarily either-or choices.
For a single AI app, different rights might cover different aspects:
- Copyright in the creative expression of its source code
- Patent rights, if obtained, in qualifying new technical processing methods
- Trademark rights, if registered, in its app name or logo
The rights have different targets.
That doesn't mean every AI app needs a patent, or that code cannot be protected without one.
Copyright, patents, and trademarks have different jobs.
Is It Safe to Demo an App at a Hackathon?
Here's the part that feels especially relevant to hackathons.
At an AI hackathon, teams present apps to judges.
They might demonstrate an interface, run the app live, or publish the code on GitHub.
From a copyright perspective, simply making a completed program public doesn't, by itself, mean losing copyright.
But patent law is different.
Making an invention publicly available before filing a patent application may undermine the novelty needed for patent protection—even when the disclosure came from the inventors themselves.
Of course, demonstrating a user interface doesn't necessarily disclose the underlying invention. It depends on what was made public, how much was disclosed, and to whom.
Still, it's worth being cautious about publicly explaining a technical mechanism in detail or publishing source code.
Japan has an exception to loss of novelty under Article 30 of the Patent Act.
Under certain conditions, a disclosure made by the rights holder may qualify for relief if an application is filed within one year of the disclosure.
But the exception is not automatic. There are required procedures and supporting documents, and other countries may handle disclosures differently.
So if your team is seriously considering patent protection, it's safer to think about filing before publicly revealing the technology at a hackathon.
What Should AI Hackathon Participants Prepare?
I don't think every hackathon participant needs to plan a patent application from day one.
Hackathons are often about turning an idea into a working prototype in a very short time.
But if a team decides to keep developing afterward, some preparation can help:
- Keep development and change histories in GitHub or another version-control system
- Check licenses for third-party code and libraries
- Record who created which parts of the project
- Agree on how code and technology can be used if the project becomes a business
- Consult a qualified professional before disclosure if patent protection is being considered
One more thing: if someone releases an app with similar features, don't immediately assume your code was copied.
Is it a copyright question?
A patent question?
Or no infringement at all?
It's important to distinguish among them.
What If AI Wrote the Code?
Up to this point, I've mainly been discussing code written by humans.
But now people often build apps with tools such as Claude Code and Codex.
You come up with the idea, give instructions, and refine code generated by AI.
In that situation, how much creative contribution came from a human?
Who, if anyone, owns copyright in the AI-generated code?
That raises separate questions about human creative involvement and service terms, beyond ordinary program copyright.
It's a deep topic, so I'd like to explore it carefully in another article.
Photography and Code: Same Basic Law, Different Ways of Looking at Creativity
This whole investigation began with one question:
“I can imagine creativity in a photograph. But what does creativity in code look like?”
What I learned is that photographs and programs share the same basic concept of creativity under Japanese copyright law.
But the places where individuality appears are different.
In photography, it might be composition, lighting, and angles.
In code, it might be the concrete expression, combination, and ordering of instructions.
And program functionality or algorithms are distinct from code's copyrightable expression, while technical mechanisms may raise patent questions.
A program qualifying as a copyrighted work doesn't mean its underlying app mechanism can be monopolized.
That was a new discovery for me as someone beginning to build AI apps.
If a hackathon project grows into a product, understanding which rights protect which parts is part of preparing to develop it responsibly.
References
These materials were checked in October 2026. Laws, case materials, and examination guidelines may change; consult the latest versions when needed. Some sources are in Japanese.
- Japan Copyright Act (e-Gov; in Japanese) — Articles 2 and 10
- Japan Patent Act (e-Gov; in Japanese) — Articles 2, 29, and 30
- Commentary on the January 31, 2003 Tokyo District Court railway overhead-line program decision (in Japanese)
- Commentary on program copyright cases, including the January 25, 2012 IP High Court decision (in Japanese)
- IP High Court, January 25, 2012, Case No. Heisei 21 (Ne) 10024 — official judgment PDF (in Japanese)
- Japan Patent Office: Patent examination guidelines on eligibility and industrial applicability (in Japanese)
- Japan Patent Office: Examination guidelines for computer software-related inventions (in Japanese)
- Japan Patent Office: Procedures for the exception to loss of novelty (in Japanese)
This article provides general information based on Japanese law and publicly available court decisions. It is not legal advice or a guarantee that a particular invention can be patented.