SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · ijcai2025_0527 · IJCAI · 2025

FGeo-HyperGNet: Geometric Problem Solving Integrating FormalGeo Symbolic System and Hypergraph Neural Network

Yang Li, Zhenbing Zeng, Xiaokai Zhang, Na Zhu, Cheng Qin, Tuo Leng

Open in the Atlas

Code that ran

5 of 5 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 1 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 4 failures of our instrument; 0 no recorded run), measured 2026-11-24; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/ijcai2025_0527.json · badge: /api/ran/ijcai2025_0527.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
BitSecret/HyperGNet canonical (classifier label)
classifier basis: census
5 ran · 0 no recorded run
FunctionStatusWhere it lives
get_level_count Ran
ran, honoured the contract we drafted
BitSecret/HyperGNet/src/gps/utils.py
code served (permissive licence) · get_code("c07f86a478b8a2c4")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple, ndim 2, dtype family int; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np

torch.manual_seed(0)

# Construct problem_level: a dict mapping problem IDs to difficulty levels
# The function indexes into this with problem IDs from log['total']
problem_level = {
    0: 1,
    1: 2,
    2: 1,
    3: 3,
    4: 2,
}

# Construct log: a dict with 'total' (list of problem IDs) and 'solved' (set of problem IDs as strings)
log = {
    'total': [0, 1, 2, 3, 4],
    'solved': {'0', '2', '4'}
}

# level: the maximum difficulty level
level = 3

ARGS = {
    'problem_level': problem_level,
    'log': log,
    'level': level,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 2, dtype family int — a tuple output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
load_pickle Ran
ran; our contract draft was wrong, not the code
BitSecret/HyperGNet/src/gps/utils.py
pointer only (licence: MIT); the stored copy get_code serves, from huochf/WildHOI, is pointer only (licence: NONE) · get_code("a6a56fbe2568c956")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from huochf/WildHOI, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

read_last_line Ran
ran; our contract draft was wrong, not the code
BitSecret/HyperGNet/src/gps/utils.py
code served (permissive licence) · get_code("0f314f3e047a0391")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned str. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import tempfile
import os

# Create a temporary file with some content
with tempfile.NamedTemporaryFile(mode='w', delete=False, suffix='.txt') as f:
    temp_file_path = f.name
    f.write("line 1\n")
    f.write("line 2\n")
    f.write("line 3\n")
    f.write("last line")

ARGS = {
    'file_path': temp_file_path
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
tokenize_cdl Ran
ran; our contract draft was wrong, not the code
BitSecret/HyperGNet/src/gps/data.py
code served (permissive licence) · get_code("2cda64789c1a930a")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import re

symbol_words = [',', '+', '-', '**', '*', '/', 'sin', 'asin', 'cos', 'acos', 'tan', 'atan', 'sqrt', '(', ')', 'nums', 'll_', 'ma_', 'pt_', 'at_', 'ht_', 'rst_', 'rmt_', 'pq_', 'aq_', 'hq_', 'rsq_', 'rmq_', 'la_', 'mar_', 'rsa_', 'rc_', 'dc_', 'pc_', 'ac_', 'ps_', 'as_']

def tokenize_cdl(cdl):
    """
    Tokenize one cdl.
    >> tokenize_cdl('CongruentBetweenTriangle(RST,XYZ)')
    ['CongruentBetweenTriangle', 'R', 'S', 'T', ',', 'X', 'Y', 'Z']
    >> tokenize_cdl('Equation(ll_tr-x-21)')
    ['Equation', 'll_', 't', 'r', '-', 'x', '-', 'nums']
    """
    cdl = cdl[0:len(cdl) - 1].split('(', maxsplit=1)
    tokenized = [cdl[0]]
    if cdl[0] != 'Equation':
        tokenized += list(cdl[1])
    else:
        for matched in re.findall('sin\\(pi\\*ma_\\w+/180\\)', cdl[1]):
            cdl[1] = cdl[1].replace(matched, 'sin({})'.format(matched[7:13]))
        for matched in re.findall('cos\\(pi\\*ma_\\w+/180\\)', cdl[1]):
            cdl[1] = cdl[1].replace(matched, 'cos({})'.format(matched[7:13]))
        for matched in re.findall('tan\\(pi\\*ma_\\w+/180\\)', cdl[1]):
            cdl[1] = cdl[1].replace(matched, 'tan({})'.format(matched[7:13]))
        for matched in re.findall('\\d+\\.*\\d*', cdl[1]):
            cdl[1] = cdl[1].replace(matched, 'nums', 1)
        while len(cdl[1]) > 0:
            length = len(cdl[1])
            for c in symbol_words:
                if cdl[1].startswith(c):
                    tokenized.append(cdl[1][0:len(c)])
                    cdl[1] = cdl[1][len(c):len(cdl[1])]
            if length == len(cdl[1]):
                tokenized.append(cdl[1][0])
                cdl[1] = cdl[1][1:len(cdl[1])]
    return tokenized

# Test case 1: Non-Equation CDL
test_cdl_1 = 'CongruentBetweenTriangle(RST,XYZ)'

# Test case 2: Equation CDL with simple expression
test_cdl_2 = 'Equation(ll_tr-x-21)'

ARGS = {
    'cdl': test_cdl_1
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, dtype family float — a list output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
tokenize_edge Ran
ran; our contract draft was wrong, not the code
BitSecret/HyperGNet/src/gps/data.py
code served (permissive licence) · get_code("e63b85a8b4cc1073")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple, ndim 2, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# Analyze the function:
# - Takes one parameter: edge
# - edge is expected to be a list of lists (or list of strings based on usage)
# - The function iterates through edge elements
# - It checks if each element is NOT in ['self', 'none', 'extended', 'solve_eq']
# - If the check passes, it appends the element to tokenized and its index to token_index
# - Returns tuple of (tokenized list, token_index list)

# Based on the docstring example:
# Input: [['none'], ['none'], ['none'], ['self'], ['a', 'b'], ['none'], ['c']]
# Output: (['self', 'a', 'b', 'c'], [3, 4, 4, 6])
# Wait, that doesn't match the logic. Let me re-read...
# Actually looking at the example more carefully, it seems edge contains strings or lists
# The function treats each edge[j] as a unit and checks if it's in the exclusion list

# The function will:
# - Skip 'none', 'self', 'extended', 'solve_eq'
# - For anything else, add it to tokenized with its index to token_index

edge = [
    'none',           # index 0 - skipped
    'none',           # index 1 - skipped
    'none',           # index 2 - skipped
    'self',           # index 3 - skipped
    'a',              # index 4 - included
    'b',              # index 5 - included
    'none',           # index 6 - skipped
    'c'               # index 7 - included
]

ARGS = {
    'edge': edge
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 2, dtype family float — a tuple output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block

Also present in other papers' code

Of 5 samples lifted from this paper's linked repositories, 5 carry a function identity and 0 do not. Of the 5 distinct functions with an identity, 1 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 0 the same month, 0 later) and 4 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
load_pickle 1 other paper
1 dated earlier
2407.20566 (2024-07)
Monocular Human-Object Reconstruction in the Wild

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-24.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Geometric problem solving has always been a longstanding challenge in the fields of mathematical reasoning and artificial intelligence. We built a neural-symbolic system, called FGeo-HyperGNet, to automatically perform human-like geometric problem solving. The symbolic component is a formal system built on FormalGeo, which can automatically perform geometric relational reasoning and algebraic calculations and organize the solution into a hypergraph with conditions as hypernodes and theorems as hyperedges. The neural component, called HyperGNet, is a hypergraph neural network based on the attention mechanism, including an encoder to encode the structural and semantic information of the hypergraph and a theorem predictor to provide guidance in solving problems. The neural component predicts theorems according to the hypergraph, and the symbolic component applies theorems and updates the hypergraph, thus forming a predict-apply cycle to ultimately achieve readable and traceable automatic solving of geometric problems. Experiments demonstrate the effectiveness of this neural-symbolic architecture. We achieved state-of-the-art results with a TPA of 93.50% and a PSSR of 88.36% on the FormalGeo7K dataset. The code is available at https://github.com/BitSecret/HyperGNet.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("ijcai2025_0527")
get_code_for_paper("ijcai2025_0527")
have("ijcai2025_0527")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/ijcai2025_0527.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/ijcai2025_0527.svg)](https://syntology.ai/paper/ijcai2025_0527)

Connect an agent — have() is free.