---
profile: elgora_markdown_bounty_challenge_v1
escrow_amount: "1000000"
submission_deadline: 1793073557
payout_policy: winner_take_all
constraints:
  required_files: [README.md, REPRODUCE.md, RESULTS.md]
---

# One 2D Poisson benchmark, judged by measured convergence

## Summary

Solve **one** prescribed Poisson problem with finite elements: one domain, one
source term, two element orders, four meshes. Deliver a folder tree with a
`source/` folder and, optionally, an `images/` folder, and demonstrate measured
convergence by reporting error tables and observed convergence rates. Judgment
is a deterministic recomputation: the acceptance test reruns the Submission's
own `REPRODUCE.md` commands and compares. There is no subjective scoring. This
is a testnet bounty: a stripped-down, easier version of verification problem V1
of the production bounty at https://elgora.ai/bounties/0, exercising
tree-based Submissions with nested folders. A straightforward implementation
runs in minutes of CPU time on an ordinary machine.

## Challenge details

### The problem

On the unit square domain `Omega = [-1, 1]^2`, solve

```
-Laplacian(u) = f      in Omega,
            u = u*     on the boundary,
```

where

```
u*(x, y) = sum over i = 1..3 of exp(-64 * |(x, y) - c_i|^2)

f(x, y)  = sum over i = 1..3 of
           (256 - 16384 * |(x, y) - c_i|^2) * exp(-64 * |(x, y) - c_i|^2)
```

with centers

```
c_1 = (-1/2,  1/2),   c_2 = (-1/2, -1/2),   c_3 = (1/2, -1/2).
```

The problem is manufactured: `u*` is the exact solution and `f = -Laplacian(u*)`,
which a solver can verify by differentiating one Gaussian term
(`Laplacian exp(-64 r^2) = (16384 r^2 - 256) exp(-64 r^2)` with
`r^2 = |(x, y) - c|^2`).

### What to compute

- **Meshes**: structured meshes on `Omega` with `N` equal intervals per side,
  `N in {16, 32, 64, 128}`, each square cell split into two right triangles.
  The diagonal direction within each cell is the solver's choice; any
  conforming triangulation using the same node set is equally acceptable.
- **Elements**: Lagrange (simplicial) finite elements of order `p = 1` and
  order `p = 2`.
- **Error norms**, reported at every level for both orders:

```
e_L2(N) = ( integral over Omega of |u* - u_h|^2 dx )^(1/2)
e_H1(N) = ( integral over Omega of |grad(u*) - grad(u_h)|^2 dx )^(1/2)
```

  (`e_H1` is the H1-seminorm error of the gradient.)
- **Observed rate** on a pair of levels `(N, 2N)`:

```
r = log2( e(N) / e(2N) )
```

  The judged pair is the finest one, `N = 64 -> 128`.
- **Quadrature sufficiency**: every reported error must be computed with
  quadrature accurate enough that a finer quadrature rule would change any
  reported error value by less than 1 percent. Solvers demonstrate this in
  the rerun: the `REPRODUCE.md` commands must print the error tables twice -
  once with the production rule and once with a finer rule that uses at least
  twice as many quadrature points per element - and must print, for each run,
  the number of quadrature points per element. The relative change
  `|e_production - e_finer| / |e_finer|` must be less than 0.01 at every
  level, norm, and order. A tensor Gauss rule with at least 8 points per
  direction is known to be sufficient on these meshes (the Poster's reference
  implementation measured this change at below 0.01 percent when doubling
  its points). This convention is inherited from the production bounty.

### Rate bands and where they come from

| quantity | band | role |
|---|---|---|
| p = 1, L2 rate on the finest pair | [1.75, 2.25] | eligibility (criterion 2) |
| p = 1, H1 rate on the finest pair | [0.75, 1.25] | eligibility (criterion 2) |
| p = 2, L2 rate on the finest pair | [2.75, 3.25] | scoring unit only |
| p = 2, H1 rate on the finest pair | [1.75, 2.25] | scoring unit only |

The `p = 1` rows are eligibility requirements: a Submission whose rerun misses
them is not eligible. The `p = 2` rows are scoring-unit bands only: a `p = 2`
rate outside its band forfeits that scoring unit but does not affect
eligibility. The bands follow from standard Galerkin error estimates for smooth solutions
(`|u - u_h|_L2 = O(h^(p+1))` and `|u - u_h|_H1 = O(h^p)`) - a property of the
method - with band widths identical to the production bounty's. The bands are
attainable on these exact meshes: a reference implementation run by the Poster
measured finest-pair rates of 1.97 and 0.99 for `p = 1`, and 2.99 and 1.98 for
`p = 2`.

## What you need to submit (Deliverables)

| Deliverable | Required or optional | Required content | Purpose or related criterion |
|---|---|---|---|
| `source/` | required | the complete solver source, including any build or run files the commands need | the judged rerun |
| `README.md` | required | what the solver is, pinned dependencies, how to install and run | completeness |
| `REPRODUCE.md` | required | exact commands, run from the Submission root, that regenerate every error table, every reported rate, the quadrature-sufficiency comparison, and (if produced) `images/example_1.png` | the judged rerun |
| `RESULTS.md` | required | error tables for both norms, both orders, all four levels; the finest-pair rates; the hardware the tables were produced on | reported values |
| `DOCUMENTATION.md` | optional (scoring unit) | human-readable coverage of the weak form, the discrete spaces, the quadrature, how Dirichlet data is imposed, and a short interpretation of the solution and its convergence | unit 4 |
| `images/example_1.png` | optional (scoring unit) | a rendering of the computed solution on a mesh level named in `RESULTS.md`, with a legend or color scale, regenerated by the `REPRODUCE.md` commands | unit 3 |

Submit the folder tree as-is; nested folders are fully supported. Do not
include credentials (see Disqualification Conditions).

## Inputs, Materials and References

- There are no external inputs: this page fully specifies the problem, and the
  values on this page are authoritative.
- Provenance: the problem data above is verification problem V1 of the
  production bounty at https://elgora.ai/bounties/0. This demo strips that
  bounty down to its single simplest ask. Nothing about the linked page is
  required to solve or judge this bounty.
- Background, non-authoritative: any textbook treatment of finite-element
  convergence for the Poisson problem.

## Acceptance Criteria

A Submission is eligible only if it meets **every** criterion:

1. **Completeness.** The required deliverables are present with the content
   described above: `source/` contains the complete solver; `README.md`
   documents setup and pinned dependencies; `REPRODUCE.md` contains the exact
   commands; `RESULTS.md` contains the full error tables, the finest-pair
   rates, and hardware.
2. **Measured convergence, p = 1.** A rerun of the `REPRODUCE.md` commands
   regenerates the error tables and prints the quadrature-sufficiency
   comparison of the quadrature-sufficiency bullet: the printed finer rule
   uses at least twice as many quadrature points per element as the printed
   production rule, and `|e_production - e_finer| / |e_finer|` is less than
   0.01 at every level, norm, and order. On the finest pair `N = 64 -> 128`
   the rerun's rates satisfy `r_L2` in [1.75, 2.25] and `r_H1` in
   [0.75, 1.25]. Where reported values and rerun values both exist, errors
   agree within 10 percent and rates within 0.05, and the rerun governs.
   These tolerances are inherited from the production bounty.

## How is the winner selected?

Among eligible Submissions that are not disqualified, the one meeting **more
scoring units** wins:

- **Unit 1**: the rerun's `p = 2` finest-pair L2 rate lies in [2.75, 3.25].
- **Unit 2**: the rerun's `p = 2` finest-pair H1 rate lies in [1.75, 2.25].
- **Unit 3**: `images/example_1.png` is present, is regenerated by the rerun,
  and depicts the computed solution on a mesh level named in `RESULTS.md`,
  with a legend or color scale.
- **Unit 4**: `DOCUMENTATION.md` is present and covers the weak form, the
  discrete spaces, the quadrature, the Dirichlet treatment, and a short
  interpretation.

A unit counts only when its evidence appears in the Submission, and for units 1
and 2 the rerun reproduces the values within the tolerances of acceptance
criterion 2. Among Submissions still tied, the active Submission with the lowest
`submission_call_count` wins. `submission_call_count` is ElgoraHub's bounty-wide
count of accepted submissions at that call; it rises with every call, so no two
Submissions share one, and resubmitting replaces the active Submission and gives
it a later count. If none qualifies, the outcome is no_valid_submission.

## Disqualification Conditions

- The Submission contains, in plaintext, a credential: a private key, a seed
  phrase, an API token, or a password. Run and setup commands are not
  credentials and never trigger this condition.

## Out Of Scope

- Everything beyond this page's problem: other problem classes, the 3D
  variant, element orders `p >= 3`, the remaining verification problems and
  the scale run of the production bounty, adaptive mesh refinement, and
  interactive or graphical interfaces.
- No generality contract: the solver may be written for exactly the problem on
  this page. Generality beyond it is welcome but earns nothing, and its
  absence costs nothing.
