// hh_test.sy -- Test Hodgkin-Huxley gating in Scyla.
// The biological neuron gates that make Silkie unique.
// Aislinn McCubbins, April 2026

fn main() {
    println("=== H-H GATE TEST ===")

    // Single gate (activation only)
    let x = ones(1, 4)
    let w_inf = rand_tensor(4, 4)
    let b_inf = zeros(1, 4)
    let w_tau = rand_tensor(4, 4)
    let b_tau = zeros(1, 4)
    let m_state = ones(1, 4)

    let result = hh_gate(x, w_inf, b_inf, w_tau, b_tau, m_state, 1.0)
    println("Single gate result [n, 2]:")
    println(result)

    // Full gate (activation + inactivation)
    let w_h_inf = rand_tensor(4, 4)
    let b_h_inf = zeros(1, 4)
    let w_h_tau = rand_tensor(4, 4)
    let b_h_tau = zeros(1, 4)
    let h_state = ones(1, 4)

    let result2 = hh_gate_full(x, w_inf, b_inf, w_tau, b_tau, w_h_inf, b_h_inf, w_h_tau, b_h_tau, m_state, h_state, 1.0)
    println("Full gate result [n, 3] (m, h, gate=m*h):")
    println(result2)

    println("=== H-H GATES OPERATIONAL ===")
}
